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 |
|---|---|---|---|---|---|---|---|
small_bank_1 | SELECT T1.name , T2.balance + T3.balance FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid JOIN savings AS T3 ON T1.custid = T3.custid WHERE T3.balance > (SELECT avg(balance) FROM savings) | Find the names and total checking and savings balances of accounts whose savings balance is higher than the average savings balance. | [
"SELECT",
"T1.name",
",",
"T2.balance",
"+",
"T3.balance",
"FROM",
"accounts",
"AS",
"T1",
"JOIN",
"checking",
"AS",
"T2",
"ON",
"T1.custid",
"=",
"T2.custid",
"JOIN",
"savings",
"AS",
"T3",
"ON",
"T1.custid",
"=",
"T3.custid",
"WHERE",
"T3.balance",
">",
"(... | [
"select",
"t1",
".",
"name",
",",
"t2",
".",
"balance",
"+",
"t3",
".",
"balance",
"from",
"accounts",
"as",
"t1",
"join",
"checking",
"as",
"t2",
"on",
"t1",
".",
"custid",
"=",
"t2",
".",
"custid",
"join",
"savings",
"as",
"t3",
"on",
"t1",
".",
... | [
"Find",
"the",
"names",
"and",
"total",
"checking",
"and",
"savings",
"balances",
"of",
"accounts",
"whose",
"savings",
"balance",
"is",
"higher",
"than",
"the",
"average",
"savings",
"balance",
"."
] | [
"Find",
"the",
"<mask>",
"and",
"total",
"checking",
"and",
"savings",
"<mask>",
"of",
"accounts",
"whose",
"savings",
"<mask>",
"is",
"higher",
"than",
"the",
"average",
"savings",
"<mask>",
"."
] | [
"select",
"<mask>",
".",
"<mask>",
",",
"<mask>",
".",
"<mask>",
"+",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"join",
"<mask>",
"as",
"<mask... |
small_bank_1 | SELECT T1.name , T2.balance + T3.balance FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid JOIN savings AS T3 ON T1.custid = T3.custid WHERE T3.balance > (SELECT avg(balance) FROM savings) | What are the names and sum of checking and savings balances for accounts with savings balances higher than the average savings balance? | [
"SELECT",
"T1.name",
",",
"T2.balance",
"+",
"T3.balance",
"FROM",
"accounts",
"AS",
"T1",
"JOIN",
"checking",
"AS",
"T2",
"ON",
"T1.custid",
"=",
"T2.custid",
"JOIN",
"savings",
"AS",
"T3",
"ON",
"T1.custid",
"=",
"T3.custid",
"WHERE",
"T3.balance",
">",
"(... | [
"select",
"t1",
".",
"name",
",",
"t2",
".",
"balance",
"+",
"t3",
".",
"balance",
"from",
"accounts",
"as",
"t1",
"join",
"checking",
"as",
"t2",
"on",
"t1",
".",
"custid",
"=",
"t2",
".",
"custid",
"join",
"savings",
"as",
"t3",
"on",
"t1",
".",
... | [
"What",
"are",
"the",
"names",
"and",
"sum",
"of",
"checking",
"and",
"savings",
"balances",
"for",
"accounts",
"with",
"savings",
"balances",
"higher",
"than",
"the",
"average",
"savings",
"balance",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"and",
"sum",
"of",
"checking",
"and",
"savings",
"<mask>",
"for",
"accounts",
"with",
"savings",
"<mask>",
"higher",
"than",
"the",
"average",
"savings",
"<mask>",
"?"
] | [
"select",
"<mask>",
".",
"<mask>",
",",
"<mask>",
".",
"<mask>",
"+",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"join",
"<mask>",
"as",
"<mask... |
small_bank_1 | SELECT T1.name , T2.balance FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid JOIN savings AS T3 ON T1.custid = T3.custid ORDER BY T3.balance LIMIT 1 | Find the name and checking balance of the account with the lowest savings balance. | [
"SELECT",
"T1.name",
",",
"T2.balance",
"FROM",
"accounts",
"AS",
"T1",
"JOIN",
"checking",
"AS",
"T2",
"ON",
"T1.custid",
"=",
"T2.custid",
"JOIN",
"savings",
"AS",
"T3",
"ON",
"T1.custid",
"=",
"T3.custid",
"ORDER",
"BY",
"T3.balance",
"LIMIT",
"1"
] | [
"select",
"t1",
".",
"name",
",",
"t2",
".",
"balance",
"from",
"accounts",
"as",
"t1",
"join",
"checking",
"as",
"t2",
"on",
"t1",
".",
"custid",
"=",
"t2",
".",
"custid",
"join",
"savings",
"as",
"t3",
"on",
"t1",
".",
"custid",
"=",
"t3",
".",
... | [
"Find",
"the",
"name",
"and",
"checking",
"balance",
"of",
"the",
"account",
"with",
"the",
"lowest",
"savings",
"balance",
"."
] | [
"Find",
"the",
"<mask>",
"and",
"checking",
"<mask>",
"of",
"the",
"account",
"with",
"the",
"lowest",
"savings",
"<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... |
small_bank_1 | SELECT T1.name , T2.balance FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid JOIN savings AS T3 ON T1.custid = T3.custid ORDER BY T3.balance LIMIT 1 | What are the names and balances of checking accounts belonging to the customer with the lowest savings balance? | [
"SELECT",
"T1.name",
",",
"T2.balance",
"FROM",
"accounts",
"AS",
"T1",
"JOIN",
"checking",
"AS",
"T2",
"ON",
"T1.custid",
"=",
"T2.custid",
"JOIN",
"savings",
"AS",
"T3",
"ON",
"T1.custid",
"=",
"T3.custid",
"ORDER",
"BY",
"T3.balance",
"LIMIT",
"1"
] | [
"select",
"t1",
".",
"name",
",",
"t2",
".",
"balance",
"from",
"accounts",
"as",
"t1",
"join",
"checking",
"as",
"t2",
"on",
"t1",
".",
"custid",
"=",
"t2",
".",
"custid",
"join",
"savings",
"as",
"t3",
"on",
"t1",
".",
"custid",
"=",
"t3",
".",
... | [
"What",
"are",
"the",
"names",
"and",
"balances",
"of",
"checking",
"accounts",
"belonging",
"to",
"the",
"customer",
"with",
"the",
"lowest",
"savings",
"balance",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"and",
"<mask>",
"of",
"checking",
"accounts",
"belonging",
"to",
"the",
"<mask>",
"with",
"the",
"lowest",
"savings",
"<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... |
small_bank_1 | SELECT count(*) , T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid GROUP BY T1.name | Find the number of checking accounts for each account name. | [
"SELECT",
"count",
"(",
"*",
")",
",",
"T1.name",
"FROM",
"accounts",
"AS",
"T1",
"JOIN",
"checking",
"AS",
"T2",
"ON",
"T1.custid",
"=",
"T2.custid",
"GROUP",
"BY",
"T1.name"
] | [
"select",
"count",
"(",
"*",
")",
",",
"t1",
".",
"name",
"from",
"accounts",
"as",
"t1",
"join",
"checking",
"as",
"t2",
"on",
"t1",
".",
"custid",
"=",
"t2",
".",
"custid",
"group",
"by",
"t1",
".",
"name"
] | [
"Find",
"the",
"number",
"of",
"checking",
"accounts",
"for",
"each",
"account",
"name",
"."
] | [
"Find",
"the",
"number",
"of",
"checking",
"accounts",
"for",
"each",
"account",
"<mask>",
"."
] | [
"select",
"count",
"(",
"*",
")",
",",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"group",
"by",
"<mask>",
".",
"<mask>"
] |
small_bank_1 | SELECT count(*) , T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid GROUP BY T1.name | What are the names of customers with accounts, and how many checking accounts do each of them have? | [
"SELECT",
"count",
"(",
"*",
")",
",",
"T1.name",
"FROM",
"accounts",
"AS",
"T1",
"JOIN",
"checking",
"AS",
"T2",
"ON",
"T1.custid",
"=",
"T2.custid",
"GROUP",
"BY",
"T1.name"
] | [
"select",
"count",
"(",
"*",
")",
",",
"t1",
".",
"name",
"from",
"accounts",
"as",
"t1",
"join",
"checking",
"as",
"t2",
"on",
"t1",
".",
"custid",
"=",
"t2",
".",
"custid",
"group",
"by",
"t1",
".",
"name"
] | [
"What",
"are",
"the",
"names",
"of",
"customers",
"with",
"accounts",
",",
"and",
"how",
"many",
"checking",
"accounts",
"do",
"each",
"of",
"them",
"have",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"of",
"<mask>",
"with",
"accounts",
",",
"and",
"how",
"many",
"checking",
"accounts",
"do",
"each",
"of",
"them",
"have",
"?"
] | [
"select",
"count",
"(",
"*",
")",
",",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"group",
"by",
"<mask>",
".",
"<mask>"
] |
small_bank_1 | SELECT sum(T2.balance) , T1.name FROM accounts AS T1 JOIN savings AS T2 ON T1.custid = T2.custid GROUP BY T1.name | Find the total saving balance for each account name. | [
"SELECT",
"sum",
"(",
"T2.balance",
")",
",",
"T1.name",
"FROM",
"accounts",
"AS",
"T1",
"JOIN",
"savings",
"AS",
"T2",
"ON",
"T1.custid",
"=",
"T2.custid",
"GROUP",
"BY",
"T1.name"
] | [
"select",
"sum",
"(",
"t2",
".",
"balance",
")",
",",
"t1",
".",
"name",
"from",
"accounts",
"as",
"t1",
"join",
"savings",
"as",
"t2",
"on",
"t1",
".",
"custid",
"=",
"t2",
".",
"custid",
"group",
"by",
"t1",
".",
"name"
] | [
"Find",
"the",
"total",
"saving",
"balance",
"for",
"each",
"account",
"name",
"."
] | [
"Find",
"the",
"total",
"saving",
"<mask>",
"for",
"each",
"account",
"<mask>",
"."
] | [
"select",
"sum",
"(",
"<mask>",
".",
"<mask>",
")",
",",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"group",
"by",
"<mask>",
".",
"<mask>"
] |
small_bank_1 | SELECT sum(T2.balance) , T1.name FROM accounts AS T1 JOIN savings AS T2 ON T1.custid = T2.custid GROUP BY T1.name | What are the names of customers with accounts, and what are the total savings balances for each? | [
"SELECT",
"sum",
"(",
"T2.balance",
")",
",",
"T1.name",
"FROM",
"accounts",
"AS",
"T1",
"JOIN",
"savings",
"AS",
"T2",
"ON",
"T1.custid",
"=",
"T2.custid",
"GROUP",
"BY",
"T1.name"
] | [
"select",
"sum",
"(",
"t2",
".",
"balance",
")",
",",
"t1",
".",
"name",
"from",
"accounts",
"as",
"t1",
"join",
"savings",
"as",
"t2",
"on",
"t1",
".",
"custid",
"=",
"t2",
".",
"custid",
"group",
"by",
"t1",
".",
"name"
] | [
"What",
"are",
"the",
"names",
"of",
"customers",
"with",
"accounts",
",",
"and",
"what",
"are",
"the",
"total",
"savings",
"balances",
"for",
"each",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"of",
"<mask>",
"with",
"accounts",
",",
"and",
"what",
"are",
"the",
"total",
"savings",
"<mask>",
"for",
"each",
"?"
] | [
"select",
"sum",
"(",
"<mask>",
".",
"<mask>",
")",
",",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"group",
"by",
"<mask>",
".",
"<mask>"
] |
small_bank_1 | SELECT T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid WHERE T2.balance < (SELECT avg(balance) FROM checking) | Find the name of accounts whose checking balance is below the average checking balance. | [
"SELECT",
"T1.name",
"FROM",
"accounts",
"AS",
"T1",
"JOIN",
"checking",
"AS",
"T2",
"ON",
"T1.custid",
"=",
"T2.custid",
"WHERE",
"T2.balance",
"<",
"(",
"SELECT",
"avg",
"(",
"balance",
")",
"FROM",
"checking",
")"
] | [
"select",
"t1",
".",
"name",
"from",
"accounts",
"as",
"t1",
"join",
"checking",
"as",
"t2",
"on",
"t1",
".",
"custid",
"=",
"t2",
".",
"custid",
"where",
"t2",
".",
"balance",
"<",
"(",
"select",
"avg",
"(",
"balance",
")",
"from",
"checking",
")"
] | [
"Find",
"the",
"name",
"of",
"accounts",
"whose",
"checking",
"balance",
"is",
"below",
"the",
"average",
"checking",
"balance",
"."
] | [
"Find",
"the",
"<mask>",
"of",
"accounts",
"whose",
"checking",
"<mask>",
"is",
"below",
"the",
"average",
"checking",
"<mask>",
"."
] | [
"select",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"<mask>",
".",
"<mask>",
"<",
"(",
"select",
"avg",
"(",
"<mask>",
")",
"from",
... |
small_bank_1 | SELECT T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid WHERE T2.balance < (SELECT avg(balance) FROM checking) | What are the names of customers with checking balances lower than the average checking balance? | [
"SELECT",
"T1.name",
"FROM",
"accounts",
"AS",
"T1",
"JOIN",
"checking",
"AS",
"T2",
"ON",
"T1.custid",
"=",
"T2.custid",
"WHERE",
"T2.balance",
"<",
"(",
"SELECT",
"avg",
"(",
"balance",
")",
"FROM",
"checking",
")"
] | [
"select",
"t1",
".",
"name",
"from",
"accounts",
"as",
"t1",
"join",
"checking",
"as",
"t2",
"on",
"t1",
".",
"custid",
"=",
"t2",
".",
"custid",
"where",
"t2",
".",
"balance",
"<",
"(",
"select",
"avg",
"(",
"balance",
")",
"from",
"checking",
")"
] | [
"What",
"are",
"the",
"names",
"of",
"customers",
"with",
"checking",
"balances",
"lower",
"than",
"the",
"average",
"checking",
"balance",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"of",
"<mask>",
"with",
"checking",
"<mask>",
"lower",
"than",
"the",
"average",
"checking",
"<mask>",
"?"
] | [
"select",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"<mask>",
".",
"<mask>",
"<",
"(",
"select",
"avg",
"(",
"<mask>",
")",
"from",
... |
small_bank_1 | SELECT T3.balance FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid JOIN savings AS T3 ON T1.custid = T3.custid ORDER BY T2.balance DESC LIMIT 1 | Find the saving balance of the account with the highest checking balance. | [
"SELECT",
"T3.balance",
"FROM",
"accounts",
"AS",
"T1",
"JOIN",
"checking",
"AS",
"T2",
"ON",
"T1.custid",
"=",
"T2.custid",
"JOIN",
"savings",
"AS",
"T3",
"ON",
"T1.custid",
"=",
"T3.custid",
"ORDER",
"BY",
"T2.balance",
"DESC",
"LIMIT",
"1"
] | [
"select",
"t3",
".",
"balance",
"from",
"accounts",
"as",
"t1",
"join",
"checking",
"as",
"t2",
"on",
"t1",
".",
"custid",
"=",
"t2",
".",
"custid",
"join",
"savings",
"as",
"t3",
"on",
"t1",
".",
"custid",
"=",
"t3",
".",
"custid",
"order",
"by",
... | [
"Find",
"the",
"saving",
"balance",
"of",
"the",
"account",
"with",
"the",
"highest",
"checking",
"balance",
"."
] | [
"Find",
"the",
"saving",
"<mask>",
"of",
"the",
"account",
"with",
"the",
"highest",
"checking",
"<mask>",
"."
] | [
"select",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mas... |
small_bank_1 | SELECT T3.balance FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid JOIN savings AS T3 ON T1.custid = T3.custid ORDER BY T2.balance DESC LIMIT 1 | What is the savings balance of the account belonging to the customer with the highest checking balance? | [
"SELECT",
"T3.balance",
"FROM",
"accounts",
"AS",
"T1",
"JOIN",
"checking",
"AS",
"T2",
"ON",
"T1.custid",
"=",
"T2.custid",
"JOIN",
"savings",
"AS",
"T3",
"ON",
"T1.custid",
"=",
"T3.custid",
"ORDER",
"BY",
"T2.balance",
"DESC",
"LIMIT",
"1"
] | [
"select",
"t3",
".",
"balance",
"from",
"accounts",
"as",
"t1",
"join",
"checking",
"as",
"t2",
"on",
"t1",
".",
"custid",
"=",
"t2",
".",
"custid",
"join",
"savings",
"as",
"t3",
"on",
"t1",
".",
"custid",
"=",
"t3",
".",
"custid",
"order",
"by",
... | [
"What",
"is",
"the",
"savings",
"balance",
"of",
"the",
"account",
"belonging",
"to",
"the",
"customer",
"with",
"the",
"highest",
"checking",
"balance",
"?"
] | [
"What",
"is",
"the",
"savings",
"<mask>",
"of",
"the",
"account",
"belonging",
"to",
"the",
"<mask>",
"with",
"the",
"highest",
"checking",
"<mask>",
"?"
] | [
"select",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mas... |
small_bank_1 | SELECT T1.balance + T2.balance FROM checking AS T1 JOIN savings AS T2 ON T1.custid = T2.custid ORDER BY T1.balance + T2.balance | Find the total checking and saving balance of all accounts sorted by the total balance in ascending order. | [
"SELECT",
"T1.balance",
"+",
"T2.balance",
"FROM",
"checking",
"AS",
"T1",
"JOIN",
"savings",
"AS",
"T2",
"ON",
"T1.custid",
"=",
"T2.custid",
"ORDER",
"BY",
"T1.balance",
"+",
"T2.balance"
] | [
"select",
"t1",
".",
"balance",
"+",
"t2",
".",
"balance",
"from",
"checking",
"as",
"t1",
"join",
"savings",
"as",
"t2",
"on",
"t1",
".",
"custid",
"=",
"t2",
".",
"custid",
"order",
"by",
"t1",
".",
"balance",
"+",
"t2",
".",
"balance"
] | [
"Find",
"the",
"total",
"checking",
"and",
"saving",
"balance",
"of",
"all",
"accounts",
"sorted",
"by",
"the",
"total",
"balance",
"in",
"ascending",
"order",
"."
] | [
"Find",
"the",
"total",
"checking",
"and",
"saving",
"<mask>",
"of",
"all",
"accounts",
"sorted",
"by",
"the",
"total",
"<mask>",
"in",
"ascending",
"order",
"."
] | [
"select",
"<mask>",
".",
"<mask>",
"+",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"order",
"by",
"<mask>",
".",
"<mask>",
"+",
"<mask>",
".",
... |
small_bank_1 | SELECT T1.balance + T2.balance FROM checking AS T1 JOIN savings AS T2 ON T1.custid = T2.custid ORDER BY T1.balance + T2.balance | What is the sum of checking and savings balances for all customers, ordered by the total balance? | [
"SELECT",
"T1.balance",
"+",
"T2.balance",
"FROM",
"checking",
"AS",
"T1",
"JOIN",
"savings",
"AS",
"T2",
"ON",
"T1.custid",
"=",
"T2.custid",
"ORDER",
"BY",
"T1.balance",
"+",
"T2.balance"
] | [
"select",
"t1",
".",
"balance",
"+",
"t2",
".",
"balance",
"from",
"checking",
"as",
"t1",
"join",
"savings",
"as",
"t2",
"on",
"t1",
".",
"custid",
"=",
"t2",
".",
"custid",
"order",
"by",
"t1",
".",
"balance",
"+",
"t2",
".",
"balance"
] | [
"What",
"is",
"the",
"sum",
"of",
"checking",
"and",
"savings",
"balances",
"for",
"all",
"customers",
",",
"ordered",
"by",
"the",
"total",
"balance",
"?"
] | [
"What",
"is",
"the",
"sum",
"of",
"checking",
"and",
"savings",
"<mask>",
"for",
"all",
"<mask>",
",",
"ordered",
"by",
"the",
"total",
"<mask>",
"?"
] | [
"select",
"<mask>",
".",
"<mask>",
"+",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"order",
"by",
"<mask>",
".",
"<mask>",
"+",
"<mask>",
".",
... |
small_bank_1 | SELECT T2.balance , T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid JOIN savings AS T3 ON T1.custid = T3.custid ORDER BY T3.balance LIMIT 1 | Find the name and checking balance of the account with the lowest saving balance. | [
"SELECT",
"T2.balance",
",",
"T1.name",
"FROM",
"accounts",
"AS",
"T1",
"JOIN",
"checking",
"AS",
"T2",
"ON",
"T1.custid",
"=",
"T2.custid",
"JOIN",
"savings",
"AS",
"T3",
"ON",
"T1.custid",
"=",
"T3.custid",
"ORDER",
"BY",
"T3.balance",
"LIMIT",
"1"
] | [
"select",
"t2",
".",
"balance",
",",
"t1",
".",
"name",
"from",
"accounts",
"as",
"t1",
"join",
"checking",
"as",
"t2",
"on",
"t1",
".",
"custid",
"=",
"t2",
".",
"custid",
"join",
"savings",
"as",
"t3",
"on",
"t1",
".",
"custid",
"=",
"t3",
".",
... | [
"Find",
"the",
"name",
"and",
"checking",
"balance",
"of",
"the",
"account",
"with",
"the",
"lowest",
"saving",
"balance",
"."
] | [
"Find",
"the",
"<mask>",
"and",
"checking",
"<mask>",
"of",
"the",
"account",
"with",
"the",
"lowest",
"saving",
"<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... |
small_bank_1 | SELECT T2.balance , T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid JOIN savings AS T3 ON T1.custid = T3.custid ORDER BY T3.balance LIMIT 1 | What is the name and checking balance of the account which has the lowest savings balance? | [
"SELECT",
"T2.balance",
",",
"T1.name",
"FROM",
"accounts",
"AS",
"T1",
"JOIN",
"checking",
"AS",
"T2",
"ON",
"T1.custid",
"=",
"T2.custid",
"JOIN",
"savings",
"AS",
"T3",
"ON",
"T1.custid",
"=",
"T3.custid",
"ORDER",
"BY",
"T3.balance",
"LIMIT",
"1"
] | [
"select",
"t2",
".",
"balance",
",",
"t1",
".",
"name",
"from",
"accounts",
"as",
"t1",
"join",
"checking",
"as",
"t2",
"on",
"t1",
".",
"custid",
"=",
"t2",
".",
"custid",
"join",
"savings",
"as",
"t3",
"on",
"t1",
".",
"custid",
"=",
"t3",
".",
... | [
"What",
"is",
"the",
"name",
"and",
"checking",
"balance",
"of",
"the",
"account",
"which",
"has",
"the",
"lowest",
"savings",
"balance",
"?"
] | [
"What",
"is",
"the",
"<mask>",
"and",
"checking",
"<mask>",
"of",
"the",
"account",
"which",
"has",
"the",
"lowest",
"savings",
"<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... |
small_bank_1 | SELECT T2.balance , T3.balance , T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid JOIN savings AS T3 ON T1.custid = T3.custid | Find the name, checking balance and saving balance of all accounts in the bank. | [
"SELECT",
"T2.balance",
",",
"T3.balance",
",",
"T1.name",
"FROM",
"accounts",
"AS",
"T1",
"JOIN",
"checking",
"AS",
"T2",
"ON",
"T1.custid",
"=",
"T2.custid",
"JOIN",
"savings",
"AS",
"T3",
"ON",
"T1.custid",
"=",
"T3.custid"
] | [
"select",
"t2",
".",
"balance",
",",
"t3",
".",
"balance",
",",
"t1",
".",
"name",
"from",
"accounts",
"as",
"t1",
"join",
"checking",
"as",
"t2",
"on",
"t1",
".",
"custid",
"=",
"t2",
".",
"custid",
"join",
"savings",
"as",
"t3",
"on",
"t1",
".",
... | [
"Find",
"the",
"name",
",",
"checking",
"balance",
"and",
"saving",
"balance",
"of",
"all",
"accounts",
"in",
"the",
"bank",
"."
] | [
"Find",
"the",
"<mask>",
",",
"checking",
"<mask>",
"and",
"saving",
"<mask>",
"of",
"all",
"accounts",
"in",
"the",
"bank",
"."
] | [
"select",
"<mask>",
".",
"<mask>",
",",
"<mask>",
".",
"<mask>",
",",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"join",
"<mask>",
"as",
"<mask... |
small_bank_1 | SELECT T2.balance , T3.balance , T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid JOIN savings AS T3 ON T1.custid = T3.custid | What are the names, checking balances, and savings balances for all customers? | [
"SELECT",
"T2.balance",
",",
"T3.balance",
",",
"T1.name",
"FROM",
"accounts",
"AS",
"T1",
"JOIN",
"checking",
"AS",
"T2",
"ON",
"T1.custid",
"=",
"T2.custid",
"JOIN",
"savings",
"AS",
"T3",
"ON",
"T1.custid",
"=",
"T3.custid"
] | [
"select",
"t2",
".",
"balance",
",",
"t3",
".",
"balance",
",",
"t1",
".",
"name",
"from",
"accounts",
"as",
"t1",
"join",
"checking",
"as",
"t2",
"on",
"t1",
".",
"custid",
"=",
"t2",
".",
"custid",
"join",
"savings",
"as",
"t3",
"on",
"t1",
".",
... | [
"What",
"are",
"the",
"names",
",",
"checking",
"balances",
",",
"and",
"savings",
"balances",
"for",
"all",
"customers",
"?"
] | [
"What",
"are",
"the",
"<mask>",
",",
"checking",
"<mask>",
",",
"and",
"savings",
"<mask>",
"for",
"all",
"<mask>",
"?"
] | [
"select",
"<mask>",
".",
"<mask>",
",",
"<mask>",
".",
"<mask>",
",",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"join",
"<mask>",
"as",
"<mask... |
small_bank_1 | SELECT T2.balance , T3.balance , T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid JOIN savings AS T3 ON T1.custid = T3.custid ORDER BY T2.balance + T3.balance DESC | Find the name, checking balance and savings balance of all accounts in the bank sorted by their total checking and savings balance in descending order. | [
"SELECT",
"T2.balance",
",",
"T3.balance",
",",
"T1.name",
"FROM",
"accounts",
"AS",
"T1",
"JOIN",
"checking",
"AS",
"T2",
"ON",
"T1.custid",
"=",
"T2.custid",
"JOIN",
"savings",
"AS",
"T3",
"ON",
"T1.custid",
"=",
"T3.custid",
"ORDER",
"BY",
"T2.balance",
"... | [
"select",
"t2",
".",
"balance",
",",
"t3",
".",
"balance",
",",
"t1",
".",
"name",
"from",
"accounts",
"as",
"t1",
"join",
"checking",
"as",
"t2",
"on",
"t1",
".",
"custid",
"=",
"t2",
".",
"custid",
"join",
"savings",
"as",
"t3",
"on",
"t1",
".",
... | [
"Find",
"the",
"name",
",",
"checking",
"balance",
"and",
"savings",
"balance",
"of",
"all",
"accounts",
"in",
"the",
"bank",
"sorted",
"by",
"their",
"total",
"checking",
"and",
"savings",
"balance",
"in",
"descending",
"order",
"."
] | [
"Find",
"the",
"<mask>",
",",
"checking",
"<mask>",
"and",
"savings",
"<mask>",
"of",
"all",
"accounts",
"in",
"the",
"bank",
"sorted",
"by",
"their",
"total",
"checking",
"and",
"savings",
"<mask>",
"in",
"descending",
"order",
"."
] | [
"select",
"<mask>",
".",
"<mask>",
",",
"<mask>",
".",
"<mask>",
",",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"join",
"<mask>",
"as",
"<mask... |
small_bank_1 | SELECT T2.balance , T3.balance , T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid JOIN savings AS T3 ON T1.custid = T3.custid ORDER BY T2.balance + T3.balance DESC | What are the names, checking balances, and savings balances of customers, ordered by the total of checking and savings balances descending? | [
"SELECT",
"T2.balance",
",",
"T3.balance",
",",
"T1.name",
"FROM",
"accounts",
"AS",
"T1",
"JOIN",
"checking",
"AS",
"T2",
"ON",
"T1.custid",
"=",
"T2.custid",
"JOIN",
"savings",
"AS",
"T3",
"ON",
"T1.custid",
"=",
"T3.custid",
"ORDER",
"BY",
"T2.balance",
"... | [
"select",
"t2",
".",
"balance",
",",
"t3",
".",
"balance",
",",
"t1",
".",
"name",
"from",
"accounts",
"as",
"t1",
"join",
"checking",
"as",
"t2",
"on",
"t1",
".",
"custid",
"=",
"t2",
".",
"custid",
"join",
"savings",
"as",
"t3",
"on",
"t1",
".",
... | [
"What",
"are",
"the",
"names",
",",
"checking",
"balances",
",",
"and",
"savings",
"balances",
"of",
"customers",
",",
"ordered",
"by",
"the",
"total",
"of",
"checking",
"and",
"savings",
"balances",
"descending",
"?"
] | [
"What",
"are",
"the",
"<mask>",
",",
"checking",
"<mask>",
",",
"and",
"savings",
"<mask>",
"of",
"<mask>",
",",
"ordered",
"by",
"the",
"total",
"of",
"checking",
"and",
"savings",
"<mask>",
"descending",
"?"
] | [
"select",
"<mask>",
".",
"<mask>",
",",
"<mask>",
".",
"<mask>",
",",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"join",
"<mask>",
"as",
"<mask... |
small_bank_1 | SELECT T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid JOIN savings AS T3 ON T1.custid = T3.custid WHERE T2.balance > T3.balance | Find the name of accounts whose checking balance is higher than corresponding saving balance. | [
"SELECT",
"T1.name",
"FROM",
"accounts",
"AS",
"T1",
"JOIN",
"checking",
"AS",
"T2",
"ON",
"T1.custid",
"=",
"T2.custid",
"JOIN",
"savings",
"AS",
"T3",
"ON",
"T1.custid",
"=",
"T3.custid",
"WHERE",
"T2.balance",
">",
"T3.balance"
] | [
"select",
"t1",
".",
"name",
"from",
"accounts",
"as",
"t1",
"join",
"checking",
"as",
"t2",
"on",
"t1",
".",
"custid",
"=",
"t2",
".",
"custid",
"join",
"savings",
"as",
"t3",
"on",
"t1",
".",
"custid",
"=",
"t3",
".",
"custid",
"where",
"t2",
"."... | [
"Find",
"the",
"name",
"of",
"accounts",
"whose",
"checking",
"balance",
"is",
"higher",
"than",
"corresponding",
"saving",
"balance",
"."
] | [
"Find",
"the",
"<mask>",
"of",
"accounts",
"whose",
"checking",
"<mask>",
"is",
"higher",
"than",
"corresponding",
"saving",
"<mask>",
"."
] | [
"select",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mas... |
small_bank_1 | SELECT T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid JOIN savings AS T3 ON T1.custid = T3.custid WHERE T2.balance > T3.balance | What are the names of customers with a higher checking balance than savings balance? | [
"SELECT",
"T1.name",
"FROM",
"accounts",
"AS",
"T1",
"JOIN",
"checking",
"AS",
"T2",
"ON",
"T1.custid",
"=",
"T2.custid",
"JOIN",
"savings",
"AS",
"T3",
"ON",
"T1.custid",
"=",
"T3.custid",
"WHERE",
"T2.balance",
">",
"T3.balance"
] | [
"select",
"t1",
".",
"name",
"from",
"accounts",
"as",
"t1",
"join",
"checking",
"as",
"t2",
"on",
"t1",
".",
"custid",
"=",
"t2",
".",
"custid",
"join",
"savings",
"as",
"t3",
"on",
"t1",
".",
"custid",
"=",
"t3",
".",
"custid",
"where",
"t2",
"."... | [
"What",
"are",
"the",
"names",
"of",
"customers",
"with",
"a",
"higher",
"checking",
"balance",
"than",
"savings",
"balance",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"of",
"<mask>",
"with",
"a",
"higher",
"checking",
"<mask>",
"than",
"savings",
"<mask>",
"?"
] | [
"select",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mas... |
small_bank_1 | SELECT T1.name , T3.balance + T2.balance FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid JOIN savings AS T3 ON T1.custid = T3.custid WHERE T3.balance < T2.balance | Find the name and total checking and savings balance of the accounts whose savings balance is lower than corresponding checking balance. | [
"SELECT",
"T1.name",
",",
"T3.balance",
"+",
"T2.balance",
"FROM",
"accounts",
"AS",
"T1",
"JOIN",
"checking",
"AS",
"T2",
"ON",
"T1.custid",
"=",
"T2.custid",
"JOIN",
"savings",
"AS",
"T3",
"ON",
"T1.custid",
"=",
"T3.custid",
"WHERE",
"T3.balance",
"<",
"T... | [
"select",
"t1",
".",
"name",
",",
"t3",
".",
"balance",
"+",
"t2",
".",
"balance",
"from",
"accounts",
"as",
"t1",
"join",
"checking",
"as",
"t2",
"on",
"t1",
".",
"custid",
"=",
"t2",
".",
"custid",
"join",
"savings",
"as",
"t3",
"on",
"t1",
".",
... | [
"Find",
"the",
"name",
"and",
"total",
"checking",
"and",
"savings",
"balance",
"of",
"the",
"accounts",
"whose",
"savings",
"balance",
"is",
"lower",
"than",
"corresponding",
"checking",
"balance",
"."
] | [
"Find",
"the",
"<mask>",
"and",
"total",
"checking",
"and",
"savings",
"<mask>",
"of",
"the",
"accounts",
"whose",
"savings",
"<mask>",
"is",
"lower",
"than",
"corresponding",
"checking",
"<mask>",
"."
] | [
"select",
"<mask>",
".",
"<mask>",
",",
"<mask>",
".",
"<mask>",
"+",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"join",
"<mask>",
"as",
"<mask... |
small_bank_1 | SELECT T1.name , T3.balance + T2.balance FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid JOIN savings AS T3 ON T1.custid = T3.custid WHERE T3.balance < T2.balance | What are the names of customers who have a savings balance lower than their checking balance, and what is the total of their checking and savings balances? | [
"SELECT",
"T1.name",
",",
"T3.balance",
"+",
"T2.balance",
"FROM",
"accounts",
"AS",
"T1",
"JOIN",
"checking",
"AS",
"T2",
"ON",
"T1.custid",
"=",
"T2.custid",
"JOIN",
"savings",
"AS",
"T3",
"ON",
"T1.custid",
"=",
"T3.custid",
"WHERE",
"T3.balance",
"<",
"T... | [
"select",
"t1",
".",
"name",
",",
"t3",
".",
"balance",
"+",
"t2",
".",
"balance",
"from",
"accounts",
"as",
"t1",
"join",
"checking",
"as",
"t2",
"on",
"t1",
".",
"custid",
"=",
"t2",
".",
"custid",
"join",
"savings",
"as",
"t3",
"on",
"t1",
".",
... | [
"What",
"are",
"the",
"names",
"of",
"customers",
"who",
"have",
"a",
"savings",
"balance",
"lower",
"than",
"their",
"checking",
"balance",
",",
"and",
"what",
"is",
"the",
"total",
"of",
"their",
"checking",
"and",
"savings",
"balances",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"of",
"<mask>",
"who",
"have",
"a",
"savings",
"<mask>",
"lower",
"than",
"their",
"checking",
"<mask>",
",",
"and",
"what",
"is",
"the",
"total",
"of",
"their",
"checking",
"and",
"savings",
"<mask>",
"?"
] | [
"select",
"<mask>",
".",
"<mask>",
",",
"<mask>",
".",
"<mask>",
"+",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"join",
"<mask>",
"as",
"<mask... |
small_bank_1 | SELECT T1.name , T2.balance FROM accounts AS T1 JOIN savings AS T2 ON T1.custid = T2.custid ORDER BY T2.balance DESC LIMIT 3 | Find the name and savings balance of the top 3 accounts with the highest saving balance sorted by savings balance in descending order. | [
"SELECT",
"T1.name",
",",
"T2.balance",
"FROM",
"accounts",
"AS",
"T1",
"JOIN",
"savings",
"AS",
"T2",
"ON",
"T1.custid",
"=",
"T2.custid",
"ORDER",
"BY",
"T2.balance",
"DESC",
"LIMIT",
"3"
] | [
"select",
"t1",
".",
"name",
",",
"t2",
".",
"balance",
"from",
"accounts",
"as",
"t1",
"join",
"savings",
"as",
"t2",
"on",
"t1",
".",
"custid",
"=",
"t2",
".",
"custid",
"order",
"by",
"t2",
".",
"balance",
"desc",
"limit",
"value"
] | [
"Find",
"the",
"name",
"and",
"savings",
"balance",
"of",
"the",
"top",
"3",
"accounts",
"with",
"the",
"highest",
"saving",
"balance",
"sorted",
"by",
"savings",
"balance",
"in",
"descending",
"order",
"."
] | [
"Find",
"the",
"<mask>",
"and",
"savings",
"<mask>",
"of",
"the",
"top",
"<unk>",
"accounts",
"with",
"the",
"highest",
"saving",
"<mask>",
"sorted",
"by",
"savings",
"<mask>",
"in",
"descending",
"order",
"."
] | [
"select",
"<mask>",
".",
"<mask>",
",",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"order",
"by",
"<mask>",
".",
"<mask>",
"desc",
"limit",
"<u... |
small_bank_1 | SELECT T1.name , T2.balance FROM accounts AS T1 JOIN savings AS T2 ON T1.custid = T2.custid ORDER BY T2.balance DESC LIMIT 3 | What are names and savings balances of the three accounts with the highest savings balances? | [
"SELECT",
"T1.name",
",",
"T2.balance",
"FROM",
"accounts",
"AS",
"T1",
"JOIN",
"savings",
"AS",
"T2",
"ON",
"T1.custid",
"=",
"T2.custid",
"ORDER",
"BY",
"T2.balance",
"DESC",
"LIMIT",
"3"
] | [
"select",
"t1",
".",
"name",
",",
"t2",
".",
"balance",
"from",
"accounts",
"as",
"t1",
"join",
"savings",
"as",
"t2",
"on",
"t1",
".",
"custid",
"=",
"t2",
".",
"custid",
"order",
"by",
"t2",
".",
"balance",
"desc",
"limit",
"value"
] | [
"What",
"are",
"names",
"and",
"savings",
"balances",
"of",
"the",
"three",
"accounts",
"with",
"the",
"highest",
"savings",
"balances",
"?"
] | [
"What",
"are",
"<mask>",
"and",
"savings",
"<mask>",
"of",
"the",
"three",
"accounts",
"with",
"the",
"highest",
"savings",
"<mask>",
"?"
] | [
"select",
"<mask>",
".",
"<mask>",
",",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"order",
"by",
"<mask>",
".",
"<mask>",
"desc",
"limit",
"<u... |
browser_web | SELECT count(*) FROM browser WHERE market_share >= 5 | How many main stream browsers whose market share is at least 5 exist? | [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"browser",
"WHERE",
"market_share",
">",
"=",
"5"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"browser",
"where",
"market_share",
">",
"=",
"value"
] | [
"How",
"many",
"main",
"stream",
"browsers",
"whose",
"market",
"share",
"is",
"at",
"least",
"5",
"exist",
"?"
] | [
"How",
"many",
"main",
"stream",
"<mask>",
"whose",
"<mask>",
"<mask>",
"is",
"at",
"least",
"<unk>",
"exist",
"?"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"<mask>",
"where",
"<mask>",
">",
"=",
"<unk>"
] |
browser_web | SELECT name FROM browser ORDER BY market_share DESC | List the name of browsers in descending order by market share. | [
"SELECT",
"name",
"FROM",
"browser",
"ORDER",
"BY",
"market_share",
"DESC"
] | [
"select",
"name",
"from",
"browser",
"order",
"by",
"market_share",
"desc"
] | [
"List",
"the",
"name",
"of",
"browsers",
"in",
"descending",
"order",
"by",
"market",
"share",
"."
] | [
"List",
"the",
"<mask>",
"of",
"<mask>",
"in",
"descending",
"order",
"by",
"<mask>",
"<mask>",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"order",
"by",
"<mask>",
"desc"
] |
browser_web | SELECT id , name , market_share FROM browser | List the ids, names and market shares of all browsers. | [
"SELECT",
"id",
",",
"name",
",",
"market_share",
"FROM",
"browser"
] | [
"select",
"id",
",",
"name",
",",
"market_share",
"from",
"browser"
] | [
"List",
"the",
"ids",
",",
"names",
"and",
"market",
"shares",
"of",
"all",
"browsers",
"."
] | [
"List",
"the",
"ids",
",",
"<mask>",
"and",
"<mask>",
"<mask>",
"of",
"all",
"<mask>",
"."
] | [
"select",
"<mask>",
",",
"<mask>",
",",
"<mask>",
"from",
"<mask>"
] |
browser_web | SELECT max(market_share) , min(market_share) , avg(market_share) FROM browser | What is the maximum, minimum and average market share of the listed browsers? | [
"SELECT",
"max",
"(",
"market_share",
")",
",",
"min",
"(",
"market_share",
")",
",",
"avg",
"(",
"market_share",
")",
"FROM",
"browser"
] | [
"select",
"max",
"(",
"market_share",
")",
",",
"min",
"(",
"market_share",
")",
",",
"avg",
"(",
"market_share",
")",
"from",
"browser"
] | [
"What",
"is",
"the",
"maximum",
",",
"minimum",
"and",
"average",
"market",
"share",
"of",
"the",
"listed",
"browsers",
"?"
] | [
"What",
"is",
"the",
"maximum",
",",
"minimum",
"and",
"average",
"<mask>",
"<mask>",
"of",
"the",
"listed",
"<mask>",
"?"
] | [
"select",
"max",
"(",
"<mask>",
")",
",",
"min",
"(",
"<mask>",
")",
",",
"avg",
"(",
"<mask>",
")",
"from",
"<mask>"
] |
browser_web | SELECT id , market_share FROM browser WHERE name = 'Safari' | What is the id and market share of the browser Safari? | [
"SELECT",
"id",
",",
"market_share",
"FROM",
"browser",
"WHERE",
"name",
"=",
"'Safari",
"'"
] | [
"select",
"id",
",",
"market_share",
"from",
"browser",
"where",
"name",
"=",
"value"
] | [
"What",
"is",
"the",
"id",
"and",
"market",
"share",
"of",
"the",
"browser",
"Safari",
"?"
] | [
"What",
"is",
"the",
"id",
"and",
"<mask>",
"<mask>",
"of",
"the",
"<mask>",
"Safari",
"?"
] | [
"select",
"<mask>",
",",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>"
] |
browser_web | SELECT name , operating_system FROM web_client_accelerator WHERE CONNECTION != 'Broadband' | What are the name and os of web client accelerators that do not work with only a 'Broadband' type connection? | [
"SELECT",
"name",
",",
"operating_system",
"FROM",
"web_client_accelerator",
"WHERE",
"CONNECTION",
"!",
"=",
"'Broadband",
"'"
] | [
"select",
"name",
",",
"operating_system",
"from",
"web_client_accelerator",
"where",
"connection",
"!",
"=",
"value"
] | [
"What",
"are",
"the",
"name",
"and",
"os",
"of",
"web",
"client",
"accelerators",
"that",
"do",
"not",
"work",
"with",
"only",
"a",
"'Broadband",
"'",
"type",
"connection",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"and",
"os",
"of",
"<mask>",
"<mask>",
"<mask>",
"that",
"do",
"not",
"work",
"with",
"only",
"a",
"'Broadband",
"'",
"type",
"<mask>",
"?"
] | [
"select",
"<mask>",
",",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"!",
"=",
"<unk>"
] |
browser_web | SELECT T1.name FROM browser AS T1 JOIN accelerator_compatible_browser AS T2 ON T1.id = T2.browser_id JOIN web_client_accelerator AS T3 ON T2.accelerator_id = T3.id WHERE T3.name = 'CProxy' AND T2.compatible_since_year > 1998 | What is the name of the browser that became compatible with the accelerator 'CProxy' after year 1998 ? | [
"SELECT",
"T1.name",
"FROM",
"browser",
"AS",
"T1",
"JOIN",
"accelerator_compatible_browser",
"AS",
"T2",
"ON",
"T1.id",
"=",
"T2.browser_id",
"JOIN",
"web_client_accelerator",
"AS",
"T3",
"ON",
"T2.accelerator_id",
"=",
"T3.id",
"WHERE",
"T3.name",
"=",
"'CProxy",
... | [
"select",
"t1",
".",
"name",
"from",
"browser",
"as",
"t1",
"join",
"accelerator_compatible_browser",
"as",
"t2",
"on",
"t1",
".",
"id",
"=",
"t2",
".",
"browser_id",
"join",
"web_client_accelerator",
"as",
"t3",
"on",
"t2",
".",
"accelerator_id",
"=",
"t3",... | [
"What",
"is",
"the",
"name",
"of",
"the",
"browser",
"that",
"became",
"compatible",
"with",
"the",
"accelerator",
"'CProxy",
"'",
"after",
"year",
"1998",
"?"
] | [
"What",
"is",
"the",
"<mask>",
"of",
"the",
"<mask>",
"that",
"became",
"<mask>",
"with",
"the",
"<mask>",
"'CProxy",
"'",
"after",
"<mask>",
"<unk>",
"?"
] | [
"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... |
browser_web | SELECT T1.id , T1.Name FROM web_client_accelerator AS T1 JOIN accelerator_compatible_browser AS T2 ON T2.accelerator_id = T1.id GROUP BY T1.id HAVING count(*) >= 2 | What are the ids and names of the web accelerators that are compatible with two or more browsers? | [
"SELECT",
"T1.id",
",",
"T1.Name",
"FROM",
"web_client_accelerator",
"AS",
"T1",
"JOIN",
"accelerator_compatible_browser",
"AS",
"T2",
"ON",
"T2.accelerator_id",
"=",
"T1.id",
"GROUP",
"BY",
"T1.id",
"HAVING",
"count",
"(",
"*",
")",
">",
"=",
"2"
] | [
"select",
"t1",
".",
"id",
",",
"t1",
".",
"name",
"from",
"web_client_accelerator",
"as",
"t1",
"join",
"accelerator_compatible_browser",
"as",
"t2",
"on",
"t2",
".",
"accelerator_id",
"=",
"t1",
".",
"id",
"group",
"by",
"t1",
".",
"id",
"having",
"count... | [
"What",
"are",
"the",
"ids",
"and",
"names",
"of",
"the",
"web",
"accelerators",
"that",
"are",
"compatible",
"with",
"two",
"or",
"more",
"browsers",
"?"
] | [
"What",
"are",
"the",
"ids",
"and",
"<mask>",
"of",
"the",
"<mask>",
"<mask>",
"that",
"are",
"<mask>",
"with",
"two",
"or",
"more",
"<mask>",
"?"
] | [
"select",
"<mask>",
".",
"<mask>",
",",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"group",
"by",
"<mask>",
".",
"<mask>",
"<mask>",
"count",
"... |
browser_web | SELECT T1.id , T1.name FROM browser AS T1 JOIN accelerator_compatible_browser AS T2 ON T1.id = T2.browser_id GROUP BY T1.id ORDER BY count(*) DESC LIMIT 1 | What is the id and name of the browser that is compatible with the most web accelerators? | [
"SELECT",
"T1.id",
",",
"T1.name",
"FROM",
"browser",
"AS",
"T1",
"JOIN",
"accelerator_compatible_browser",
"AS",
"T2",
"ON",
"T1.id",
"=",
"T2.browser_id",
"GROUP",
"BY",
"T1.id",
"ORDER",
"BY",
"count",
"(",
"*",
")",
"DESC",
"LIMIT",
"1"
] | [
"select",
"t1",
".",
"id",
",",
"t1",
".",
"name",
"from",
"browser",
"as",
"t1",
"join",
"accelerator_compatible_browser",
"as",
"t2",
"on",
"t1",
".",
"id",
"=",
"t2",
".",
"browser_id",
"group",
"by",
"t1",
".",
"id",
"order",
"by",
"count",
"(",
... | [
"What",
"is",
"the",
"id",
"and",
"name",
"of",
"the",
"browser",
"that",
"is",
"compatible",
"with",
"the",
"most",
"web",
"accelerators",
"?"
] | [
"What",
"is",
"the",
"id",
"and",
"<mask>",
"of",
"the",
"<mask>",
"that",
"is",
"<mask>",
"with",
"the",
"most",
"<mask>",
"<mask>",
"?"
] | [
"select",
"<mask>",
".",
"<mask>",
",",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"group",
"by",
"<mask>",
".",
"<mask>",
"order",
"by",
"coun... |
browser_web | SELECT T1.compatible_since_year FROM accelerator_compatible_browser AS T1 JOIN browser AS T2 ON T1.browser_id = T2.id JOIN web_client_accelerator AS T3 ON T1.accelerator_id = T3.id WHERE T3.name = 'CACHEbox' AND T2.name = 'Internet Explorer' | When did the web accelerator 'CACHEbox' and browser 'Internet Explorer' become compatible? | [
"SELECT",
"T1.compatible_since_year",
"FROM",
"accelerator_compatible_browser",
"AS",
"T1",
"JOIN",
"browser",
"AS",
"T2",
"ON",
"T1.browser_id",
"=",
"T2.id",
"JOIN",
"web_client_accelerator",
"AS",
"T3",
"ON",
"T1.accelerator_id",
"=",
"T3.id",
"WHERE",
"T3.name",
"... | [
"select",
"t1",
".",
"compatible_since_year",
"from",
"accelerator_compatible_browser",
"as",
"t1",
"join",
"browser",
"as",
"t2",
"on",
"t1",
".",
"browser_id",
"=",
"t2",
".",
"id",
"join",
"web_client_accelerator",
"as",
"t3",
"on",
"t1",
".",
"accelerator_id... | [
"When",
"did",
"the",
"web",
"accelerator",
"'CACHEbox",
"'",
"and",
"browser",
"'Internet",
"Explorer",
"'",
"become",
"compatible",
"?"
] | [
"When",
"did",
"the",
"<mask>",
"<mask>",
"'CACHEbox",
"'",
"and",
"<mask>",
"'Internet",
"Explorer",
"'",
"become",
"<mask>",
"?"
] | [
"select",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mas... |
browser_web | SELECT count(DISTINCT client) FROM web_client_accelerator | How many different kinds of clients are supported by the web clients accelerators? | [
"SELECT",
"count",
"(",
"DISTINCT",
"client",
")",
"FROM",
"web_client_accelerator"
] | [
"select",
"count",
"(",
"distinct",
"client",
")",
"from",
"web_client_accelerator"
] | [
"How",
"many",
"different",
"kinds",
"of",
"clients",
"are",
"supported",
"by",
"the",
"web",
"clients",
"accelerators",
"?"
] | [
"How",
"many",
"different",
"kinds",
"of",
"<mask>",
"are",
"supported",
"by",
"the",
"<mask>",
"<mask>",
"<mask>",
"?"
] | [
"select",
"count",
"(",
"distinct",
"<mask>",
")",
"from",
"<mask>"
] |
browser_web | SELECT count(*) FROM web_client_accelerator WHERE id NOT IN ( SELECT accelerator_id FROM accelerator_compatible_browser ); | How many accelerators are not compatible with the browsers listed ? | [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"web_client_accelerator",
"WHERE",
"id",
"NOT",
"IN",
"(",
"SELECT",
"accelerator_id",
"FROM",
"accelerator_compatible_browser",
")",
";"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"web_client_accelerator",
"where",
"id",
"not",
"in",
"(",
"select",
"accelerator_id",
"from",
"accelerator_compatible_browser",
")"
] | [
"How",
"many",
"accelerators",
"are",
"not",
"compatible",
"with",
"the",
"browsers",
"listed",
"?"
] | [
"How",
"many",
"<mask>",
"are",
"not",
"<mask>",
"with",
"the",
"<mask>",
"listed",
"?"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"<mask>",
"where",
"<mask>",
"not",
"in",
"(",
"select",
"<mask>",
"from",
"<mask>",
")"
] |
browser_web | SELECT DISTINCT T1.name FROM web_client_accelerator AS T1 JOIN accelerator_compatible_browser AS T2 ON T2.accelerator_id = T1.id JOIN browser AS T3 ON T2.browser_id = T3.id WHERE T3.market_share > 15; | What distinct accelerator names are compatible with the browswers that have market share higher than 15? | [
"SELECT",
"DISTINCT",
"T1.name",
"FROM",
"web_client_accelerator",
"AS",
"T1",
"JOIN",
"accelerator_compatible_browser",
"AS",
"T2",
"ON",
"T2.accelerator_id",
"=",
"T1.id",
"JOIN",
"browser",
"AS",
"T3",
"ON",
"T2.browser_id",
"=",
"T3.id",
"WHERE",
"T3.market_share"... | [
"select",
"distinct",
"t1",
".",
"name",
"from",
"web_client_accelerator",
"as",
"t1",
"join",
"accelerator_compatible_browser",
"as",
"t2",
"on",
"t2",
".",
"accelerator_id",
"=",
"t1",
".",
"id",
"join",
"browser",
"as",
"t3",
"on",
"t2",
".",
"browser_id",
... | [
"What",
"distinct",
"accelerator",
"names",
"are",
"compatible",
"with",
"the",
"browswers",
"that",
"have",
"market",
"share",
"higher",
"than",
"15",
"?"
] | [
"What",
"distinct",
"<mask>",
"<mask>",
"are",
"<mask>",
"with",
"the",
"browswers",
"that",
"have",
"<mask>",
"<mask>",
"higher",
"than",
"<unk>",
"?"
] | [
"select",
"distinct",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
... |
browser_web | SELECT T3.name FROM web_client_accelerator AS T1 JOIN accelerator_compatible_browser AS T2 ON T2.accelerator_id = T1.id JOIN browser AS T3 ON T2.browser_id = T3.id WHERE T1.name = 'CACHEbox' INTERSECT SELECT T3.name FROM web_client_accelerator AS T1 JOIN accelerator_compatible_browser AS T2 ON T2.accelerator_id ... | List the names of the browser that are compatible with both 'CACHEbox' and 'Fasterfox'. | [
"SELECT",
"T3.name",
"FROM",
"web_client_accelerator",
"AS",
"T1",
"JOIN",
"accelerator_compatible_browser",
"AS",
"T2",
"ON",
"T2.accelerator_id",
"=",
"T1.id",
"JOIN",
"browser",
"AS",
"T3",
"ON",
"T2.browser_id",
"=",
"T3.id",
"WHERE",
"T1.name",
"=",
"'CACHEbox"... | [
"select",
"t3",
".",
"name",
"from",
"web_client_accelerator",
"as",
"t1",
"join",
"accelerator_compatible_browser",
"as",
"t2",
"on",
"t2",
".",
"accelerator_id",
"=",
"t1",
".",
"id",
"join",
"browser",
"as",
"t3",
"on",
"t2",
".",
"browser_id",
"=",
"t3",... | [
"List",
"the",
"names",
"of",
"the",
"browser",
"that",
"are",
"compatible",
"with",
"both",
"'CACHEbox",
"'",
"and",
"'Fasterfox",
"'",
"."
] | [
"List",
"the",
"<mask>",
"of",
"the",
"<mask>",
"that",
"are",
"<mask>",
"with",
"both",
"'CACHEbox",
"'",
"and",
"'Fasterfox",
"'",
"."
] | [
"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... |
browser_web | SELECT name , operating_system FROM web_client_accelerator EXCEPT SELECT T1.name , T1.operating_system FROM web_client_accelerator AS T1 JOIN accelerator_compatible_browser AS T2 ON T2.accelerator_id = T1.id JOIN browser AS T3 ON T2.browser_id = T3.id WHERE T3.name = 'Opera' | Show the accelerator names and supporting operating systems that are not compatible with the browser named 'Opera'. | [
"SELECT",
"name",
",",
"operating_system",
"FROM",
"web_client_accelerator",
"EXCEPT",
"SELECT",
"T1.name",
",",
"T1.operating_system",
"FROM",
"web_client_accelerator",
"AS",
"T1",
"JOIN",
"accelerator_compatible_browser",
"AS",
"T2",
"ON",
"T2.accelerator_id",
"=",
"T1.... | [
"select",
"name",
",",
"operating_system",
"from",
"web_client_accelerator",
"except",
"select",
"t1",
".",
"name",
",",
"t1",
".",
"operating_system",
"from",
"web_client_accelerator",
"as",
"t1",
"join",
"accelerator_compatible_browser",
"as",
"t2",
"on",
"t2",
".... | [
"Show",
"the",
"accelerator",
"names",
"and",
"supporting",
"operating",
"systems",
"that",
"are",
"not",
"compatible",
"with",
"the",
"browser",
"named",
"'Opera",
"'",
"."
] | [
"Show",
"the",
"<mask>",
"<mask>",
"and",
"supporting",
"operating",
"<mask>",
"that",
"are",
"not",
"<mask>",
"with",
"the",
"<mask>",
"<mask>",
"'Opera",
"'",
"."
] | [
"select",
"<mask>",
",",
"<mask>",
"from",
"<mask>",
"except",
"select",
"<mask>",
".",
"<mask>",
",",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",... |
browser_web | SELECT name FROM web_client_accelerator WHERE name LIKE "%Opera%" | Which accelerator name contains substring "Opera"? | [
"SELECT",
"name",
"FROM",
"web_client_accelerator",
"WHERE",
"name",
"LIKE",
"``",
"%",
"Opera",
"%",
"''"
] | [
"select",
"name",
"from",
"web_client_accelerator",
"where",
"name",
"like",
"value"
] | [
"Which",
"accelerator",
"name",
"contains",
"substring",
"``",
"Opera",
"''",
"?"
] | [
"Which",
"<mask>",
"<mask>",
"contains",
"substring",
"``",
"Opera",
"''",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"like",
"<unk>"
] |
browser_web | SELECT Operating_system , count(*) FROM web_client_accelerator GROUP BY Operating_system | Find the number of web accelerators used for each Operating system. | [
"SELECT",
"Operating_system",
",",
"count",
"(",
"*",
")",
"FROM",
"web_client_accelerator",
"GROUP",
"BY",
"Operating_system"
] | [
"select",
"operating_system",
",",
"count",
"(",
"*",
")",
"from",
"web_client_accelerator",
"group",
"by",
"operating_system"
] | [
"Find",
"the",
"number",
"of",
"web",
"accelerators",
"used",
"for",
"each",
"Operating",
"system",
"."
] | [
"Find",
"the",
"number",
"of",
"<mask>",
"<mask>",
"used",
"for",
"each",
"Operating",
"<mask>",
"."
] | [
"select",
"<mask>",
",",
"count",
"(",
"*",
")",
"from",
"<mask>",
"group",
"by",
"<mask>"
] |
browser_web | SELECT T2.name , T3.name FROM accelerator_compatible_browser AS T1 JOIN browser AS T2 ON T1.browser_id = T2.id JOIN web_client_accelerator AS T3 ON T1.accelerator_id = T3.id ORDER BY T1.compatible_since_year DESC | give me names of all compatible browsers and accelerators in the descending order of compatible year | [
"SELECT",
"T2.name",
",",
"T3.name",
"FROM",
"accelerator_compatible_browser",
"AS",
"T1",
"JOIN",
"browser",
"AS",
"T2",
"ON",
"T1.browser_id",
"=",
"T2.id",
"JOIN",
"web_client_accelerator",
"AS",
"T3",
"ON",
"T1.accelerator_id",
"=",
"T3.id",
"ORDER",
"BY",
"T1... | [
"select",
"t2",
".",
"name",
",",
"t3",
".",
"name",
"from",
"accelerator_compatible_browser",
"as",
"t1",
"join",
"browser",
"as",
"t2",
"on",
"t1",
".",
"browser_id",
"=",
"t2",
".",
"id",
"join",
"web_client_accelerator",
"as",
"t3",
"on",
"t1",
".",
... | [
"give",
"me",
"names",
"of",
"all",
"compatible",
"browsers",
"and",
"accelerators",
"in",
"the",
"descending",
"order",
"of",
"compatible",
"year"
] | [
"give",
"me",
"<mask>",
"of",
"all",
"<mask>",
"<mask>",
"and",
"<mask>",
"in",
"the",
"descending",
"order",
"of",
"<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... |
wrestler | SELECT count(*) FROM wrestler | How many wrestlers are there? | [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"wrestler"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"wrestler"
] | [
"How",
"many",
"wrestlers",
"are",
"there",
"?"
] | [
"How",
"many",
"<mask>",
"are",
"there",
"?"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"<mask>"
] |
wrestler | SELECT count(*) FROM wrestler | Count the number of wrestlers. | [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"wrestler"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"wrestler"
] | [
"Count",
"the",
"number",
"of",
"wrestlers",
"."
] | [
"Count",
"the",
"number",
"of",
"<mask>",
"."
] | [
"select",
"count",
"(",
"*",
")",
"from",
"<mask>"
] |
wrestler | SELECT Name FROM wrestler ORDER BY Days_held DESC | List the names of wrestlers in descending order of days held. | [
"SELECT",
"Name",
"FROM",
"wrestler",
"ORDER",
"BY",
"Days_held",
"DESC"
] | [
"select",
"name",
"from",
"wrestler",
"order",
"by",
"days_held",
"desc"
] | [
"List",
"the",
"names",
"of",
"wrestlers",
"in",
"descending",
"order",
"of",
"days",
"held",
"."
] | [
"List",
"the",
"<mask>",
"of",
"<mask>",
"in",
"descending",
"order",
"of",
"days",
"held",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"order",
"by",
"<mask>",
"desc"
] |
wrestler | SELECT Name FROM wrestler ORDER BY Days_held DESC | What are the names of the wrestlers, ordered descending by days held? | [
"SELECT",
"Name",
"FROM",
"wrestler",
"ORDER",
"BY",
"Days_held",
"DESC"
] | [
"select",
"name",
"from",
"wrestler",
"order",
"by",
"days_held",
"desc"
] | [
"What",
"are",
"the",
"names",
"of",
"the",
"wrestlers",
",",
"ordered",
"descending",
"by",
"days",
"held",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"of",
"the",
"<mask>",
",",
"ordered",
"descending",
"by",
"days",
"held",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"order",
"by",
"<mask>",
"desc"
] |
wrestler | SELECT Name FROM wrestler ORDER BY Days_held ASC LIMIT 1 | What is the name of the wrestler with the fewest days held? | [
"SELECT",
"Name",
"FROM",
"wrestler",
"ORDER",
"BY",
"Days_held",
"ASC",
"LIMIT",
"1"
] | [
"select",
"name",
"from",
"wrestler",
"order",
"by",
"days_held",
"asc",
"limit",
"value"
] | [
"What",
"is",
"the",
"name",
"of",
"the",
"wrestler",
"with",
"the",
"fewest",
"days",
"held",
"?"
] | [
"What",
"is",
"the",
"<mask>",
"of",
"the",
"<mask>",
"with",
"the",
"fewest",
"days",
"held",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"order",
"by",
"<mask>",
"asc",
"limit",
"<unk>"
] |
wrestler | SELECT Name FROM wrestler ORDER BY Days_held ASC LIMIT 1 | Return the name of the wrestler who had the lowest number of days held. | [
"SELECT",
"Name",
"FROM",
"wrestler",
"ORDER",
"BY",
"Days_held",
"ASC",
"LIMIT",
"1"
] | [
"select",
"name",
"from",
"wrestler",
"order",
"by",
"days_held",
"asc",
"limit",
"value"
] | [
"Return",
"the",
"name",
"of",
"the",
"wrestler",
"who",
"had",
"the",
"lowest",
"number",
"of",
"days",
"held",
"."
] | [
"Return",
"the",
"<mask>",
"of",
"the",
"<mask>",
"who",
"had",
"the",
"lowest",
"number",
"of",
"days",
"held",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"order",
"by",
"<mask>",
"asc",
"limit",
"<unk>"
] |
wrestler | SELECT DISTINCT Reign FROM wrestler WHERE LOCATION != "Tokyo , Japan" | What are the distinct reigns of wrestlers whose location is not "Tokyo,Japan" ? | [
"SELECT",
"DISTINCT",
"Reign",
"FROM",
"wrestler",
"WHERE",
"LOCATION",
"!",
"=",
"``",
"Tokyo",
",",
"Japan",
"''"
] | [
"select",
"distinct",
"reign",
"from",
"wrestler",
"where",
"location",
"!",
"=",
"value"
] | [
"What",
"are",
"the",
"distinct",
"reigns",
"of",
"wrestlers",
"whose",
"location",
"is",
"not",
"``",
"Tokyo",
",",
"Japan",
"''",
"?"
] | [
"What",
"are",
"the",
"distinct",
"<mask>",
"of",
"<mask>",
"whose",
"<mask>",
"is",
"not",
"``",
"Tokyo",
",",
"Japan",
"''",
"?"
] | [
"select",
"distinct",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"!",
"=",
"<unk>"
] |
wrestler | SELECT DISTINCT Reign FROM wrestler WHERE LOCATION != "Tokyo , Japan" | Give the different reigns of wrestlers who are not located in Tokyo, Japan. | [
"SELECT",
"DISTINCT",
"Reign",
"FROM",
"wrestler",
"WHERE",
"LOCATION",
"!",
"=",
"``",
"Tokyo",
",",
"Japan",
"''"
] | [
"select",
"distinct",
"reign",
"from",
"wrestler",
"where",
"location",
"!",
"=",
"value"
] | [
"Give",
"the",
"different",
"reigns",
"of",
"wrestlers",
"who",
"are",
"not",
"located",
"in",
"Tokyo",
",",
"Japan",
"."
] | [
"Give",
"the",
"different",
"<mask>",
"of",
"<mask>",
"who",
"are",
"not",
"located",
"in",
"Tokyo",
",",
"Japan",
"."
] | [
"select",
"distinct",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"!",
"=",
"<unk>"
] |
wrestler | SELECT Name , LOCATION FROM wrestler | What are the names and location of the wrestlers? | [
"SELECT",
"Name",
",",
"LOCATION",
"FROM",
"wrestler"
] | [
"select",
"name",
",",
"location",
"from",
"wrestler"
] | [
"What",
"are",
"the",
"names",
"and",
"location",
"of",
"the",
"wrestlers",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"and",
"<mask>",
"of",
"the",
"<mask>",
"?"
] | [
"select",
"<mask>",
",",
"<mask>",
"from",
"<mask>"
] |
wrestler | SELECT Name , LOCATION FROM wrestler | Give the names and locations of all wrestlers. | [
"SELECT",
"Name",
",",
"LOCATION",
"FROM",
"wrestler"
] | [
"select",
"name",
",",
"location",
"from",
"wrestler"
] | [
"Give",
"the",
"names",
"and",
"locations",
"of",
"all",
"wrestlers",
"."
] | [
"Give",
"the",
"<mask>",
"and",
"<mask>",
"of",
"all",
"<mask>",
"."
] | [
"select",
"<mask>",
",",
"<mask>",
"from",
"<mask>"
] |
wrestler | SELECT Elimination_Move FROM Elimination WHERE Team = "Team Orton" | What are the elimination moves of wrestlers whose team is "Team Orton"? | [
"SELECT",
"Elimination_Move",
"FROM",
"Elimination",
"WHERE",
"Team",
"=",
"``",
"Team",
"Orton",
"''"
] | [
"select",
"elimination_move",
"from",
"elimination",
"where",
"team",
"=",
"value"
] | [
"What",
"are",
"the",
"elimination",
"moves",
"of",
"wrestlers",
"whose",
"team",
"is",
"``",
"Team",
"Orton",
"''",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"<mask>",
"of",
"<mask>",
"whose",
"<mask>",
"is",
"``",
"<mask>",
"Orton",
"''",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>"
] |
wrestler | SELECT Elimination_Move FROM Elimination WHERE Team = "Team Orton" | Return the elimination movies of wrestlers on Team Orton. | [
"SELECT",
"Elimination_Move",
"FROM",
"Elimination",
"WHERE",
"Team",
"=",
"``",
"Team",
"Orton",
"''"
] | [
"select",
"elimination_move",
"from",
"elimination",
"where",
"team",
"=",
"value"
] | [
"Return",
"the",
"elimination",
"movies",
"of",
"wrestlers",
"on",
"Team",
"Orton",
"."
] | [
"Return",
"the",
"<mask>",
"movies",
"of",
"<mask>",
"on",
"<mask>",
"Orton",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>"
] |
wrestler | SELECT T2.Name , T1.Elimination_Move FROM elimination AS T1 JOIN wrestler AS T2 ON T1.Wrestler_ID = T2.Wrestler_ID | What are the names of wrestlers and the elimination moves? | [
"SELECT",
"T2.Name",
",",
"T1.Elimination_Move",
"FROM",
"elimination",
"AS",
"T1",
"JOIN",
"wrestler",
"AS",
"T2",
"ON",
"T1.Wrestler_ID",
"=",
"T2.Wrestler_ID"
] | [
"select",
"t2",
".",
"name",
",",
"t1",
".",
"elimination_move",
"from",
"elimination",
"as",
"t1",
"join",
"wrestler",
"as",
"t2",
"on",
"t1",
".",
"wrestler_id",
"=",
"t2",
".",
"wrestler_id"
] | [
"What",
"are",
"the",
"names",
"of",
"wrestlers",
"and",
"the",
"elimination",
"moves",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"of",
"<mask>",
"and",
"the",
"<mask>",
"<mask>",
"?"
] | [
"select",
"<mask>",
".",
"<mask>",
",",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>"
] |
wrestler | SELECT T2.Name , T1.Elimination_Move FROM elimination AS T1 JOIN wrestler AS T2 ON T1.Wrestler_ID = T2.Wrestler_ID | Give the names of wrestlers and their elimination moves. | [
"SELECT",
"T2.Name",
",",
"T1.Elimination_Move",
"FROM",
"elimination",
"AS",
"T1",
"JOIN",
"wrestler",
"AS",
"T2",
"ON",
"T1.Wrestler_ID",
"=",
"T2.Wrestler_ID"
] | [
"select",
"t2",
".",
"name",
",",
"t1",
".",
"elimination_move",
"from",
"elimination",
"as",
"t1",
"join",
"wrestler",
"as",
"t2",
"on",
"t1",
".",
"wrestler_id",
"=",
"t2",
".",
"wrestler_id"
] | [
"Give",
"the",
"names",
"of",
"wrestlers",
"and",
"their",
"elimination",
"moves",
"."
] | [
"Give",
"the",
"<mask>",
"of",
"<mask>",
"and",
"their",
"<mask>",
"<mask>",
"."
] | [
"select",
"<mask>",
".",
"<mask>",
",",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>"
] |
wrestler | SELECT T2.Name , T1.Team FROM elimination AS T1 JOIN wrestler AS T2 ON T1.Wrestler_ID = T2.Wrestler_ID ORDER BY T2.Days_held DESC | List the names of wrestlers and the teams in elimination in descending order of days held. | [
"SELECT",
"T2.Name",
",",
"T1.Team",
"FROM",
"elimination",
"AS",
"T1",
"JOIN",
"wrestler",
"AS",
"T2",
"ON",
"T1.Wrestler_ID",
"=",
"T2.Wrestler_ID",
"ORDER",
"BY",
"T2.Days_held",
"DESC"
] | [
"select",
"t2",
".",
"name",
",",
"t1",
".",
"team",
"from",
"elimination",
"as",
"t1",
"join",
"wrestler",
"as",
"t2",
"on",
"t1",
".",
"wrestler_id",
"=",
"t2",
".",
"wrestler_id",
"order",
"by",
"t2",
".",
"days_held",
"desc"
] | [
"List",
"the",
"names",
"of",
"wrestlers",
"and",
"the",
"teams",
"in",
"elimination",
"in",
"descending",
"order",
"of",
"days",
"held",
"."
] | [
"List",
"the",
"<mask>",
"of",
"<mask>",
"and",
"the",
"<mask>",
"in",
"<mask>",
"in",
"descending",
"order",
"of",
"days",
"held",
"."
] | [
"select",
"<mask>",
".",
"<mask>",
",",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"order",
"by",
"<mask>",
".",
"<mask>",
"desc"
] |
wrestler | SELECT T2.Name , T1.Team FROM elimination AS T1 JOIN wrestler AS T2 ON T1.Wrestler_ID = T2.Wrestler_ID ORDER BY T2.Days_held DESC | What are the names of wrestlers and their teams in elimination, ordered descending by days held? | [
"SELECT",
"T2.Name",
",",
"T1.Team",
"FROM",
"elimination",
"AS",
"T1",
"JOIN",
"wrestler",
"AS",
"T2",
"ON",
"T1.Wrestler_ID",
"=",
"T2.Wrestler_ID",
"ORDER",
"BY",
"T2.Days_held",
"DESC"
] | [
"select",
"t2",
".",
"name",
",",
"t1",
".",
"team",
"from",
"elimination",
"as",
"t1",
"join",
"wrestler",
"as",
"t2",
"on",
"t1",
".",
"wrestler_id",
"=",
"t2",
".",
"wrestler_id",
"order",
"by",
"t2",
".",
"days_held",
"desc"
] | [
"What",
"are",
"the",
"names",
"of",
"wrestlers",
"and",
"their",
"teams",
"in",
"elimination",
",",
"ordered",
"descending",
"by",
"days",
"held",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"of",
"<mask>",
"and",
"their",
"<mask>",
"in",
"<mask>",
",",
"ordered",
"descending",
"by",
"days",
"held",
"?"
] | [
"select",
"<mask>",
".",
"<mask>",
",",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"order",
"by",
"<mask>",
".",
"<mask>",
"desc"
] |
wrestler | SELECT T1.Time FROM elimination AS T1 JOIN wrestler AS T2 ON T1.Wrestler_ID = T2.Wrestler_ID ORDER BY T2.Days_held DESC LIMIT 1 | List the time of elimination of the wrestlers with largest days held. | [
"SELECT",
"T1.Time",
"FROM",
"elimination",
"AS",
"T1",
"JOIN",
"wrestler",
"AS",
"T2",
"ON",
"T1.Wrestler_ID",
"=",
"T2.Wrestler_ID",
"ORDER",
"BY",
"T2.Days_held",
"DESC",
"LIMIT",
"1"
] | [
"select",
"t1",
".",
"time",
"from",
"elimination",
"as",
"t1",
"join",
"wrestler",
"as",
"t2",
"on",
"t1",
".",
"wrestler_id",
"=",
"t2",
".",
"wrestler_id",
"order",
"by",
"t2",
".",
"days_held",
"desc",
"limit",
"value"
] | [
"List",
"the",
"time",
"of",
"elimination",
"of",
"the",
"wrestlers",
"with",
"largest",
"days",
"held",
"."
] | [
"List",
"the",
"<mask>",
"of",
"<mask>",
"of",
"the",
"<mask>",
"with",
"largest",
"days",
"held",
"."
] | [
"select",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"order",
"by",
"<mask>",
".",
"<mask>",
"desc",
"limit",
"<unk>"
] |
wrestler | SELECT T1.Time FROM elimination AS T1 JOIN wrestler AS T2 ON T1.Wrestler_ID = T2.Wrestler_ID ORDER BY T2.Days_held DESC LIMIT 1 | What is the time of elimination for the wrestler with the most days held? | [
"SELECT",
"T1.Time",
"FROM",
"elimination",
"AS",
"T1",
"JOIN",
"wrestler",
"AS",
"T2",
"ON",
"T1.Wrestler_ID",
"=",
"T2.Wrestler_ID",
"ORDER",
"BY",
"T2.Days_held",
"DESC",
"LIMIT",
"1"
] | [
"select",
"t1",
".",
"time",
"from",
"elimination",
"as",
"t1",
"join",
"wrestler",
"as",
"t2",
"on",
"t1",
".",
"wrestler_id",
"=",
"t2",
".",
"wrestler_id",
"order",
"by",
"t2",
".",
"days_held",
"desc",
"limit",
"value"
] | [
"What",
"is",
"the",
"time",
"of",
"elimination",
"for",
"the",
"wrestler",
"with",
"the",
"most",
"days",
"held",
"?"
] | [
"What",
"is",
"the",
"<mask>",
"of",
"<mask>",
"for",
"the",
"<mask>",
"with",
"the",
"most",
"days",
"held",
"?"
] | [
"select",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"order",
"by",
"<mask>",
".",
"<mask>",
"desc",
"limit",
"<unk>"
] |
wrestler | SELECT T1.Time FROM elimination AS T1 JOIN wrestler AS T2 ON T1.Wrestler_ID = T2.Wrestler_ID WHERE T2.Days_held > 50 | Show times of elimination of wrestlers with days held more than 50. | [
"SELECT",
"T1.Time",
"FROM",
"elimination",
"AS",
"T1",
"JOIN",
"wrestler",
"AS",
"T2",
"ON",
"T1.Wrestler_ID",
"=",
"T2.Wrestler_ID",
"WHERE",
"T2.Days_held",
">",
"50"
] | [
"select",
"t1",
".",
"time",
"from",
"elimination",
"as",
"t1",
"join",
"wrestler",
"as",
"t2",
"on",
"t1",
".",
"wrestler_id",
"=",
"t2",
".",
"wrestler_id",
"where",
"t2",
".",
"days_held",
">",
"value"
] | [
"Show",
"times",
"of",
"elimination",
"of",
"wrestlers",
"with",
"days",
"held",
"more",
"than",
"50",
"."
] | [
"Show",
"<mask>",
"of",
"<mask>",
"of",
"<mask>",
"with",
"days",
"held",
"more",
"than",
"<unk>",
"."
] | [
"select",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"<mask>",
".",
"<mask>",
">",
"<unk>"
] |
wrestler | SELECT T1.Time FROM elimination AS T1 JOIN wrestler AS T2 ON T1.Wrestler_ID = T2.Wrestler_ID WHERE T2.Days_held > 50 | What are the times of elimination for wrestlers with over 50 days held? | [
"SELECT",
"T1.Time",
"FROM",
"elimination",
"AS",
"T1",
"JOIN",
"wrestler",
"AS",
"T2",
"ON",
"T1.Wrestler_ID",
"=",
"T2.Wrestler_ID",
"WHERE",
"T2.Days_held",
">",
"50"
] | [
"select",
"t1",
".",
"time",
"from",
"elimination",
"as",
"t1",
"join",
"wrestler",
"as",
"t2",
"on",
"t1",
".",
"wrestler_id",
"=",
"t2",
".",
"wrestler_id",
"where",
"t2",
".",
"days_held",
">",
"value"
] | [
"What",
"are",
"the",
"times",
"of",
"elimination",
"for",
"wrestlers",
"with",
"over",
"50",
"days",
"held",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"of",
"<mask>",
"for",
"<mask>",
"with",
"over",
"<unk>",
"days",
"held",
"?"
] | [
"select",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"<mask>",
".",
"<mask>",
">",
"<unk>"
] |
wrestler | SELECT Team , COUNT(*) FROM elimination GROUP BY Team | Show different teams in eliminations and the number of eliminations from each team. | [
"SELECT",
"Team",
",",
"COUNT",
"(",
"*",
")",
"FROM",
"elimination",
"GROUP",
"BY",
"Team"
] | [
"select",
"team",
",",
"count",
"(",
"*",
")",
"from",
"elimination",
"group",
"by",
"team"
] | [
"Show",
"different",
"teams",
"in",
"eliminations",
"and",
"the",
"number",
"of",
"eliminations",
"from",
"each",
"team",
"."
] | [
"Show",
"different",
"<mask>",
"in",
"<mask>",
"and",
"the",
"number",
"of",
"<mask>",
"from",
"each",
"<mask>",
"."
] | [
"select",
"<mask>",
",",
"count",
"(",
"*",
")",
"from",
"<mask>",
"group",
"by",
"<mask>"
] |
wrestler | SELECT Team , COUNT(*) FROM elimination GROUP BY Team | How many eliminations did each team have? | [
"SELECT",
"Team",
",",
"COUNT",
"(",
"*",
")",
"FROM",
"elimination",
"GROUP",
"BY",
"Team"
] | [
"select",
"team",
",",
"count",
"(",
"*",
")",
"from",
"elimination",
"group",
"by",
"team"
] | [
"How",
"many",
"eliminations",
"did",
"each",
"team",
"have",
"?"
] | [
"How",
"many",
"<mask>",
"did",
"each",
"<mask>",
"have",
"?"
] | [
"select",
"<mask>",
",",
"count",
"(",
"*",
")",
"from",
"<mask>",
"group",
"by",
"<mask>"
] |
wrestler | SELECT Team FROM elimination GROUP BY Team HAVING COUNT(*) > 3 | Show teams that have suffered more than three eliminations. | [
"SELECT",
"Team",
"FROM",
"elimination",
"GROUP",
"BY",
"Team",
"HAVING",
"COUNT",
"(",
"*",
")",
">",
"3"
] | [
"select",
"team",
"from",
"elimination",
"group",
"by",
"team",
"having",
"count",
"(",
"*",
")",
">",
"value"
] | [
"Show",
"teams",
"that",
"have",
"suffered",
"more",
"than",
"three",
"eliminations",
"."
] | [
"Show",
"<mask>",
"that",
"have",
"suffered",
"more",
"than",
"three",
"<mask>",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"group",
"by",
"<mask>",
"<mask>",
"count",
"(",
"*",
")",
">",
"<unk>"
] |
wrestler | SELECT Team FROM elimination GROUP BY Team HAVING COUNT(*) > 3 | Which teams had more than 3 eliminations? | [
"SELECT",
"Team",
"FROM",
"elimination",
"GROUP",
"BY",
"Team",
"HAVING",
"COUNT",
"(",
"*",
")",
">",
"3"
] | [
"select",
"team",
"from",
"elimination",
"group",
"by",
"team",
"having",
"count",
"(",
"*",
")",
">",
"value"
] | [
"Which",
"teams",
"had",
"more",
"than",
"3",
"eliminations",
"?"
] | [
"Which",
"<mask>",
"had",
"more",
"than",
"<unk>",
"<mask>",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"group",
"by",
"<mask>",
"<mask>",
"count",
"(",
"*",
")",
">",
"<unk>"
] |
wrestler | SELECT Reign , Days_held FROM wrestler | Show the reign and days held of wrestlers. | [
"SELECT",
"Reign",
",",
"Days_held",
"FROM",
"wrestler"
] | [
"select",
"reign",
",",
"days_held",
"from",
"wrestler"
] | [
"Show",
"the",
"reign",
"and",
"days",
"held",
"of",
"wrestlers",
"."
] | [
"Show",
"the",
"<mask>",
"and",
"days",
"held",
"of",
"<mask>",
"."
] | [
"select",
"<mask>",
",",
"<mask>",
"from",
"<mask>"
] |
wrestler | SELECT Reign , Days_held FROM wrestler | What are the reigns and days held of all wrestlers? | [
"SELECT",
"Reign",
",",
"Days_held",
"FROM",
"wrestler"
] | [
"select",
"reign",
",",
"days_held",
"from",
"wrestler"
] | [
"What",
"are",
"the",
"reigns",
"and",
"days",
"held",
"of",
"all",
"wrestlers",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"and",
"days",
"held",
"of",
"all",
"<mask>",
"?"
] | [
"select",
"<mask>",
",",
"<mask>",
"from",
"<mask>"
] |
wrestler | SELECT Name FROM wrestler WHERE Days_held < 100 | What are the names of wrestlers days held less than 100? | [
"SELECT",
"Name",
"FROM",
"wrestler",
"WHERE",
"Days_held",
"<",
"100"
] | [
"select",
"name",
"from",
"wrestler",
"where",
"days_held",
"<",
"value"
] | [
"What",
"are",
"the",
"names",
"of",
"wrestlers",
"days",
"held",
"less",
"than",
"100",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"of",
"<mask>",
"days",
"held",
"less",
"than",
"<unk>",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"<",
"<unk>"
] |
wrestler | SELECT Name FROM wrestler WHERE Days_held < 100 | Return the names of wrestlers with fewer than 100 days held. | [
"SELECT",
"Name",
"FROM",
"wrestler",
"WHERE",
"Days_held",
"<",
"100"
] | [
"select",
"name",
"from",
"wrestler",
"where",
"days_held",
"<",
"value"
] | [
"Return",
"the",
"names",
"of",
"wrestlers",
"with",
"fewer",
"than",
"100",
"days",
"held",
"."
] | [
"Return",
"the",
"<mask>",
"of",
"<mask>",
"with",
"fewer",
"than",
"<unk>",
"days",
"held",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"<",
"<unk>"
] |
wrestler | SELECT Reign FROM wrestler GROUP BY Reign ORDER BY COUNT(*) DESC LIMIT 1 | Please show the most common reigns of wrestlers. | [
"SELECT",
"Reign",
"FROM",
"wrestler",
"GROUP",
"BY",
"Reign",
"ORDER",
"BY",
"COUNT",
"(",
"*",
")",
"DESC",
"LIMIT",
"1"
] | [
"select",
"reign",
"from",
"wrestler",
"group",
"by",
"reign",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"limit",
"value"
] | [
"Please",
"show",
"the",
"most",
"common",
"reigns",
"of",
"wrestlers",
"."
] | [
"Please",
"show",
"the",
"most",
"common",
"<mask>",
"of",
"<mask>",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"group",
"by",
"<mask>",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"limit",
"<unk>"
] |
wrestler | SELECT Reign FROM wrestler GROUP BY Reign ORDER BY COUNT(*) DESC LIMIT 1 | Which reign is the most common among wrestlers? | [
"SELECT",
"Reign",
"FROM",
"wrestler",
"GROUP",
"BY",
"Reign",
"ORDER",
"BY",
"COUNT",
"(",
"*",
")",
"DESC",
"LIMIT",
"1"
] | [
"select",
"reign",
"from",
"wrestler",
"group",
"by",
"reign",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"limit",
"value"
] | [
"Which",
"reign",
"is",
"the",
"most",
"common",
"among",
"wrestlers",
"?"
] | [
"Which",
"<mask>",
"is",
"the",
"most",
"common",
"among",
"<mask>",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"group",
"by",
"<mask>",
"order",
"by",
"count",
"(",
"*",
")",
"desc",
"limit",
"<unk>"
] |
wrestler | SELECT LOCATION FROM wrestler GROUP BY LOCATION HAVING COUNT(*) > 2 | List the locations that are shared by more than two wrestlers. | [
"SELECT",
"LOCATION",
"FROM",
"wrestler",
"GROUP",
"BY",
"LOCATION",
"HAVING",
"COUNT",
"(",
"*",
")",
">",
"2"
] | [
"select",
"location",
"from",
"wrestler",
"group",
"by",
"location",
"having",
"count",
"(",
"*",
")",
">",
"value"
] | [
"List",
"the",
"locations",
"that",
"are",
"shared",
"by",
"more",
"than",
"two",
"wrestlers",
"."
] | [
"List",
"the",
"<mask>",
"that",
"are",
"shared",
"by",
"more",
"than",
"two",
"<mask>",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"group",
"by",
"<mask>",
"<mask>",
"count",
"(",
"*",
")",
">",
"<unk>"
] |
wrestler | SELECT LOCATION FROM wrestler GROUP BY LOCATION HAVING COUNT(*) > 2 | Which locations are shared by more than two wrestlers? | [
"SELECT",
"LOCATION",
"FROM",
"wrestler",
"GROUP",
"BY",
"LOCATION",
"HAVING",
"COUNT",
"(",
"*",
")",
">",
"2"
] | [
"select",
"location",
"from",
"wrestler",
"group",
"by",
"location",
"having",
"count",
"(",
"*",
")",
">",
"value"
] | [
"Which",
"locations",
"are",
"shared",
"by",
"more",
"than",
"two",
"wrestlers",
"?"
] | [
"Which",
"<mask>",
"are",
"shared",
"by",
"more",
"than",
"two",
"<mask>",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"group",
"by",
"<mask>",
"<mask>",
"count",
"(",
"*",
")",
">",
"<unk>"
] |
wrestler | SELECT Name FROM wrestler WHERE Wrestler_ID NOT IN (SELECT Wrestler_ID FROM elimination) | List the names of wrestlers that have not been eliminated. | [
"SELECT",
"Name",
"FROM",
"wrestler",
"WHERE",
"Wrestler_ID",
"NOT",
"IN",
"(",
"SELECT",
"Wrestler_ID",
"FROM",
"elimination",
")"
] | [
"select",
"name",
"from",
"wrestler",
"where",
"wrestler_id",
"not",
"in",
"(",
"select",
"wrestler_id",
"from",
"elimination",
")"
] | [
"List",
"the",
"names",
"of",
"wrestlers",
"that",
"have",
"not",
"been",
"eliminated",
"."
] | [
"List",
"the",
"<mask>",
"of",
"<mask>",
"that",
"have",
"not",
"been",
"eliminated",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"not",
"in",
"(",
"select",
"<mask>",
"from",
"<mask>",
")"
] |
wrestler | SELECT Name FROM wrestler WHERE Wrestler_ID NOT IN (SELECT Wrestler_ID FROM elimination) | What are the names of wrestlers who have never been eliminated? | [
"SELECT",
"Name",
"FROM",
"wrestler",
"WHERE",
"Wrestler_ID",
"NOT",
"IN",
"(",
"SELECT",
"Wrestler_ID",
"FROM",
"elimination",
")"
] | [
"select",
"name",
"from",
"wrestler",
"where",
"wrestler_id",
"not",
"in",
"(",
"select",
"wrestler_id",
"from",
"elimination",
")"
] | [
"What",
"are",
"the",
"names",
"of",
"wrestlers",
"who",
"have",
"never",
"been",
"eliminated",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"of",
"<mask>",
"who",
"have",
"never",
"been",
"eliminated",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"not",
"in",
"(",
"select",
"<mask>",
"from",
"<mask>",
")"
] |
wrestler | SELECT Team FROM Elimination WHERE Eliminated_By = "Orton" INTERSECT SELECT Team FROM Elimination WHERE Eliminated_By = "Benjamin" | Show the teams that have both wrestlers eliminated by "Orton" and wrestlers eliminated by "Benjamin". | [
"SELECT",
"Team",
"FROM",
"Elimination",
"WHERE",
"Eliminated_By",
"=",
"``",
"Orton",
"''",
"INTERSECT",
"SELECT",
"Team",
"FROM",
"Elimination",
"WHERE",
"Eliminated_By",
"=",
"``",
"Benjamin",
"''"
] | [
"select",
"team",
"from",
"elimination",
"where",
"eliminated_by",
"=",
"value",
"intersect",
"select",
"team",
"from",
"elimination",
"where",
"eliminated_by",
"=",
"value"
] | [
"Show",
"the",
"teams",
"that",
"have",
"both",
"wrestlers",
"eliminated",
"by",
"``",
"Orton",
"''",
"and",
"wrestlers",
"eliminated",
"by",
"``",
"Benjamin",
"''",
"."
] | [
"Show",
"the",
"<mask>",
"that",
"have",
"both",
"<mask>",
"eliminated",
"by",
"``",
"Orton",
"''",
"and",
"<mask>",
"eliminated",
"by",
"``",
"Benjamin",
"''",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>",
"intersect",
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>"
] |
wrestler | SELECT Team FROM Elimination WHERE Eliminated_By = "Orton" INTERSECT SELECT Team FROM Elimination WHERE Eliminated_By = "Benjamin" | What are the teams that have both wrestlers eliminated by Orton and wrestlers eliminated by Benjamin? | [
"SELECT",
"Team",
"FROM",
"Elimination",
"WHERE",
"Eliminated_By",
"=",
"``",
"Orton",
"''",
"INTERSECT",
"SELECT",
"Team",
"FROM",
"Elimination",
"WHERE",
"Eliminated_By",
"=",
"``",
"Benjamin",
"''"
] | [
"select",
"team",
"from",
"elimination",
"where",
"eliminated_by",
"=",
"value",
"intersect",
"select",
"team",
"from",
"elimination",
"where",
"eliminated_by",
"=",
"value"
] | [
"What",
"are",
"the",
"teams",
"that",
"have",
"both",
"wrestlers",
"eliminated",
"by",
"Orton",
"and",
"wrestlers",
"eliminated",
"by",
"Benjamin",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"that",
"have",
"both",
"<mask>",
"eliminated",
"by",
"Orton",
"and",
"<mask>",
"eliminated",
"by",
"Benjamin",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>",
"intersect",
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>"
] |
wrestler | SELECT COUNT (DISTINCT team) FROM elimination | What is the number of distinct teams that suffer elimination? | [
"SELECT",
"COUNT",
"(",
"DISTINCT",
"team",
")",
"FROM",
"elimination"
] | [
"select",
"count",
"(",
"distinct",
"team",
")",
"from",
"elimination"
] | [
"What",
"is",
"the",
"number",
"of",
"distinct",
"teams",
"that",
"suffer",
"elimination",
"?"
] | [
"What",
"is",
"the",
"number",
"of",
"distinct",
"<mask>",
"that",
"suffer",
"<mask>",
"?"
] | [
"select",
"count",
"(",
"distinct",
"<mask>",
")",
"from",
"<mask>"
] |
wrestler | SELECT COUNT (DISTINCT team) FROM elimination | How many different teams have had eliminated wrestlers? | [
"SELECT",
"COUNT",
"(",
"DISTINCT",
"team",
")",
"FROM",
"elimination"
] | [
"select",
"count",
"(",
"distinct",
"team",
")",
"from",
"elimination"
] | [
"How",
"many",
"different",
"teams",
"have",
"had",
"eliminated",
"wrestlers",
"?"
] | [
"How",
"many",
"different",
"<mask>",
"have",
"had",
"eliminated",
"<mask>",
"?"
] | [
"select",
"count",
"(",
"distinct",
"<mask>",
")",
"from",
"<mask>"
] |
wrestler | SELECT TIME FROM elimination WHERE Eliminated_By = "Punk" OR Eliminated_By = "Orton" | Show the times of elimination by "Punk" or "Orton". | [
"SELECT",
"TIME",
"FROM",
"elimination",
"WHERE",
"Eliminated_By",
"=",
"``",
"Punk",
"''",
"OR",
"Eliminated_By",
"=",
"``",
"Orton",
"''"
] | [
"select",
"time",
"from",
"elimination",
"where",
"eliminated_by",
"=",
"value",
"or",
"eliminated_by",
"=",
"value"
] | [
"Show",
"the",
"times",
"of",
"elimination",
"by",
"``",
"Punk",
"''",
"or",
"``",
"Orton",
"''",
"."
] | [
"Show",
"the",
"<mask>",
"of",
"<mask>",
"by",
"``",
"Punk",
"''",
"or",
"``",
"Orton",
"''",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>",
"or",
"<mask>",
"=",
"<unk>"
] |
wrestler | SELECT TIME FROM elimination WHERE Eliminated_By = "Punk" OR Eliminated_By = "Orton" | What are the times of elimination for any instances in which the elimination was done by Punk or Orton? | [
"SELECT",
"TIME",
"FROM",
"elimination",
"WHERE",
"Eliminated_By",
"=",
"``",
"Punk",
"''",
"OR",
"Eliminated_By",
"=",
"``",
"Orton",
"''"
] | [
"select",
"time",
"from",
"elimination",
"where",
"eliminated_by",
"=",
"value",
"or",
"eliminated_by",
"=",
"value"
] | [
"What",
"are",
"the",
"times",
"of",
"elimination",
"for",
"any",
"instances",
"in",
"which",
"the",
"elimination",
"was",
"done",
"by",
"Punk",
"or",
"Orton",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"of",
"<mask>",
"for",
"any",
"instances",
"in",
"which",
"the",
"<mask>",
"was",
"done",
"by",
"Punk",
"or",
"Orton",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"=",
"<unk>",
"or",
"<mask>",
"=",
"<unk>"
] |
school_finance | SELECT count(*) FROM school | How many schools are there? | [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"school"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"school"
] | [
"How",
"many",
"schools",
"are",
"there",
"?"
] | [
"How",
"many",
"<mask>",
"are",
"there",
"?"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"<mask>"
] |
school_finance | SELECT count(*) FROM school | Count the number of schools. | [
"SELECT",
"count",
"(",
"*",
")",
"FROM",
"school"
] | [
"select",
"count",
"(",
"*",
")",
"from",
"school"
] | [
"Count",
"the",
"number",
"of",
"schools",
"."
] | [
"Count",
"the",
"number",
"of",
"<mask>",
"."
] | [
"select",
"count",
"(",
"*",
")",
"from",
"<mask>"
] |
school_finance | SELECT school_name FROM school ORDER BY school_name | Show all school names in alphabetical order. | [
"SELECT",
"school_name",
"FROM",
"school",
"ORDER",
"BY",
"school_name"
] | [
"select",
"school_name",
"from",
"school",
"order",
"by",
"school_name"
] | [
"Show",
"all",
"school",
"names",
"in",
"alphabetical",
"order",
"."
] | [
"Show",
"all",
"<mask>",
"<mask>",
"in",
"alphabetical",
"order",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"order",
"by",
"<mask>"
] |
school_finance | SELECT school_name , LOCATION , mascot FROM school | List the name, location, mascot for all schools. | [
"SELECT",
"school_name",
",",
"LOCATION",
",",
"mascot",
"FROM",
"school"
] | [
"select",
"school_name",
",",
"location",
",",
"mascot",
"from",
"school"
] | [
"List",
"the",
"name",
",",
"location",
",",
"mascot",
"for",
"all",
"schools",
"."
] | [
"List",
"the",
"<mask>",
",",
"<mask>",
",",
"<mask>",
"for",
"all",
"<mask>",
"."
] | [
"select",
"<mask>",
",",
"<mask>",
",",
"<mask>",
"from",
"<mask>"
] |
school_finance | SELECT sum(enrollment) , avg(enrollment) FROM school | What are the total and average enrollment of all schools? | [
"SELECT",
"sum",
"(",
"enrollment",
")",
",",
"avg",
"(",
"enrollment",
")",
"FROM",
"school"
] | [
"select",
"sum",
"(",
"enrollment",
")",
",",
"avg",
"(",
"enrollment",
")",
"from",
"school"
] | [
"What",
"are",
"the",
"total",
"and",
"average",
"enrollment",
"of",
"all",
"schools",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"and",
"average",
"<mask>",
"of",
"all",
"<mask>",
"?"
] | [
"select",
"sum",
"(",
"<mask>",
")",
",",
"avg",
"(",
"<mask>",
")",
"from",
"<mask>"
] |
school_finance | SELECT mascot FROM school WHERE enrollment > (SELECT avg(enrollment) FROM school) | What are the mascots for schools with enrollments above the average? | [
"SELECT",
"mascot",
"FROM",
"school",
"WHERE",
"enrollment",
">",
"(",
"SELECT",
"avg",
"(",
"enrollment",
")",
"FROM",
"school",
")"
] | [
"select",
"mascot",
"from",
"school",
"where",
"enrollment",
">",
"(",
"select",
"avg",
"(",
"enrollment",
")",
"from",
"school",
")"
] | [
"What",
"are",
"the",
"mascots",
"for",
"schools",
"with",
"enrollments",
"above",
"the",
"average",
"?"
] | [
"What",
"are",
"the",
"<mask>",
"for",
"<mask>",
"with",
"<mask>",
"above",
"the",
"average",
"?"
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
">",
"(",
"select",
"avg",
"(",
"<mask>",
")",
"from",
"<mask>",
")"
] |
school_finance | SELECT school_name FROM school ORDER BY enrollment LIMIT 1 | List the name of the school with the smallest enrollment. | [
"SELECT",
"school_name",
"FROM",
"school",
"ORDER",
"BY",
"enrollment",
"LIMIT",
"1"
] | [
"select",
"school_name",
"from",
"school",
"order",
"by",
"enrollment",
"limit",
"value"
] | [
"List",
"the",
"name",
"of",
"the",
"school",
"with",
"the",
"smallest",
"enrollment",
"."
] | [
"List",
"the",
"<mask>",
"of",
"the",
"<mask>",
"with",
"the",
"smallest",
"<mask>",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"order",
"by",
"<mask>",
"limit",
"<unk>"
] |
school_finance | SELECT avg(enrollment) , max(enrollment) , min(enrollment) FROM school | Show the average, maximum, minimum enrollment of all schools. | [
"SELECT",
"avg",
"(",
"enrollment",
")",
",",
"max",
"(",
"enrollment",
")",
",",
"min",
"(",
"enrollment",
")",
"FROM",
"school"
] | [
"select",
"avg",
"(",
"enrollment",
")",
",",
"max",
"(",
"enrollment",
")",
",",
"min",
"(",
"enrollment",
")",
"from",
"school"
] | [
"Show",
"the",
"average",
",",
"maximum",
",",
"minimum",
"enrollment",
"of",
"all",
"schools",
"."
] | [
"Show",
"the",
"average",
",",
"maximum",
",",
"minimum",
"<mask>",
"of",
"all",
"<mask>",
"."
] | [
"select",
"avg",
"(",
"<mask>",
")",
",",
"max",
"(",
"<mask>",
")",
",",
"min",
"(",
"<mask>",
")",
"from",
"<mask>"
] |
school_finance | SELECT county , count(*) , sum(enrollment) FROM school GROUP BY county | Show each county along with the number of schools and total enrollment in each county. | [
"SELECT",
"county",
",",
"count",
"(",
"*",
")",
",",
"sum",
"(",
"enrollment",
")",
"FROM",
"school",
"GROUP",
"BY",
"county"
] | [
"select",
"county",
",",
"count",
"(",
"*",
")",
",",
"sum",
"(",
"enrollment",
")",
"from",
"school",
"group",
"by",
"county"
] | [
"Show",
"each",
"county",
"along",
"with",
"the",
"number",
"of",
"schools",
"and",
"total",
"enrollment",
"in",
"each",
"county",
"."
] | [
"Show",
"each",
"<mask>",
"along",
"with",
"the",
"number",
"of",
"<mask>",
"and",
"<mask>",
"<mask>",
"in",
"each",
"<mask>",
"."
] | [
"select",
"<mask>",
",",
"count",
"(",
"*",
")",
",",
"sum",
"(",
"<mask>",
")",
"from",
"<mask>",
"group",
"by",
"<mask>"
] |
school_finance | SELECT count(DISTINCT T1.donator_name) FROM endowment AS T1 JOIN school AS T2 ON T1.school_id = T2.school_id WHERE T2.school_name = "Glenn" | How many donors have endowment for school named "Glenn"? | [
"SELECT",
"count",
"(",
"DISTINCT",
"T1.donator_name",
")",
"FROM",
"endowment",
"AS",
"T1",
"JOIN",
"school",
"AS",
"T2",
"ON",
"T1.school_id",
"=",
"T2.school_id",
"WHERE",
"T2.school_name",
"=",
"``",
"Glenn",
"''"
] | [
"select",
"count",
"(",
"distinct",
"t1",
".",
"donator_name",
")",
"from",
"endowment",
"as",
"t1",
"join",
"school",
"as",
"t2",
"on",
"t1",
".",
"school_id",
"=",
"t2",
".",
"school_id",
"where",
"t2",
".",
"school_name",
"=",
"value"
] | [
"How",
"many",
"donors",
"have",
"endowment",
"for",
"school",
"named",
"``",
"Glenn",
"''",
"?"
] | [
"How",
"many",
"donors",
"have",
"<mask>",
"for",
"<mask>",
"<mask>",
"``",
"Glenn",
"''",
"?"
] | [
"select",
"count",
"(",
"distinct",
"<mask>",
".",
"<mask>",
")",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"<mask>",
".",
"<mask>",
"=",
"<unk>"
] |
school_finance | SELECT donator_name , sum(amount) FROM endowment GROUP BY donator_name ORDER BY sum(amount) DESC | List each donator name and the amount of endowment in descending order of the amount of endowment. | [
"SELECT",
"donator_name",
",",
"sum",
"(",
"amount",
")",
"FROM",
"endowment",
"GROUP",
"BY",
"donator_name",
"ORDER",
"BY",
"sum",
"(",
"amount",
")",
"DESC"
] | [
"select",
"donator_name",
",",
"sum",
"(",
"amount",
")",
"from",
"endowment",
"group",
"by",
"donator_name",
"order",
"by",
"sum",
"(",
"amount",
")",
"desc"
] | [
"List",
"each",
"donator",
"name",
"and",
"the",
"amount",
"of",
"endowment",
"in",
"descending",
"order",
"of",
"the",
"amount",
"of",
"endowment",
"."
] | [
"List",
"each",
"<mask>",
"<mask>",
"and",
"the",
"<mask>",
"of",
"<mask>",
"in",
"descending",
"order",
"of",
"the",
"<mask>",
"of",
"<mask>",
"."
] | [
"select",
"<mask>",
",",
"sum",
"(",
"<mask>",
")",
"from",
"<mask>",
"group",
"by",
"<mask>",
"order",
"by",
"sum",
"(",
"<mask>",
")",
"desc"
] |
school_finance | SELECT school_name FROM school WHERE school_id NOT IN (SELECT school_id FROM endowment) | List the names of the schools without any endowment. | [
"SELECT",
"school_name",
"FROM",
"school",
"WHERE",
"school_id",
"NOT",
"IN",
"(",
"SELECT",
"school_id",
"FROM",
"endowment",
")"
] | [
"select",
"school_name",
"from",
"school",
"where",
"school_id",
"not",
"in",
"(",
"select",
"school_id",
"from",
"endowment",
")"
] | [
"List",
"the",
"names",
"of",
"the",
"schools",
"without",
"any",
"endowment",
"."
] | [
"List",
"the",
"<mask>",
"of",
"the",
"<mask>",
"without",
"any",
"<mask>",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"not",
"in",
"(",
"select",
"<mask>",
"from",
"<mask>",
")"
] |
school_finance | SELECT T2.school_name FROM endowment AS T1 JOIN school AS T2 ON T1.school_id = T2.school_id GROUP BY T1.school_id HAVING sum(T1.amount) <= 10 | List all the names of schools with an endowment amount smaller than or equal to 10. | [
"SELECT",
"T2.school_name",
"FROM",
"endowment",
"AS",
"T1",
"JOIN",
"school",
"AS",
"T2",
"ON",
"T1.school_id",
"=",
"T2.school_id",
"GROUP",
"BY",
"T1.school_id",
"HAVING",
"sum",
"(",
"T1.amount",
")",
"<",
"=",
"10"
] | [
"select",
"t2",
".",
"school_name",
"from",
"endowment",
"as",
"t1",
"join",
"school",
"as",
"t2",
"on",
"t1",
".",
"school_id",
"=",
"t2",
".",
"school_id",
"group",
"by",
"t1",
".",
"school_id",
"having",
"sum",
"(",
"t1",
".",
"amount",
")",
"<",
... | [
"List",
"all",
"the",
"names",
"of",
"schools",
"with",
"an",
"endowment",
"amount",
"smaller",
"than",
"or",
"equal",
"to",
"10",
"."
] | [
"List",
"all",
"the",
"<mask>",
"of",
"<mask>",
"with",
"an",
"<mask>",
"<mask>",
"smaller",
"than",
"or",
"equal",
"to",
"<unk>",
"."
] | [
"select",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"group",
"by",
"<mask>",
".",
"<mask>",
"<mask>",
"sum",
"(",
"<mask>",
".",
"<mask>",
")"... |
school_finance | SELECT T1.donator_name FROM endowment AS T1 JOIN school AS T2 ON T1.school_id = T2.school_id WHERE T2.school_name = 'Glenn' INTERSECT SELECT T1.donator_name FROM endowment AS T1 JOIN school AS T2 ON T1.school_id = T2.school_id WHERE T2.school_name = 'Triton' | Show the names of donors who donated to both school "Glenn" and "Triton." | [
"SELECT",
"T1.donator_name",
"FROM",
"endowment",
"AS",
"T1",
"JOIN",
"school",
"AS",
"T2",
"ON",
"T1.school_id",
"=",
"T2.school_id",
"WHERE",
"T2.school_name",
"=",
"'Glenn",
"'",
"INTERSECT",
"SELECT",
"T1.donator_name",
"FROM",
"endowment",
"AS",
"T1",
"JOIN",... | [
"select",
"t1",
".",
"donator_name",
"from",
"endowment",
"as",
"t1",
"join",
"school",
"as",
"t2",
"on",
"t1",
".",
"school_id",
"=",
"t2",
".",
"school_id",
"where",
"t2",
".",
"school_name",
"=",
"value",
"intersect",
"select",
"t1",
".",
"donator_name"... | [
"Show",
"the",
"names",
"of",
"donors",
"who",
"donated",
"to",
"both",
"school",
"``",
"Glenn",
"''",
"and",
"``",
"Triton",
".",
"''"
] | [
"Show",
"the",
"<mask>",
"of",
"donors",
"who",
"donated",
"to",
"both",
"<mask>",
"``",
"Glenn",
"''",
"and",
"``",
"Triton",
".",
"''"
] | [
"select",
"<mask>",
".",
"<mask>",
"from",
"<mask>",
"as",
"<mask>",
"join",
"<mask>",
"as",
"<mask>",
"on",
"<mask>",
".",
"<mask>",
"=",
"<mask>",
".",
"<mask>",
"where",
"<mask>",
".",
"<mask>",
"=",
"<unk>",
"intersect",
"select",
"<mask>",
".",
"<mask... |
school_finance | SELECT donator_name FROM endowment EXCEPT SELECT donator_name FROM endowment WHERE amount < 9 | Show the names of all the donors except those whose donation amount less than 9. | [
"SELECT",
"donator_name",
"FROM",
"endowment",
"EXCEPT",
"SELECT",
"donator_name",
"FROM",
"endowment",
"WHERE",
"amount",
"<",
"9"
] | [
"select",
"donator_name",
"from",
"endowment",
"except",
"select",
"donator_name",
"from",
"endowment",
"where",
"amount",
"<",
"value"
] | [
"Show",
"the",
"names",
"of",
"all",
"the",
"donors",
"except",
"those",
"whose",
"donation",
"amount",
"less",
"than",
"9",
"."
] | [
"Show",
"the",
"<mask>",
"of",
"all",
"the",
"donors",
"except",
"those",
"whose",
"donation",
"<mask>",
"less",
"than",
"<unk>",
"."
] | [
"select",
"<mask>",
"from",
"<mask>",
"except",
"select",
"<mask>",
"from",
"<mask>",
"where",
"<mask>",
"<",
"<unk>"
] |
school_finance | SELECT amount , donator_name FROM endowment ORDER BY amount DESC LIMIT 1 | List the amount and donor name for the largest amount of donation. | [
"SELECT",
"amount",
",",
"donator_name",
"FROM",
"endowment",
"ORDER",
"BY",
"amount",
"DESC",
"LIMIT",
"1"
] | [
"select",
"amount",
",",
"donator_name",
"from",
"endowment",
"order",
"by",
"amount",
"desc",
"limit",
"value"
] | [
"List",
"the",
"amount",
"and",
"donor",
"name",
"for",
"the",
"largest",
"amount",
"of",
"donation",
"."
] | [
"List",
"the",
"<mask>",
"and",
"donor",
"<mask>",
"for",
"the",
"largest",
"<mask>",
"of",
"donation",
"."
] | [
"select",
"<mask>",
",",
"<mask>",
"from",
"<mask>",
"order",
"by",
"<mask>",
"desc",
"limit",
"<unk>"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.