input stringlengths 191 7.13k | output stringlengths 19 578 |
|---|---|
Tables: ACCOUNTS, SAVINGS, CHECKING
Columns: ACCOUNTS.custid, ACCOUNTS.name, SAVINGS.custid, SAVINGS.balance, CHECKING.custid, CHECKING.balance
Question: Find the names and total checking and savings balances of accounts whose savings balance is higher than the average savings balance. [/INST] | 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); |
Tables: ACCOUNTS, SAVINGS, CHECKING
Columns: ACCOUNTS.custid, ACCOUNTS.name, SAVINGS.custid, SAVINGS.balance, CHECKING.custid, CHECKING.balance
Question: What are the names and sum of checking and savings balances for accounts with savings balances higher than the average savings balance? [/INST] | 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); |
Tables: ACCOUNTS, SAVINGS, CHECKING
Columns: ACCOUNTS.custid, ACCOUNTS.name, SAVINGS.custid, SAVINGS.balance, CHECKING.custid, CHECKING.balance
Question: Find the name and checking balance of the account with the lowest savings balance. [/INST] | 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; |
Tables: ACCOUNTS, SAVINGS, CHECKING
Columns: ACCOUNTS.custid, ACCOUNTS.name, SAVINGS.custid, SAVINGS.balance, CHECKING.custid, CHECKING.balance
Question: What are the names and balances of checking accounts belonging to the customer with the lowest savings balance? [/INST] | 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; |
Tables: ACCOUNTS, SAVINGS, CHECKING
Columns: ACCOUNTS.custid, ACCOUNTS.name, SAVINGS.custid, SAVINGS.balance, CHECKING.custid, CHECKING.balance
Question: Find the number of checking accounts for each account name. [/INST] | SELECT count(*) , T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid GROUP BY T1.name; |
Tables: ACCOUNTS, SAVINGS, CHECKING
Columns: ACCOUNTS.custid, ACCOUNTS.name, SAVINGS.custid, SAVINGS.balance, CHECKING.custid, CHECKING.balance
Question: What are the names of customers with accounts, and how many checking accounts do each of them have? [/INST] | SELECT count(*) , T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid GROUP BY T1.name; |
Tables: ACCOUNTS, SAVINGS, CHECKING
Columns: ACCOUNTS.custid, ACCOUNTS.name, SAVINGS.custid, SAVINGS.balance, CHECKING.custid, CHECKING.balance
Question: Find the total saving balance for each account name. [/INST] | SELECT sum(T2.balance) , T1.name FROM accounts AS T1 JOIN savings AS T2 ON T1.custid = T2.custid GROUP BY T1.name; |
Tables: ACCOUNTS, SAVINGS, CHECKING
Columns: ACCOUNTS.custid, ACCOUNTS.name, SAVINGS.custid, SAVINGS.balance, CHECKING.custid, CHECKING.balance
Question: What are the names of customers with accounts, and what are the total savings balances for each? [/INST] | SELECT sum(T2.balance) , T1.name FROM accounts AS T1 JOIN savings AS T2 ON T1.custid = T2.custid GROUP BY T1.name; |
Tables: ACCOUNTS, SAVINGS, CHECKING
Columns: ACCOUNTS.custid, ACCOUNTS.name, SAVINGS.custid, SAVINGS.balance, CHECKING.custid, CHECKING.balance
Question: Find the name of accounts whose checking balance is below the average checking balance. [/INST] | SELECT T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid WHERE T2.balance < (SELECT avg(balance) FROM checking); |
Tables: ACCOUNTS, SAVINGS, CHECKING
Columns: ACCOUNTS.custid, ACCOUNTS.name, SAVINGS.custid, SAVINGS.balance, CHECKING.custid, CHECKING.balance
Question: What are the names of customers with checking balances lower than the average checking balance? [/INST] | SELECT T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid WHERE T2.balance < (SELECT avg(balance) FROM checking); |
Tables: ACCOUNTS, SAVINGS, CHECKING
Columns: ACCOUNTS.custid, ACCOUNTS.name, SAVINGS.custid, SAVINGS.balance, CHECKING.custid, CHECKING.balance
Question: Find the saving balance of the account with the highest checking balance. [/INST] | 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; |
Tables: ACCOUNTS, SAVINGS, CHECKING
Columns: ACCOUNTS.custid, ACCOUNTS.name, SAVINGS.custid, SAVINGS.balance, CHECKING.custid, CHECKING.balance
Question: What is the savings balance of the account belonging to the customer with the highest checking balance? [/INST] | 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; |
Tables: ACCOUNTS, SAVINGS, CHECKING
Columns: ACCOUNTS.custid, ACCOUNTS.name, SAVINGS.custid, SAVINGS.balance, CHECKING.custid, CHECKING.balance
Question: Find the total checking and saving balance of all accounts sorted by the total balance in ascending order. [/INST] | SELECT T1.balance + T2.balance FROM checking AS T1 JOIN savings AS T2 ON T1.custid = T2.custid ORDER BY T1.balance + T2.balance; |
Tables: ACCOUNTS, SAVINGS, CHECKING
Columns: ACCOUNTS.custid, ACCOUNTS.name, SAVINGS.custid, SAVINGS.balance, CHECKING.custid, CHECKING.balance
Question: What is the sum of checking and savings balances for all customers, ordered by the total balance? [/INST] | SELECT T1.balance + T2.balance FROM checking AS T1 JOIN savings AS T2 ON T1.custid = T2.custid ORDER BY T1.balance + T2.balance; |
Tables: ACCOUNTS, SAVINGS, CHECKING
Columns: ACCOUNTS.custid, ACCOUNTS.name, SAVINGS.custid, SAVINGS.balance, CHECKING.custid, CHECKING.balance
Question: Find the name and checking balance of the account with the lowest saving balance. [/INST] | 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; |
Tables: ACCOUNTS, SAVINGS, CHECKING
Columns: ACCOUNTS.custid, ACCOUNTS.name, SAVINGS.custid, SAVINGS.balance, CHECKING.custid, CHECKING.balance
Question: What is the name and checking balance of the account which has the lowest savings balance? [/INST] | 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; |
Tables: ACCOUNTS, SAVINGS, CHECKING
Columns: ACCOUNTS.custid, ACCOUNTS.name, SAVINGS.custid, SAVINGS.balance, CHECKING.custid, CHECKING.balance
Question: Find the name, checking balance and saving balance of all accounts in the bank. [/INST] | 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; |
Tables: ACCOUNTS, SAVINGS, CHECKING
Columns: ACCOUNTS.custid, ACCOUNTS.name, SAVINGS.custid, SAVINGS.balance, CHECKING.custid, CHECKING.balance
Question: What are the names, checking balances, and savings balances for all customers? [/INST] | 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; |
Tables: ACCOUNTS, SAVINGS, CHECKING
Columns: ACCOUNTS.custid, ACCOUNTS.name, SAVINGS.custid, SAVINGS.balance, CHECKING.custid, CHECKING.balance
Question: 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. [/INST] | 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; |
Tables: ACCOUNTS, SAVINGS, CHECKING
Columns: ACCOUNTS.custid, ACCOUNTS.name, SAVINGS.custid, SAVINGS.balance, CHECKING.custid, CHECKING.balance
Question: What are the names, checking balances, and savings balances of customers, ordered by the total of checking and savings balances descending? [/INST] | 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; |
Tables: ACCOUNTS, SAVINGS, CHECKING
Columns: ACCOUNTS.custid, ACCOUNTS.name, SAVINGS.custid, SAVINGS.balance, CHECKING.custid, CHECKING.balance
Question: Find the name of accounts whose checking balance is higher than corresponding saving balance. [/INST] | 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; |
Tables: ACCOUNTS, SAVINGS, CHECKING
Columns: ACCOUNTS.custid, ACCOUNTS.name, SAVINGS.custid, SAVINGS.balance, CHECKING.custid, CHECKING.balance
Question: What are the names of customers with a higher checking balance than savings balance? [/INST] | 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; |
Tables: ACCOUNTS, SAVINGS, CHECKING
Columns: ACCOUNTS.custid, ACCOUNTS.name, SAVINGS.custid, SAVINGS.balance, CHECKING.custid, CHECKING.balance
Question: Find the name and total checking and savings balance of the accounts whose savings balance is lower than corresponding checking balance. [/INST] | 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; |
Tables: ACCOUNTS, SAVINGS, CHECKING
Columns: ACCOUNTS.custid, ACCOUNTS.name, SAVINGS.custid, SAVINGS.balance, CHECKING.custid, CHECKING.balance
Question: 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? [/INST] | 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; |
Tables: ACCOUNTS, SAVINGS, CHECKING
Columns: ACCOUNTS.custid, ACCOUNTS.name, SAVINGS.custid, SAVINGS.balance, CHECKING.custid, CHECKING.balance
Question: Find the name and savings balance of the top 3 accounts with the highest saving balance sorted by savings balance in descending order. [/INST] | 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; |
Tables: ACCOUNTS, SAVINGS, CHECKING
Columns: ACCOUNTS.custid, ACCOUNTS.name, SAVINGS.custid, SAVINGS.balance, CHECKING.custid, CHECKING.balance
Question: What are names and savings balances of the three accounts with the highest savings balances? [/INST] | 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; |
Tables: Web_client_accelerator, browser, accelerator_compatible_browser
Columns: Web_client_accelerator.id, Web_client_accelerator.name, Web_client_accelerator.Operating_system, Web_client_accelerator.Client, Web_client_accelerator.Connection, browser.id, browser.name, browser.market_share, accelerator_compatible_brows... | SELECT count(*) FROM browser WHERE market_share >= 5; |
Tables: Web_client_accelerator, browser, accelerator_compatible_browser
Columns: Web_client_accelerator.id, Web_client_accelerator.name, Web_client_accelerator.Operating_system, Web_client_accelerator.Client, Web_client_accelerator.Connection, browser.id, browser.name, browser.market_share, accelerator_compatible_brows... | SELECT name FROM browser ORDER BY market_share DESC; |
Tables: Web_client_accelerator, browser, accelerator_compatible_browser
Columns: Web_client_accelerator.id, Web_client_accelerator.name, Web_client_accelerator.Operating_system, Web_client_accelerator.Client, Web_client_accelerator.Connection, browser.id, browser.name, browser.market_share, accelerator_compatible_brows... | SELECT id , name , market_share FROM browser; |
Tables: Web_client_accelerator, browser, accelerator_compatible_browser
Columns: Web_client_accelerator.id, Web_client_accelerator.name, Web_client_accelerator.Operating_system, Web_client_accelerator.Client, Web_client_accelerator.Connection, browser.id, browser.name, browser.market_share, accelerator_compatible_brows... | SELECT max(market_share) , min(market_share) , avg(market_share) FROM browser; |
Tables: Web_client_accelerator, browser, accelerator_compatible_browser
Columns: Web_client_accelerator.id, Web_client_accelerator.name, Web_client_accelerator.Operating_system, Web_client_accelerator.Client, Web_client_accelerator.Connection, browser.id, browser.name, browser.market_share, accelerator_compatible_brows... | SELECT id , market_share FROM browser WHERE name = 'Safari'; |
Tables: Web_client_accelerator, browser, accelerator_compatible_browser
Columns: Web_client_accelerator.id, Web_client_accelerator.name, Web_client_accelerator.Operating_system, Web_client_accelerator.Client, Web_client_accelerator.Connection, browser.id, browser.name, browser.market_share, accelerator_compatible_brows... | SELECT name , operating_system FROM web_client_accelerator WHERE CONNECTION != 'Broadband'; |
Tables: Web_client_accelerator, browser, accelerator_compatible_browser
Columns: Web_client_accelerator.id, Web_client_accelerator.name, Web_client_accelerator.Operating_system, Web_client_accelerator.Client, Web_client_accelerator.Connection, browser.id, browser.name, browser.market_share, accelerator_compatible_brows... | 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; |
Tables: Web_client_accelerator, browser, accelerator_compatible_browser
Columns: Web_client_accelerator.id, Web_client_accelerator.name, Web_client_accelerator.Operating_system, Web_client_accelerator.Client, Web_client_accelerator.Connection, browser.id, browser.name, browser.market_share, accelerator_compatible_brows... | 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; |
Tables: Web_client_accelerator, browser, accelerator_compatible_browser
Columns: Web_client_accelerator.id, Web_client_accelerator.name, Web_client_accelerator.Operating_system, Web_client_accelerator.Client, Web_client_accelerator.Connection, browser.id, browser.name, browser.market_share, accelerator_compatible_brows... | 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; |
Tables: Web_client_accelerator, browser, accelerator_compatible_browser
Columns: Web_client_accelerator.id, Web_client_accelerator.name, Web_client_accelerator.Operating_system, Web_client_accelerator.Client, Web_client_accelerator.Connection, browser.id, browser.name, browser.market_share, accelerator_compatible_brows... | 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'; |
Tables: Web_client_accelerator, browser, accelerator_compatible_browser
Columns: Web_client_accelerator.id, Web_client_accelerator.name, Web_client_accelerator.Operating_system, Web_client_accelerator.Client, Web_client_accelerator.Connection, browser.id, browser.name, browser.market_share, accelerator_compatible_brows... | SELECT count(DISTINCT client) FROM web_client_accelerator; |
Tables: Web_client_accelerator, browser, accelerator_compatible_browser
Columns: Web_client_accelerator.id, Web_client_accelerator.name, Web_client_accelerator.Operating_system, Web_client_accelerator.Client, Web_client_accelerator.Connection, browser.id, browser.name, browser.market_share, accelerator_compatible_brows... | SELECT count(*) FROM web_client_accelerator WHERE id NOT IN ( SELECT accelerator_id FROM accelerator_compatible_browser ); |
Tables: Web_client_accelerator, browser, accelerator_compatible_browser
Columns: Web_client_accelerator.id, Web_client_accelerator.name, Web_client_accelerator.Operating_system, Web_client_accelerator.Client, Web_client_accelerator.Connection, browser.id, browser.name, browser.market_share, accelerator_compatible_brows... | 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; |
Tables: Web_client_accelerator, browser, accelerator_compatible_browser
Columns: Web_client_accelerator.id, Web_client_accelerator.name, Web_client_accelerator.Operating_system, Web_client_accelerator.Client, Web_client_accelerator.Connection, browser.id, browser.name, browser.market_share, accelerator_compatible_brows... | 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 ... |
Tables: Web_client_accelerator, browser, accelerator_compatible_browser
Columns: Web_client_accelerator.id, Web_client_accelerator.name, Web_client_accelerator.Operating_system, Web_client_accelerator.Client, Web_client_accelerator.Connection, browser.id, browser.name, browser.market_share, accelerator_compatible_brows... | 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'; |
Tables: Web_client_accelerator, browser, accelerator_compatible_browser
Columns: Web_client_accelerator.id, Web_client_accelerator.name, Web_client_accelerator.Operating_system, Web_client_accelerator.Client, Web_client_accelerator.Connection, browser.id, browser.name, browser.market_share, accelerator_compatible_brows... | SELECT name FROM web_client_accelerator WHERE name LIKE "%Opera%"; |
Tables: Web_client_accelerator, browser, accelerator_compatible_browser
Columns: Web_client_accelerator.id, Web_client_accelerator.name, Web_client_accelerator.Operating_system, Web_client_accelerator.Client, Web_client_accelerator.Connection, browser.id, browser.name, browser.market_share, accelerator_compatible_brows... | SELECT Operating_system , count(*) FROM web_client_accelerator GROUP BY Operating_system; |
Tables: Web_client_accelerator, browser, accelerator_compatible_browser
Columns: Web_client_accelerator.id, Web_client_accelerator.name, Web_client_accelerator.Operating_system, Web_client_accelerator.Client, Web_client_accelerator.Connection, browser.id, browser.name, browser.market_share, accelerator_compatible_brows... | 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; |
Tables: wrestler, Elimination
Columns: wrestler.Wrestler_ID, wrestler.Name, wrestler.Reign, wrestler.Days_held, wrestler.Location, wrestler.Event, Elimination.Elimination_ID, Elimination.Wrestler_ID, Elimination.Team, Elimination.Eliminated_By, Elimination.Elimination_Move, Elimination.Time
Question: How many wrestlers... | SELECT count(*) FROM wrestler; |
Tables: wrestler, Elimination
Columns: wrestler.Wrestler_ID, wrestler.Name, wrestler.Reign, wrestler.Days_held, wrestler.Location, wrestler.Event, Elimination.Elimination_ID, Elimination.Wrestler_ID, Elimination.Team, Elimination.Eliminated_By, Elimination.Elimination_Move, Elimination.Time
Question: Count the number o... | SELECT count(*) FROM wrestler; |
Tables: wrestler, Elimination
Columns: wrestler.Wrestler_ID, wrestler.Name, wrestler.Reign, wrestler.Days_held, wrestler.Location, wrestler.Event, Elimination.Elimination_ID, Elimination.Wrestler_ID, Elimination.Team, Elimination.Eliminated_By, Elimination.Elimination_Move, Elimination.Time
Question: List the names of ... | SELECT Name FROM wrestler ORDER BY Days_held DESC; |
Tables: wrestler, Elimination
Columns: wrestler.Wrestler_ID, wrestler.Name, wrestler.Reign, wrestler.Days_held, wrestler.Location, wrestler.Event, Elimination.Elimination_ID, Elimination.Wrestler_ID, Elimination.Team, Elimination.Eliminated_By, Elimination.Elimination_Move, Elimination.Time
Question: What are the names... | SELECT Name FROM wrestler ORDER BY Days_held DESC; |
Tables: wrestler, Elimination
Columns: wrestler.Wrestler_ID, wrestler.Name, wrestler.Reign, wrestler.Days_held, wrestler.Location, wrestler.Event, Elimination.Elimination_ID, Elimination.Wrestler_ID, Elimination.Team, Elimination.Eliminated_By, Elimination.Elimination_Move, Elimination.Time
Question: What is the name o... | SELECT Name FROM wrestler ORDER BY Days_held ASC LIMIT 1; |
Tables: wrestler, Elimination
Columns: wrestler.Wrestler_ID, wrestler.Name, wrestler.Reign, wrestler.Days_held, wrestler.Location, wrestler.Event, Elimination.Elimination_ID, Elimination.Wrestler_ID, Elimination.Team, Elimination.Eliminated_By, Elimination.Elimination_Move, Elimination.Time
Question: Return the name of... | SELECT Name FROM wrestler ORDER BY Days_held ASC LIMIT 1; |
Tables: wrestler, Elimination
Columns: wrestler.Wrestler_ID, wrestler.Name, wrestler.Reign, wrestler.Days_held, wrestler.Location, wrestler.Event, Elimination.Elimination_ID, Elimination.Wrestler_ID, Elimination.Team, Elimination.Eliminated_By, Elimination.Elimination_Move, Elimination.Time
Question: What are the disti... | SELECT DISTINCT Reign FROM wrestler WHERE LOCATION != "Tokyo , Japan"; |
Tables: wrestler, Elimination
Columns: wrestler.Wrestler_ID, wrestler.Name, wrestler.Reign, wrestler.Days_held, wrestler.Location, wrestler.Event, Elimination.Elimination_ID, Elimination.Wrestler_ID, Elimination.Team, Elimination.Eliminated_By, Elimination.Elimination_Move, Elimination.Time
Question: Give the different... | SELECT DISTINCT Reign FROM wrestler WHERE LOCATION != "Tokyo , Japan"; |
Tables: wrestler, Elimination
Columns: wrestler.Wrestler_ID, wrestler.Name, wrestler.Reign, wrestler.Days_held, wrestler.Location, wrestler.Event, Elimination.Elimination_ID, Elimination.Wrestler_ID, Elimination.Team, Elimination.Eliminated_By, Elimination.Elimination_Move, Elimination.Time
Question: What are the names... | SELECT Name , LOCATION FROM wrestler; |
Tables: wrestler, Elimination
Columns: wrestler.Wrestler_ID, wrestler.Name, wrestler.Reign, wrestler.Days_held, wrestler.Location, wrestler.Event, Elimination.Elimination_ID, Elimination.Wrestler_ID, Elimination.Team, Elimination.Eliminated_By, Elimination.Elimination_Move, Elimination.Time
Question: Give the names and... | SELECT Name , LOCATION FROM wrestler; |
Tables: wrestler, Elimination
Columns: wrestler.Wrestler_ID, wrestler.Name, wrestler.Reign, wrestler.Days_held, wrestler.Location, wrestler.Event, Elimination.Elimination_ID, Elimination.Wrestler_ID, Elimination.Team, Elimination.Eliminated_By, Elimination.Elimination_Move, Elimination.Time
Question: What are the elimi... | SELECT Elimination_Move FROM Elimination WHERE Team = "Team Orton"; |
Tables: wrestler, Elimination
Columns: wrestler.Wrestler_ID, wrestler.Name, wrestler.Reign, wrestler.Days_held, wrestler.Location, wrestler.Event, Elimination.Elimination_ID, Elimination.Wrestler_ID, Elimination.Team, Elimination.Eliminated_By, Elimination.Elimination_Move, Elimination.Time
Question: Return the elimina... | SELECT Elimination_Move FROM Elimination WHERE Team = "Team Orton"; |
Tables: wrestler, Elimination
Columns: wrestler.Wrestler_ID, wrestler.Name, wrestler.Reign, wrestler.Days_held, wrestler.Location, wrestler.Event, Elimination.Elimination_ID, Elimination.Wrestler_ID, Elimination.Team, Elimination.Eliminated_By, Elimination.Elimination_Move, Elimination.Time
Question: What are the names... | SELECT T2.Name , T1.Elimination_Move FROM elimination AS T1 JOIN wrestler AS T2 ON T1.Wrestler_ID = T2.Wrestler_ID; |
Tables: wrestler, Elimination
Columns: wrestler.Wrestler_ID, wrestler.Name, wrestler.Reign, wrestler.Days_held, wrestler.Location, wrestler.Event, Elimination.Elimination_ID, Elimination.Wrestler_ID, Elimination.Team, Elimination.Eliminated_By, Elimination.Elimination_Move, Elimination.Time
Question: Give the names of ... | SELECT T2.Name , T1.Elimination_Move FROM elimination AS T1 JOIN wrestler AS T2 ON T1.Wrestler_ID = T2.Wrestler_ID; |
Tables: wrestler, Elimination
Columns: wrestler.Wrestler_ID, wrestler.Name, wrestler.Reign, wrestler.Days_held, wrestler.Location, wrestler.Event, Elimination.Elimination_ID, Elimination.Wrestler_ID, Elimination.Team, Elimination.Eliminated_By, Elimination.Elimination_Move, Elimination.Time
Question: List the names of ... | 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; |
Tables: wrestler, Elimination
Columns: wrestler.Wrestler_ID, wrestler.Name, wrestler.Reign, wrestler.Days_held, wrestler.Location, wrestler.Event, Elimination.Elimination_ID, Elimination.Wrestler_ID, Elimination.Team, Elimination.Eliminated_By, Elimination.Elimination_Move, Elimination.Time
Question: What are the names... | 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; |
Tables: wrestler, Elimination
Columns: wrestler.Wrestler_ID, wrestler.Name, wrestler.Reign, wrestler.Days_held, wrestler.Location, wrestler.Event, Elimination.Elimination_ID, Elimination.Wrestler_ID, Elimination.Team, Elimination.Eliminated_By, Elimination.Elimination_Move, Elimination.Time
Question: List the time of e... | 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; |
Tables: wrestler, Elimination
Columns: wrestler.Wrestler_ID, wrestler.Name, wrestler.Reign, wrestler.Days_held, wrestler.Location, wrestler.Event, Elimination.Elimination_ID, Elimination.Wrestler_ID, Elimination.Team, Elimination.Eliminated_By, Elimination.Elimination_Move, Elimination.Time
Question: What is the time o... | 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; |
Tables: wrestler, Elimination
Columns: wrestler.Wrestler_ID, wrestler.Name, wrestler.Reign, wrestler.Days_held, wrestler.Location, wrestler.Event, Elimination.Elimination_ID, Elimination.Wrestler_ID, Elimination.Team, Elimination.Eliminated_By, Elimination.Elimination_Move, Elimination.Time
Question: Show times of elim... | SELECT T1.Time FROM elimination AS T1 JOIN wrestler AS T2 ON T1.Wrestler_ID = T2.Wrestler_ID WHERE T2.Days_held > 50; |
Tables: wrestler, Elimination
Columns: wrestler.Wrestler_ID, wrestler.Name, wrestler.Reign, wrestler.Days_held, wrestler.Location, wrestler.Event, Elimination.Elimination_ID, Elimination.Wrestler_ID, Elimination.Team, Elimination.Eliminated_By, Elimination.Elimination_Move, Elimination.Time
Question: What are the times... | SELECT T1.Time FROM elimination AS T1 JOIN wrestler AS T2 ON T1.Wrestler_ID = T2.Wrestler_ID WHERE T2.Days_held > 50; |
Tables: wrestler, Elimination
Columns: wrestler.Wrestler_ID, wrestler.Name, wrestler.Reign, wrestler.Days_held, wrestler.Location, wrestler.Event, Elimination.Elimination_ID, Elimination.Wrestler_ID, Elimination.Team, Elimination.Eliminated_By, Elimination.Elimination_Move, Elimination.Time
Question: Show different tea... | SELECT Team , COUNT(*) FROM elimination GROUP BY Team; |
Tables: wrestler, Elimination
Columns: wrestler.Wrestler_ID, wrestler.Name, wrestler.Reign, wrestler.Days_held, wrestler.Location, wrestler.Event, Elimination.Elimination_ID, Elimination.Wrestler_ID, Elimination.Team, Elimination.Eliminated_By, Elimination.Elimination_Move, Elimination.Time
Question: How many eliminati... | SELECT Team , COUNT(*) FROM elimination GROUP BY Team; |
Tables: wrestler, Elimination
Columns: wrestler.Wrestler_ID, wrestler.Name, wrestler.Reign, wrestler.Days_held, wrestler.Location, wrestler.Event, Elimination.Elimination_ID, Elimination.Wrestler_ID, Elimination.Team, Elimination.Eliminated_By, Elimination.Elimination_Move, Elimination.Time
Question: Show teams that ha... | SELECT Team FROM elimination GROUP BY Team HAVING COUNT(*) > 3; |
Tables: wrestler, Elimination
Columns: wrestler.Wrestler_ID, wrestler.Name, wrestler.Reign, wrestler.Days_held, wrestler.Location, wrestler.Event, Elimination.Elimination_ID, Elimination.Wrestler_ID, Elimination.Team, Elimination.Eliminated_By, Elimination.Elimination_Move, Elimination.Time
Question: Which teams had mo... | SELECT Team FROM elimination GROUP BY Team HAVING COUNT(*) > 3; |
Tables: wrestler, Elimination
Columns: wrestler.Wrestler_ID, wrestler.Name, wrestler.Reign, wrestler.Days_held, wrestler.Location, wrestler.Event, Elimination.Elimination_ID, Elimination.Wrestler_ID, Elimination.Team, Elimination.Eliminated_By, Elimination.Elimination_Move, Elimination.Time
Question: Show the reign and... | SELECT Reign , Days_held FROM wrestler; |
Tables: wrestler, Elimination
Columns: wrestler.Wrestler_ID, wrestler.Name, wrestler.Reign, wrestler.Days_held, wrestler.Location, wrestler.Event, Elimination.Elimination_ID, Elimination.Wrestler_ID, Elimination.Team, Elimination.Eliminated_By, Elimination.Elimination_Move, Elimination.Time
Question: What are the reign... | SELECT Reign , Days_held FROM wrestler; |
Tables: wrestler, Elimination
Columns: wrestler.Wrestler_ID, wrestler.Name, wrestler.Reign, wrestler.Days_held, wrestler.Location, wrestler.Event, Elimination.Elimination_ID, Elimination.Wrestler_ID, Elimination.Team, Elimination.Eliminated_By, Elimination.Elimination_Move, Elimination.Time
Question: What are the names... | SELECT Name FROM wrestler WHERE Days_held < 100; |
Tables: wrestler, Elimination
Columns: wrestler.Wrestler_ID, wrestler.Name, wrestler.Reign, wrestler.Days_held, wrestler.Location, wrestler.Event, Elimination.Elimination_ID, Elimination.Wrestler_ID, Elimination.Team, Elimination.Eliminated_By, Elimination.Elimination_Move, Elimination.Time
Question: Return the names o... | SELECT Name FROM wrestler WHERE Days_held < 100; |
Tables: wrestler, Elimination
Columns: wrestler.Wrestler_ID, wrestler.Name, wrestler.Reign, wrestler.Days_held, wrestler.Location, wrestler.Event, Elimination.Elimination_ID, Elimination.Wrestler_ID, Elimination.Team, Elimination.Eliminated_By, Elimination.Elimination_Move, Elimination.Time
Question: Please show the mo... | SELECT Reign FROM wrestler GROUP BY Reign ORDER BY COUNT(*) DESC LIMIT 1; |
Tables: wrestler, Elimination
Columns: wrestler.Wrestler_ID, wrestler.Name, wrestler.Reign, wrestler.Days_held, wrestler.Location, wrestler.Event, Elimination.Elimination_ID, Elimination.Wrestler_ID, Elimination.Team, Elimination.Eliminated_By, Elimination.Elimination_Move, Elimination.Time
Question: Which reign is the... | SELECT Reign FROM wrestler GROUP BY Reign ORDER BY COUNT(*) DESC LIMIT 1; |
Tables: wrestler, Elimination
Columns: wrestler.Wrestler_ID, wrestler.Name, wrestler.Reign, wrestler.Days_held, wrestler.Location, wrestler.Event, Elimination.Elimination_ID, Elimination.Wrestler_ID, Elimination.Team, Elimination.Eliminated_By, Elimination.Elimination_Move, Elimination.Time
Question: List the locations... | SELECT LOCATION FROM wrestler GROUP BY LOCATION HAVING COUNT(*) > 2; |
Tables: wrestler, Elimination
Columns: wrestler.Wrestler_ID, wrestler.Name, wrestler.Reign, wrestler.Days_held, wrestler.Location, wrestler.Event, Elimination.Elimination_ID, Elimination.Wrestler_ID, Elimination.Team, Elimination.Eliminated_By, Elimination.Elimination_Move, Elimination.Time
Question: Which locations ar... | SELECT LOCATION FROM wrestler GROUP BY LOCATION HAVING COUNT(*) > 2; |
Tables: wrestler, Elimination
Columns: wrestler.Wrestler_ID, wrestler.Name, wrestler.Reign, wrestler.Days_held, wrestler.Location, wrestler.Event, Elimination.Elimination_ID, Elimination.Wrestler_ID, Elimination.Team, Elimination.Eliminated_By, Elimination.Elimination_Move, Elimination.Time
Question: List the names of ... | SELECT Name FROM wrestler WHERE Wrestler_ID NOT IN (SELECT Wrestler_ID FROM elimination); |
Tables: wrestler, Elimination
Columns: wrestler.Wrestler_ID, wrestler.Name, wrestler.Reign, wrestler.Days_held, wrestler.Location, wrestler.Event, Elimination.Elimination_ID, Elimination.Wrestler_ID, Elimination.Team, Elimination.Eliminated_By, Elimination.Elimination_Move, Elimination.Time
Question: What are the names... | SELECT Name FROM wrestler WHERE Wrestler_ID NOT IN (SELECT Wrestler_ID FROM elimination); |
Tables: wrestler, Elimination
Columns: wrestler.Wrestler_ID, wrestler.Name, wrestler.Reign, wrestler.Days_held, wrestler.Location, wrestler.Event, Elimination.Elimination_ID, Elimination.Wrestler_ID, Elimination.Team, Elimination.Eliminated_By, Elimination.Elimination_Move, Elimination.Time
Question: Show the teams tha... | SELECT Team FROM Elimination WHERE Eliminated_By = "Orton" INTERSECT SELECT Team FROM Elimination WHERE Eliminated_By = "Benjamin"; |
Tables: wrestler, Elimination
Columns: wrestler.Wrestler_ID, wrestler.Name, wrestler.Reign, wrestler.Days_held, wrestler.Location, wrestler.Event, Elimination.Elimination_ID, Elimination.Wrestler_ID, Elimination.Team, Elimination.Eliminated_By, Elimination.Elimination_Move, Elimination.Time
Question: What are the teams... | SELECT Team FROM Elimination WHERE Eliminated_By = "Orton" INTERSECT SELECT Team FROM Elimination WHERE Eliminated_By = "Benjamin"; |
Tables: wrestler, Elimination
Columns: wrestler.Wrestler_ID, wrestler.Name, wrestler.Reign, wrestler.Days_held, wrestler.Location, wrestler.Event, Elimination.Elimination_ID, Elimination.Wrestler_ID, Elimination.Team, Elimination.Eliminated_By, Elimination.Elimination_Move, Elimination.Time
Question: What is the number... | SELECT COUNT (DISTINCT team) FROM elimination; |
Tables: wrestler, Elimination
Columns: wrestler.Wrestler_ID, wrestler.Name, wrestler.Reign, wrestler.Days_held, wrestler.Location, wrestler.Event, Elimination.Elimination_ID, Elimination.Wrestler_ID, Elimination.Team, Elimination.Eliminated_By, Elimination.Elimination_Move, Elimination.Time
Question: How many different... | SELECT COUNT (DISTINCT team) FROM elimination; |
Tables: wrestler, Elimination
Columns: wrestler.Wrestler_ID, wrestler.Name, wrestler.Reign, wrestler.Days_held, wrestler.Location, wrestler.Event, Elimination.Elimination_ID, Elimination.Wrestler_ID, Elimination.Team, Elimination.Eliminated_By, Elimination.Elimination_Move, Elimination.Time
Question: Show the times of ... | SELECT TIME FROM elimination WHERE Eliminated_By = "Punk" OR Eliminated_By = "Orton"; |
Tables: wrestler, Elimination
Columns: wrestler.Wrestler_ID, wrestler.Name, wrestler.Reign, wrestler.Days_held, wrestler.Location, wrestler.Event, Elimination.Elimination_ID, Elimination.Wrestler_ID, Elimination.Team, Elimination.Eliminated_By, Elimination.Elimination_Move, Elimination.Time
Question: What are the times... | SELECT TIME FROM elimination WHERE Eliminated_By = "Punk" OR Eliminated_By = "Orton"; |
Tables: School, budget, endowment
Columns: School.School_id, School.School_name, School.Location, School.Mascot, School.Enrollment, School.IHSAA_Class, School.IHSAA_Football_Class, School.County, budget.School_id, budget.Year, budget.Budgeted, budget.total_budget_percent_budgeted, budget.Invested, budget.total_budget_p... | SELECT count(*) FROM school; |
Tables: School, budget, endowment
Columns: School.School_id, School.School_name, School.Location, School.Mascot, School.Enrollment, School.IHSAA_Class, School.IHSAA_Football_Class, School.County, budget.School_id, budget.Year, budget.Budgeted, budget.total_budget_percent_budgeted, budget.Invested, budget.total_budget_p... | SELECT count(*) FROM school; |
Tables: School, budget, endowment
Columns: School.School_id, School.School_name, School.Location, School.Mascot, School.Enrollment, School.IHSAA_Class, School.IHSAA_Football_Class, School.County, budget.School_id, budget.Year, budget.Budgeted, budget.total_budget_percent_budgeted, budget.Invested, budget.total_budget_p... | SELECT school_name FROM school ORDER BY school_name; |
Tables: School, budget, endowment
Columns: School.School_id, School.School_name, School.Location, School.Mascot, School.Enrollment, School.IHSAA_Class, School.IHSAA_Football_Class, School.County, budget.School_id, budget.Year, budget.Budgeted, budget.total_budget_percent_budgeted, budget.Invested, budget.total_budget_p... | SELECT school_name , LOCATION , mascot FROM school; |
Tables: School, budget, endowment
Columns: School.School_id, School.School_name, School.Location, School.Mascot, School.Enrollment, School.IHSAA_Class, School.IHSAA_Football_Class, School.County, budget.School_id, budget.Year, budget.Budgeted, budget.total_budget_percent_budgeted, budget.Invested, budget.total_budget_p... | SELECT sum(enrollment) , avg(enrollment) FROM school; |
Tables: School, budget, endowment
Columns: School.School_id, School.School_name, School.Location, School.Mascot, School.Enrollment, School.IHSAA_Class, School.IHSAA_Football_Class, School.County, budget.School_id, budget.Year, budget.Budgeted, budget.total_budget_percent_budgeted, budget.Invested, budget.total_budget_p... | SELECT mascot FROM school WHERE enrollment > (SELECT avg(enrollment) FROM school); |
Tables: School, budget, endowment
Columns: School.School_id, School.School_name, School.Location, School.Mascot, School.Enrollment, School.IHSAA_Class, School.IHSAA_Football_Class, School.County, budget.School_id, budget.Year, budget.Budgeted, budget.total_budget_percent_budgeted, budget.Invested, budget.total_budget_p... | SELECT school_name FROM school ORDER BY enrollment LIMIT 1; |
Tables: School, budget, endowment
Columns: School.School_id, School.School_name, School.Location, School.Mascot, School.Enrollment, School.IHSAA_Class, School.IHSAA_Football_Class, School.County, budget.School_id, budget.Year, budget.Budgeted, budget.total_budget_percent_budgeted, budget.Invested, budget.total_budget_p... | SELECT avg(enrollment) , max(enrollment) , min(enrollment) FROM school; |
Tables: School, budget, endowment
Columns: School.School_id, School.School_name, School.Location, School.Mascot, School.Enrollment, School.IHSAA_Class, School.IHSAA_Football_Class, School.County, budget.School_id, budget.Year, budget.Budgeted, budget.total_budget_percent_budgeted, budget.Invested, budget.total_budget_p... | SELECT county , count(*) , sum(enrollment) FROM school GROUP BY county; |
Tables: School, budget, endowment
Columns: School.School_id, School.School_name, School.Location, School.Mascot, School.Enrollment, School.IHSAA_Class, School.IHSAA_Football_Class, School.County, budget.School_id, budget.Year, budget.Budgeted, budget.total_budget_percent_budgeted, budget.Invested, budget.total_budget_p... | 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"; |
Tables: School, budget, endowment
Columns: School.School_id, School.School_name, School.Location, School.Mascot, School.Enrollment, School.IHSAA_Class, School.IHSAA_Football_Class, School.County, budget.School_id, budget.Year, budget.Budgeted, budget.total_budget_percent_budgeted, budget.Invested, budget.total_budget_p... | SELECT donator_name , sum(amount) FROM endowment GROUP BY donator_name ORDER BY sum(amount) DESC; |
Tables: School, budget, endowment
Columns: School.School_id, School.School_name, School.Location, School.Mascot, School.Enrollment, School.IHSAA_Class, School.IHSAA_Football_Class, School.County, budget.School_id, budget.Year, budget.Budgeted, budget.total_budget_percent_budgeted, budget.Invested, budget.total_budget_p... | SELECT school_name FROM school WHERE school_id NOT IN (SELECT school_id FROM endowment); |
Tables: School, budget, endowment
Columns: School.School_id, School.School_name, School.Location, School.Mascot, School.Enrollment, School.IHSAA_Class, School.IHSAA_Football_Class, School.County, budget.School_id, budget.Year, budget.Budgeted, budget.total_budget_percent_budgeted, budget.Invested, budget.total_budget_p... | 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; |
Tables: School, budget, endowment
Columns: School.School_id, School.School_name, School.Location, School.Mascot, School.Enrollment, School.IHSAA_Class, School.IHSAA_Football_Class, School.County, budget.School_id, budget.Year, budget.Budgeted, budget.total_budget_percent_budgeted, budget.Invested, budget.total_budget_p... | 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'; |
Tables: School, budget, endowment
Columns: School.School_id, School.School_name, School.Location, School.Mascot, School.Enrollment, School.IHSAA_Class, School.IHSAA_Football_Class, School.County, budget.School_id, budget.Year, budget.Budgeted, budget.total_budget_percent_budgeted, budget.Invested, budget.total_budget_p... | SELECT donator_name FROM endowment EXCEPT SELECT donator_name FROM endowment WHERE amount < 9; |
Tables: School, budget, endowment
Columns: School.School_id, School.School_name, School.Location, School.Mascot, School.Enrollment, School.IHSAA_Class, School.IHSAA_Football_Class, School.County, budget.School_id, budget.Year, budget.Budgeted, budget.total_budget_percent_budgeted, budget.Invested, budget.total_budget_p... | SELECT amount , donator_name FROM endowment ORDER BY amount DESC LIMIT 1; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.