Unnamed: 0
int64
0
60k
input
stringlengths
76
562
answer
stringlengths
18
557
1,000
<question>: Show the names of players and names of their coaches. <context>: CREATE TABLE player (Player_name VARCHAR, Player_ID VARCHAR); CREATE TABLE coach (coach_name VARCHAR, Coach_ID VARCHAR); CREATE TABLE player_coach (Coach_ID VARCHAR, Player_ID VARCHAR)
SELECT T3.Player_name, T2.coach_name FROM player_coach AS T1 JOIN coach AS T2 ON T1.Coach_ID = T2.Coach_ID JOIN player AS T3 ON T1.Player_ID = T3.Player_ID
1,001
<question>: Show the names of players coached by the rank 1 coach. <context>: CREATE TABLE player (Player_name VARCHAR, Player_ID VARCHAR); CREATE TABLE coach (Coach_ID VARCHAR, Rank VARCHAR); CREATE TABLE player_coach (Coach_ID VARCHAR, Player_ID VARCHAR)
SELECT T3.Player_name FROM player_coach AS T1 JOIN coach AS T2 ON T1.Coach_ID = T2.Coach_ID JOIN player AS T3 ON T1.Player_ID = T3.Player_ID WHERE T2.Rank = 1
1,002
<question>: Show the names and genders of players with a coach starting after 2011. <context>: CREATE TABLE player (Player_name VARCHAR, gender VARCHAR, Player_ID VARCHAR); CREATE TABLE player_coach (Coach_ID VARCHAR, Player_ID VARCHAR, Starting_year INTEGER); CREATE TABLE coach (Coach_ID VARCHAR)
SELECT T3.Player_name, T3.gender FROM player_coach AS T1 JOIN coach AS T2 ON T1.Coach_ID = T2.Coach_ID JOIN player AS T3 ON T1.Player_ID = T3.Player_ID WHERE T1.Starting_year > 2011
1,003
<question>: Show the names of players and names of their coaches in descending order of the votes of players. <context>: CREATE TABLE coach (coach_name VARCHAR, Coach_ID VARCHAR); CREATE TABLE player_coach (Coach_ID VARCHAR, Player_ID VARCHAR); CREATE TABLE player (Player_name VARCHAR, Player_ID VARCHAR, Votes VARCHAR)
SELECT T3.Player_name, T2.coach_name FROM player_coach AS T1 JOIN coach AS T2 ON T1.Coach_ID = T2.Coach_ID JOIN player AS T3 ON T1.Player_ID = T3.Player_ID ORDER BY T3.Votes DESC
1,004
<question>: List the names of players that do not have coaches. <context>: CREATE TABLE player (Player_name VARCHAR, Player_ID VARCHAR); CREATE TABLE player_coach (Player_name VARCHAR, Player_ID VARCHAR)
SELECT Player_name FROM player WHERE NOT Player_ID IN (SELECT Player_ID FROM player_coach)
1,005
<question>: Show the residences that have both a player of gender "M" and a player of gender "F". <context>: CREATE TABLE player (Residence VARCHAR, gender VARCHAR)
SELECT Residence FROM player WHERE gender = "M" INTERSECT SELECT Residence FROM player WHERE gender = "F"
1,006
<question>: How many coaches does each club has? List the club id, name and the number of coaches. <context>: CREATE TABLE club (club_id VARCHAR, club_name VARCHAR); CREATE TABLE coach (club_id VARCHAR)
SELECT T1.club_id, T1.club_name, COUNT(*) FROM club AS T1 JOIN coach AS T2 ON T1.club_id = T2.club_id GROUP BY T1.club_id
1,007
<question>: How many gold medals has the club with the most coaches won? <context>: CREATE TABLE match_result (club_id VARCHAR, gold VARCHAR); CREATE TABLE coach (club_id VARCHAR)
SELECT T1.club_id, T1.gold FROM match_result AS T1 JOIN coach AS T2 ON T1.club_id = T2.club_id GROUP BY T1.club_id ORDER BY COUNT(*) DESC LIMIT 1
1,008
<question>: How many gymnasts are there? <context>: CREATE TABLE gymnast (Id VARCHAR)
SELECT COUNT(*) FROM gymnast
1,009
<question>: List the total points of gymnasts in descending order. <context>: CREATE TABLE gymnast (Total_Points VARCHAR)
SELECT Total_Points FROM gymnast ORDER BY Total_Points DESC
1,010
<question>: List the total points of gymnasts in descending order of floor exercise points. <context>: CREATE TABLE gymnast (Total_Points VARCHAR, Floor_Exercise_Points VARCHAR)
SELECT Total_Points FROM gymnast ORDER BY Floor_Exercise_Points DESC
1,011
<question>: What is the average horizontal bar points for all gymnasts? <context>: CREATE TABLE gymnast (Horizontal_Bar_Points INTEGER)
SELECT AVG(Horizontal_Bar_Points) FROM gymnast
1,012
<question>: What are the names of people in ascending alphabetical order? <context>: CREATE TABLE People (Name VARCHAR)
SELECT Name FROM People ORDER BY Name
1,013
<question>: What are the names of gymnasts? <context>: CREATE TABLE gymnast (Gymnast_ID VARCHAR); CREATE TABLE people (Name VARCHAR, People_ID VARCHAR)
SELECT T2.Name FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID = T2.People_ID
1,014
<question>: What are the names of gymnasts whose hometown is not "Santo Domingo"? <context>: CREATE TABLE gymnast (Gymnast_ID VARCHAR); CREATE TABLE people (Name VARCHAR, People_ID VARCHAR, Hometown VARCHAR)
SELECT T2.Name FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID = T2.People_ID WHERE T2.Hometown <> "Santo Domingo"
1,015
<question>: What is the age of the tallest person? <context>: CREATE TABLE people (Age VARCHAR, Height VARCHAR)
SELECT Age FROM people ORDER BY Height DESC LIMIT 1
1,016
<question>: List the names of the top 5 oldest people. <context>: CREATE TABLE People (Name VARCHAR, Age VARCHAR)
SELECT Name FROM People ORDER BY Age DESC LIMIT 5
1,017
<question>: What is the total point count of the youngest gymnast? <context>: CREATE TABLE people (People_ID VARCHAR, Age VARCHAR); CREATE TABLE gymnast (Total_Points VARCHAR, Gymnast_ID VARCHAR)
SELECT T1.Total_Points FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID = T2.People_ID ORDER BY T2.Age LIMIT 1
1,018
<question>: What is the average age of all gymnasts? <context>: CREATE TABLE people (Age INTEGER, People_ID VARCHAR); CREATE TABLE gymnast (Gymnast_ID VARCHAR)
SELECT AVG(T2.Age) FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID = T2.People_ID
1,019
<question>: What are the distinct hometowns of gymnasts with total points more than 57.5? <context>: CREATE TABLE gymnast (Gymnast_ID VARCHAR, Total_Points INTEGER); CREATE TABLE people (Hometown VARCHAR, People_ID VARCHAR)
SELECT DISTINCT T2.Hometown FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID = T2.People_ID WHERE T1.Total_Points > 57.5
1,020
<question>: What are the hometowns of gymnasts and the corresponding number of gymnasts? <context>: CREATE TABLE gymnast (Gymnast_ID VARCHAR); CREATE TABLE people (Hometown VARCHAR, People_ID VARCHAR)
SELECT T2.Hometown, COUNT(*) FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID = T2.People_ID GROUP BY T2.Hometown
1,021
<question>: What is the most common hometown of gymnasts? <context>: CREATE TABLE gymnast (Gymnast_ID VARCHAR); CREATE TABLE people (Hometown VARCHAR, People_ID VARCHAR)
SELECT T2.Hometown FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID = T2.People_ID GROUP BY T2.Hometown ORDER BY COUNT(*) DESC LIMIT 1
1,022
<question>: What are the hometowns that are shared by at least two gymnasts? <context>: CREATE TABLE gymnast (Gymnast_ID VARCHAR); CREATE TABLE people (Hometown VARCHAR, People_ID VARCHAR)
SELECT T2.Hometown FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID = T2.People_ID GROUP BY T2.Hometown HAVING COUNT(*) >= 2
1,023
<question>: List the names of gymnasts in ascending order by their heights. <context>: CREATE TABLE gymnast (Gymnast_ID VARCHAR); CREATE TABLE people (Name VARCHAR, People_ID VARCHAR, Height VARCHAR)
SELECT T2.Name FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID = T2.People_ID ORDER BY T2.Height
1,024
<question>: List the distinct hometowns that are not associated with any gymnast. <context>: CREATE TABLE gymnast (Gymnast_ID VARCHAR); CREATE TABLE people (Hometown VARCHAR, People_ID VARCHAR); CREATE TABLE people (Hometown VARCHAR)
SELECT DISTINCT Hometown FROM people EXCEPT SELECT DISTINCT T2.Hometown FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID = T2.People_ID
1,025
<question>: Show the hometowns shared by people older than 23 and younger than 20. <context>: CREATE TABLE people (Hometown VARCHAR, Age INTEGER)
SELECT Hometown FROM people WHERE Age > 23 INTERSECT SELECT Hometown FROM people WHERE Age < 20
1,026
<question>: How many distinct hometowns did these people have? <context>: CREATE TABLE people (Hometown VARCHAR)
SELECT COUNT(DISTINCT Hometown) FROM people
1,027
<question>: Show the ages of gymnasts in descending order of total points. <context>: CREATE TABLE people (Age VARCHAR, People_ID VARCHAR); CREATE TABLE gymnast (Gymnast_ID VARCHAR, Total_Points VARCHAR)
SELECT T2.Age FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID = T2.People_ID ORDER BY T1.Total_Points DESC
1,028
<question>: Find the total savings balance of all accounts except the account with name ‘Brown’. <context>: CREATE TABLE accounts (custid VARCHAR, name VARCHAR); CREATE TABLE savings (balance INTEGER, custid VARCHAR)
SELECT SUM(T2.balance) FROM accounts AS T1 JOIN savings AS T2 ON T1.custid = T2.custid WHERE T1.name <> 'Brown'
1,029
<question>: How many accounts are there in total? <context>: CREATE TABLE accounts (Id VARCHAR)
SELECT COUNT(*) FROM accounts
1,030
<question>: What is the total checking balance in all accounts? <context>: CREATE TABLE checking (balance INTEGER)
SELECT SUM(balance) FROM checking
1,031
<question>: Find the average checking balance. <context>: CREATE TABLE checking (balance INTEGER)
SELECT AVG(balance) FROM checking
1,032
<question>: How many accounts have a savings balance above the average savings balance? <context>: CREATE TABLE savings (balance INTEGER)
SELECT COUNT(*) FROM savings WHERE balance > (SELECT AVG(balance) FROM savings)
1,033
<question>: Find the name and id of accounts whose checking balance is below the maximum checking balance. <context>: CREATE TABLE accounts (custid VARCHAR, name VARCHAR); CREATE TABLE checking (balance INTEGER); CREATE TABLE checking (custid VARCHAR, balance INTEGER)
SELECT T1.custid, T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid WHERE T2.balance < (SELECT MAX(balance) FROM checking)
1,034
<question>: What is the checking balance of the account whose owner’s name contains the substring ‘ee’? <context>: CREATE TABLE checking (balance VARCHAR, custid VARCHAR); CREATE TABLE accounts (custid VARCHAR, name VARCHAR)
SELECT T2.balance FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid WHERE T1.name LIKE '%ee%'
1,035
<question>: Find the checking balance and saving balance in the Brown’s account. <context>: CREATE TABLE checking (balance VARCHAR, custid VARCHAR); CREATE TABLE accounts (custid VARCHAR, name VARCHAR); CREATE TABLE savings (balance VARCHAR, custid VARCHAR)
SELECT 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 T1.name = 'Brown'
1,036
<question>: Find the names of accounts whose checking balance is above the average checking balance, but savings balance is below the average savings balance. <context>: CREATE TABLE checking (custid VARCHAR, balance INTEGER); CREATE TABLE savings (custid VARCHAR, balance INTEGER); CREATE TABLE savings (balance INTEGER); CREATE TABLE checking (balance INTEGER); CREATE TABLE accounts (name VARCHAR, custid VARCHAR)
SELECT T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid WHERE T2.balance > (SELECT AVG(balance) FROM checking) INTERSECT SELECT T1.name FROM accounts AS T1 JOIN savings AS T2 ON T1.custid = T2.custid WHERE T2.balance < (SELECT AVG(balance) FROM savings)
1,037
<question>: Find the checking balance of the accounts whose savings balance is higher than the average savings balance. <context>: CREATE TABLE accounts (custid VARCHAR, name VARCHAR); CREATE TABLE checking (balance INTEGER, custid VARCHAR); CREATE TABLE savings (balance INTEGER, custid VARCHAR); CREATE TABLE savings (balance INTEGER)
SELECT T2.balance FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid WHERE T1.name IN (SELECT T1.name FROM accounts AS T1 JOIN savings AS T2 ON T1.custid = T2.custid WHERE T2.balance > (SELECT AVG(balance) FROM savings))
1,038
<question>: List all customers’ names in the alphabetical order. <context>: CREATE TABLE accounts (name VARCHAR)
SELECT name FROM accounts ORDER BY name
1,039
<question>: Find the name of account that has the lowest total checking and saving balance. <context>: CREATE TABLE checking (custid VARCHAR, balance VARCHAR); CREATE TABLE savings (custid VARCHAR, balance VARCHAR); CREATE TABLE accounts (name VARCHAR, custid VARCHAR)
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 ORDER BY T2.balance + T3.balance LIMIT 1
1,040
<question>: Find the names and total checking and savings balances of accounts whose savings balance is higher than the average savings balance. <context>: CREATE TABLE checking (balance INTEGER, custid VARCHAR); CREATE TABLE savings (balance INTEGER, custid VARCHAR); CREATE TABLE savings (balance INTEGER); CREATE TABLE accounts (name VARCHAR, custid VARCHAR)
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)
1,041
<question>: Find the name and checking balance of the account with the lowest savings balance. <context>: CREATE TABLE checking (balance VARCHAR, custid VARCHAR); CREATE TABLE savings (custid VARCHAR, balance VARCHAR); CREATE TABLE accounts (name VARCHAR, custid VARCHAR)
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
1,042
<question>: Find the number of checking accounts for each account name. <context>: CREATE TABLE checking (custid VARCHAR); CREATE TABLE accounts (name VARCHAR, custid VARCHAR)
SELECT COUNT(*), T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid GROUP BY T1.name
1,043
<question>: Find the total saving balance for each account name. <context>: CREATE TABLE savings (balance INTEGER, custid VARCHAR); CREATE TABLE accounts (name VARCHAR, custid VARCHAR)
SELECT SUM(T2.balance), T1.name FROM accounts AS T1 JOIN savings AS T2 ON T1.custid = T2.custid GROUP BY T1.name
1,044
<question>: Find the name of accounts whose checking balance is below the average checking balance. <context>: CREATE TABLE accounts (name VARCHAR, custid VARCHAR); CREATE TABLE checking (balance INTEGER); CREATE TABLE checking (custid VARCHAR, balance INTEGER)
SELECT T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid WHERE T2.balance < (SELECT AVG(balance) FROM checking)
1,045
<question>: Find the saving balance of the account with the highest checking balance. <context>: CREATE TABLE savings (balance VARCHAR, custid VARCHAR); CREATE TABLE checking (custid VARCHAR, balance VARCHAR); CREATE TABLE accounts (custid VARCHAR)
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
1,046
<question>: Find the total checking and saving balance of all accounts sorted by the total balance in ascending order. <context>: CREATE TABLE checking (balance VARCHAR, custid VARCHAR); CREATE TABLE savings (balance VARCHAR, custid VARCHAR)
SELECT T1.balance + T2.balance FROM checking AS T1 JOIN savings AS T2 ON T1.custid = T2.custid ORDER BY T1.balance + T2.balance
1,047
<question>: Find the name and checking balance of the account with the lowest saving balance. <context>: CREATE TABLE checking (balance VARCHAR, custid VARCHAR); CREATE TABLE savings (custid VARCHAR, balance VARCHAR); CREATE TABLE accounts (name VARCHAR, custid VARCHAR)
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
1,048
<question>: Find the name, checking balance and saving balance of all accounts in the bank. <context>: CREATE TABLE checking (balance VARCHAR, custid VARCHAR); CREATE TABLE savings (balance VARCHAR, custid VARCHAR); CREATE TABLE accounts (name VARCHAR, custid VARCHAR)
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
1,049
<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. <context>: CREATE TABLE checking (balance VARCHAR, custid VARCHAR); CREATE TABLE savings (balance VARCHAR, custid VARCHAR); CREATE TABLE accounts (name VARCHAR, custid VARCHAR)
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
1,050
<question>: Find the name of accounts whose checking balance is higher than corresponding saving balance. <context>: CREATE TABLE savings (custid VARCHAR, balance INTEGER); CREATE TABLE accounts (name VARCHAR, custid VARCHAR); CREATE TABLE checking (custid VARCHAR, balance INTEGER)
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
1,051
<question>: Find the name and total checking and savings balance of the accounts whose savings balance is lower than corresponding checking balance. <context>: CREATE TABLE checking (balance INTEGER, custid VARCHAR); CREATE TABLE savings (balance INTEGER, custid VARCHAR); CREATE TABLE accounts (name VARCHAR, custid VARCHAR)
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
1,052
<question>: Find the name and savings balance of the top 3 accounts with the highest saving balance sorted by savings balance in descending order. <context>: CREATE TABLE savings (balance VARCHAR, custid VARCHAR); CREATE TABLE accounts (name VARCHAR, custid VARCHAR)
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
1,053
<question>: How many main stream browsers whose market share is at least 5 exist? <context>: CREATE TABLE browser (market_share VARCHAR)
SELECT COUNT(*) FROM browser WHERE market_share >= 5
1,054
<question>: List the name of browsers in descending order by market share. <context>: CREATE TABLE browser (name VARCHAR, market_share VARCHAR)
SELECT name FROM browser ORDER BY market_share DESC
1,055
<question>: List the ids, names and market shares of all browsers. <context>: CREATE TABLE browser (id VARCHAR, name VARCHAR, market_share VARCHAR)
SELECT id, name, market_share FROM browser
1,056
<question>: What is the maximum, minimum and average market share of the listed browsers? <context>: CREATE TABLE browser (market_share INTEGER)
SELECT MAX(market_share), MIN(market_share), AVG(market_share) FROM browser
1,057
<question>: What is the id and market share of the browser Safari? <context>: CREATE TABLE browser (id VARCHAR, market_share VARCHAR, name VARCHAR)
SELECT id, market_share FROM browser WHERE name = 'Safari'
1,058
<question>: What are the name and os of web client accelerators that do not work with only a 'Broadband' type connection? <context>: CREATE TABLE web_client_accelerator (name VARCHAR, operating_system VARCHAR, CONNECTION VARCHAR)
SELECT name, operating_system FROM web_client_accelerator WHERE CONNECTION <> 'Broadband'
1,059
<question>: What is the name of the browser that became compatible with the accelerator 'CProxy' after year 1998 ? <context>: CREATE TABLE accelerator_compatible_browser (browser_id VARCHAR, accelerator_id VARCHAR, compatible_since_year VARCHAR); CREATE TABLE web_client_accelerator (id VARCHAR, name VARCHAR); CREATE TABLE browser (name VARCHAR, id VARCHAR)
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
1,060
<question>: What are the ids and names of the web accelerators that are compatible with two or more browsers? <context>: CREATE TABLE accelerator_compatible_browser (accelerator_id VARCHAR); CREATE TABLE web_client_accelerator (id VARCHAR, Name VARCHAR)
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
1,061
<question>: What is the id and name of the browser that is compatible with the most web accelerators? <context>: CREATE TABLE browser (id VARCHAR, name VARCHAR); CREATE TABLE accelerator_compatible_browser (browser_id VARCHAR)
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
1,062
<question>: When did the web accelerator 'CACHEbox' and browser 'Internet Explorer' become compatible? <context>: CREATE TABLE accelerator_compatible_browser (compatible_since_year VARCHAR, browser_id VARCHAR, accelerator_id VARCHAR); CREATE TABLE browser (id VARCHAR, name VARCHAR); CREATE TABLE web_client_accelerator (id VARCHAR, name VARCHAR)
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'
1,063
<question>: How many different kinds of clients are supported by the web clients accelerators? <context>: CREATE TABLE web_client_accelerator (client VARCHAR)
SELECT COUNT(DISTINCT client) FROM web_client_accelerator
1,064
<question>: How many accelerators are not compatible with the browsers listed ? <context>: CREATE TABLE accelerator_compatible_browser (id VARCHAR, accelerator_id VARCHAR); CREATE TABLE web_client_accelerator (id VARCHAR, accelerator_id VARCHAR)
SELECT COUNT(*) FROM web_client_accelerator WHERE NOT id IN (SELECT accelerator_id FROM accelerator_compatible_browser)
1,065
<question>: What distinct accelerator names are compatible with the browswers that have market share higher than 15? <context>: CREATE TABLE web_client_accelerator (name VARCHAR, id VARCHAR); CREATE TABLE accelerator_compatible_browser (accelerator_id VARCHAR, browser_id VARCHAR); CREATE TABLE browser (id VARCHAR, market_share INTEGER)
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
1,066
<question>: List the names of the browser that are compatible with both 'CACHEbox' and 'Fasterfox'. <context>: CREATE TABLE accelerator_compatible_browser (accelerator_id VARCHAR, browser_id VARCHAR); CREATE TABLE web_client_accelerator (id VARCHAR, name VARCHAR); CREATE TABLE browser (name VARCHAR, id VARCHAR)
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 = T1.id JOIN browser AS T3 ON T2.browser_id = T3.id WHERE T1.name = 'Fasterfox'
1,067
<question>: Show the accelerator names and supporting operating systems that are not compatible with the browser named 'Opera'. <context>: CREATE TABLE browser (id VARCHAR, name VARCHAR); CREATE TABLE web_client_accelerator (name VARCHAR, operating_system VARCHAR); CREATE TABLE accelerator_compatible_browser (accelerator_id VARCHAR, browser_id VARCHAR); CREATE TABLE web_client_accelerator (name VARCHAR, operating_system VARCHAR, id VARCHAR)
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'
1,068
<question>: Which accelerator name contains substring "Opera"? <context>: CREATE TABLE web_client_accelerator (name VARCHAR)
SELECT name FROM web_client_accelerator WHERE name LIKE "%Opera%"
1,069
<question>: Find the number of web accelerators used for each Operating system. <context>: CREATE TABLE web_client_accelerator (Operating_system VARCHAR)
SELECT Operating_system, COUNT(*) FROM web_client_accelerator GROUP BY Operating_system
1,070
<question>: give me names of all compatible browsers and accelerators in the descending order of compatible year <context>: CREATE TABLE accelerator_compatible_browser (browser_id VARCHAR, accelerator_id VARCHAR, compatible_since_year VARCHAR); CREATE TABLE web_client_accelerator (name VARCHAR, id VARCHAR); CREATE TABLE browser (name VARCHAR, id VARCHAR)
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
1,071
<question>: How many wrestlers are there? <context>: CREATE TABLE wrestler (Id VARCHAR)
SELECT COUNT(*) FROM wrestler
1,072
<question>: List the names of wrestlers in descending order of days held. <context>: CREATE TABLE wrestler (Name VARCHAR, Days_held VARCHAR)
SELECT Name FROM wrestler ORDER BY Days_held DESC
1,073
<question>: What is the name of the wrestler with the fewest days held? <context>: CREATE TABLE wrestler (Name VARCHAR, Days_held VARCHAR)
SELECT Name FROM wrestler ORDER BY Days_held LIMIT 1
1,074
<question>: What are the distinct reigns of wrestlers whose location is not "Tokyo,Japan" ? <context>: CREATE TABLE wrestler (Reign VARCHAR, LOCATION VARCHAR)
SELECT DISTINCT Reign FROM wrestler WHERE LOCATION <> "Tokyo , Japan"
1,075
<question>: What are the names and location of the wrestlers? <context>: CREATE TABLE wrestler (Name VARCHAR, LOCATION VARCHAR)
SELECT Name, LOCATION FROM wrestler
1,076
<question>: What are the elimination moves of wrestlers whose team is "Team Orton"? <context>: CREATE TABLE Elimination (Elimination_Move VARCHAR, Team VARCHAR)
SELECT Elimination_Move FROM Elimination WHERE Team = "Team Orton"
1,077
<question>: What are the names of wrestlers and the elimination moves? <context>: CREATE TABLE wrestler (Name VARCHAR, Wrestler_ID VARCHAR); CREATE TABLE elimination (Elimination_Move VARCHAR, Wrestler_ID VARCHAR)
SELECT T2.Name, T1.Elimination_Move FROM elimination AS T1 JOIN wrestler AS T2 ON T1.Wrestler_ID = T2.Wrestler_ID
1,078
<question>: List the names of wrestlers and the teams in elimination in descending order of days held. <context>: CREATE TABLE elimination (Team VARCHAR, Wrestler_ID VARCHAR); CREATE TABLE wrestler (Name VARCHAR, Wrestler_ID VARCHAR, Days_held VARCHAR)
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
1,079
<question>: List the time of elimination of the wrestlers with largest days held. <context>: CREATE TABLE wrestler (Wrestler_ID VARCHAR, Days_held VARCHAR); CREATE TABLE elimination (Time VARCHAR, Wrestler_ID VARCHAR)
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
1,080
<question>: Show times of elimination of wrestlers with days held more than 50. <context>: CREATE TABLE wrestler (Wrestler_ID VARCHAR, Days_held INTEGER); CREATE TABLE elimination (Time VARCHAR, Wrestler_ID VARCHAR)
SELECT T1.Time FROM elimination AS T1 JOIN wrestler AS T2 ON T1.Wrestler_ID = T2.Wrestler_ID WHERE T2.Days_held > 50
1,081
<question>: Show different teams in eliminations and the number of eliminations from each team. <context>: CREATE TABLE elimination (Team VARCHAR)
SELECT Team, COUNT(*) FROM elimination GROUP BY Team
1,082
<question>: Show teams that have suffered more than three eliminations. <context>: CREATE TABLE elimination (Team VARCHAR)
SELECT Team FROM elimination GROUP BY Team HAVING COUNT(*) > 3
1,083
<question>: Show the reign and days held of wrestlers. <context>: CREATE TABLE wrestler (Reign VARCHAR, Days_held VARCHAR)
SELECT Reign, Days_held FROM wrestler
1,084
<question>: What are the names of wrestlers days held less than 100? <context>: CREATE TABLE wrestler (Name VARCHAR, Days_held INTEGER)
SELECT Name FROM wrestler WHERE Days_held < 100
1,085
<question>: Please show the most common reigns of wrestlers. <context>: CREATE TABLE wrestler (Reign VARCHAR)
SELECT Reign FROM wrestler GROUP BY Reign ORDER BY COUNT(*) DESC LIMIT 1
1,086
<question>: List the locations that are shared by more than two wrestlers. <context>: CREATE TABLE wrestler (LOCATION VARCHAR)
SELECT LOCATION FROM wrestler GROUP BY LOCATION HAVING COUNT(*) > 2
1,087
<question>: List the names of wrestlers that have not been eliminated. <context>: CREATE TABLE elimination (Name VARCHAR, Wrestler_ID VARCHAR); CREATE TABLE wrestler (Name VARCHAR, Wrestler_ID VARCHAR)
SELECT Name FROM wrestler WHERE NOT Wrestler_ID IN (SELECT Wrestler_ID FROM elimination)
1,088
<question>: Show the teams that have both wrestlers eliminated by "Orton" and wrestlers eliminated by "Benjamin". <context>: CREATE TABLE Elimination (Team VARCHAR, Eliminated_By VARCHAR)
SELECT Team FROM Elimination WHERE Eliminated_By = "Orton" INTERSECT SELECT Team FROM Elimination WHERE Eliminated_By = "Benjamin"
1,089
<question>: What is the number of distinct teams that suffer elimination? <context>: CREATE TABLE elimination (team VARCHAR)
SELECT COUNT(DISTINCT team) FROM elimination
1,090
<question>: Show the times of elimination by "Punk" or "Orton". <context>: CREATE TABLE elimination (TIME VARCHAR, Eliminated_By VARCHAR)
SELECT TIME FROM elimination WHERE Eliminated_By = "Punk" OR Eliminated_By = "Orton"
1,091
<question>: How many schools are there? <context>: CREATE TABLE school (Id VARCHAR)
SELECT COUNT(*) FROM school
1,092
<question>: Show all school names in alphabetical order. <context>: CREATE TABLE school (school_name VARCHAR)
SELECT school_name FROM school ORDER BY school_name
1,093
<question>: List the name, location, mascot for all schools. <context>: CREATE TABLE school (school_name VARCHAR, LOCATION VARCHAR, mascot VARCHAR)
SELECT school_name, LOCATION, mascot FROM school
1,094
<question>: What are the total and average enrollment of all schools? <context>: CREATE TABLE school (enrollment INTEGER)
SELECT SUM(enrollment), AVG(enrollment) FROM school
1,095
<question>: What are the mascots for schools with enrollments above the average? <context>: CREATE TABLE school (mascot VARCHAR, enrollment INTEGER)
SELECT mascot FROM school WHERE enrollment > (SELECT AVG(enrollment) FROM school)
1,096
<question>: List the name of the school with the smallest enrollment. <context>: CREATE TABLE school (school_name VARCHAR, enrollment VARCHAR)
SELECT school_name FROM school ORDER BY enrollment LIMIT 1
1,097
<question>: Show the average, maximum, minimum enrollment of all schools. <context>: CREATE TABLE school (enrollment INTEGER)
SELECT AVG(enrollment), MAX(enrollment), MIN(enrollment) FROM school
1,098
<question>: Show each county along with the number of schools and total enrollment in each county. <context>: CREATE TABLE school (county VARCHAR, enrollment INTEGER)
SELECT county, COUNT(*), SUM(enrollment) FROM school GROUP BY county
1,099
<question>: How many donors have endowment for school named "Glenn"? <context>: CREATE TABLE school (school_id VARCHAR, school_name VARCHAR); CREATE TABLE endowment (donator_name VARCHAR, school_id VARCHAR)
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"