cnatale/presto-athena-txt-2-sql huggingface dataset:
List the names of players that do not have coaches.
Additional table information: table: riding_club
SQL: SELECT Player_name FROM player WHERE NOT Player_ID IN (SELECT Player_ID FROM player_coach)
Show the residences that have both a player of gender 'M' and a player of gender 'F'.
Additional table information: table: riding_club
SQL: SELECT Residence FROM player WHERE gender = 'M' INTERSECT SELECT Residence FROM player WHERE gender = 'F'
How many coaches does each club has? List the club id, name and the number of coaches.
Additional table information: table: riding_club
SQL: 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
How many gold medals has the club with the most coaches won?
Additional table information: table: riding_club
SQL: 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
How many gymnasts are there?
Additional table information: table: gymnast
SQL: SELECT COUNT(*) FROM gymnast
Count the number of gymnasts.
Additional table information: table: gymnast
SQL: SELECT COUNT(*) FROM gymnast
List the total points of gymnasts in descending order.
Additional table information: table: gymnast
SQL: SELECT Total_Points FROM gymnast ORDER BY Total_Points DESC
What are the total points for all gymnasts, ordered by total points descending?
Additional table information: table: gymnast
SQL: SELECT Total_Points FROM gymnast ORDER BY Total_Points DESC
List the total points of gymnasts in descending order of floor exercise points.
Additional table information: table: gymnast
SQL: SELECT Total_Points FROM gymnast ORDER BY Floor_Exercise_Points DESC
What are the total points of gymnasts, ordered by their floor exercise points descending?
Additional table information: table: gymnast
SQL: SELECT Total_Points FROM gymnast ORDER BY Floor_Exercise_Points DESC
What is the average horizontal bar points for all gymnasts?
Additional table information: table: gymnast
SQL: SELECT AVG(Horizontal_Bar_Points) FROM gymnast
Return the average horizontal bar points across all gymnasts.
Additional table information: table: gymnast
SQL: SELECT AVG(Horizontal_Bar_Points) FROM gymnast
What are the names of people in ascending alphabetical order?
Additional table information: table: gymnast
SQL: SELECT Name FROM People ORDER BY Name ASC NULLS FIRST
Return the names of people, ordered alphabetically.
Additional table information: table: gymnast
SQL: SELECT Name FROM People ORDER BY Name ASC NULLS FIRST
What are the names of gymnasts?
Additional table information: table: gymnast
SQL: SELECT T2.Name FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID = T2.People_ID
Return the names of the gymnasts.
Additional table information: table: gymnast
SQL: SELECT T2.Name FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID = T2.People_ID
What are the names of gymnasts whose hometown is not 'Santo Domingo'?
Additional table information: table: gymnast
SQL: SELECT T2.Name FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID = T2.People_ID WHERE T2.Hometown <> 'Santo Domingo'
Return the names of gymnasts who did not grow up in Santo Domingo.
Additional table information: table: gymnast
SQL: SELECT T2.Name FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID = T2.People_ID WHERE T2.Hometown <> 'Santo Domingo'
What is the age of the tallest person?
Additional table information: table: gymnast
SQL: SELECT Age FROM people ORDER BY Height DESC LIMIT 1
Return the age of the person with the greatest height.
Additional table information: table: gymnast
SQL: SELECT Age FROM people ORDER BY Height DESC LIMIT 1
List the names of the top 5 oldest people.
Additional table information: table: gymnast
SQL: SELECT Name FROM People ORDER BY Age DESC LIMIT 5
What are the names of the five oldest people?
Additional table information: table: gymnast
SQL: SELECT Name FROM People ORDER BY Age DESC LIMIT 5
What is the total point count of the youngest gymnast?
Additional table information: table: gymnast
SQL: SELECT T1.Total_Points FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID = T2.People_ID ORDER BY T2.Age ASC NULLS FIRST LIMIT 1
Return the total points of the gymnast with the lowest age.
Additional table information: table: gymnast
SQL: SELECT T1.Total_Points FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID = T2.People_ID ORDER BY T2.Age ASC NULLS FIRST LIMIT 1
What is the average age of all gymnasts?
Additional table information: table: gymnast
SQL: SELECT AVG(T2.Age) FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID = T2.People_ID
Return the average age across all gymnasts.
Additional table information: table: gymnast
SQL: SELECT AVG(T2.Age) FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID = T2.People_ID
What are the distinct hometowns of gymnasts with total points more than 57.5?
Additional table information: table: gymnast
SQL: 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
Give the different hometowns of gymnasts that have a total point score of above 57.5.
Additional table information: table: gymnast
SQL: 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
What are the hometowns of gymnasts and the corresponding number of gymnasts?
Additional table information: table: gymnast
SQL: SELECT T2.Hometown, COUNT(*) FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID = T2.People_ID GROUP BY T2.Hometown
How many gymnasts are from each hometown?
Additional table information: table: gymnast
SQL: SELECT T2.Hometown, COUNT(*) FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID = T2.People_ID GROUP BY T2.Hometown
What is the most common hometown of gymnasts?
Additional table information: table: gymnast
SQL: 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
Return the hometown that is most common among gymnasts.
Additional table information: table: gymnast
SQL: 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
What are the hometowns that are shared by at least two gymnasts?
Additional table information: table: gymnast
SQL: 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
Give the hometowns from which two or more gymnasts are from.
Additional table information: table: gymnast
SQL: 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
List the names of gymnasts in ascending order by their heights.
Additional table information: table: gymnast
SQL: SELECT T2.Name FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID = T2.People_ID ORDER BY T2.Height ASC NULLS FIRST
What are the names of gymnasts, ordered by their heights ascending?
Additional table information: table: gymnast
SQL: SELECT T2.Name FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID = T2.People_ID ORDER BY T2.Height ASC NULLS FIRST
List the distinct hometowns that are not associated with any gymnast.
Additional table information: table: gymnast
SQL: 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
From which hometowns did no gymnasts come from?
Additional table information: table: gymnast
SQL: 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
Show the hometowns shared by people older than 23 and younger than 20.
Additional table information: table: gymnast
SQL: SELECT Hometown FROM people WHERE Age > 23 INTERSECT SELECT Hometown FROM people WHERE Age < 20
From which hometowns did both people older than 23 and younger than 20 come from?
Additional table information: table: gymnast
SQL: SELECT Hometown FROM people WHERE Age > 23 INTERSECT SELECT Hometown FROM people WHERE Age < 20
How many distinct hometowns did these people have?
Additional table information: table: gymnast
SQL: SELECT COUNT(DISTINCT Hometown) FROM people
Count the number of different hometowns of these people.
Additional table information: table: gymnast
SQL: SELECT COUNT(DISTINCT Hometown) FROM people
Show the ages of gymnasts in descending order of total points.
Additional table information: table: gymnast
SQL: SELECT T2.Age FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID = T2.People_ID ORDER BY T1.Total_Points DESC
What are the ages of the gymnasts, ordered descending by their total points?
Additional table information: table: gymnast
SQL: SELECT T2.Age FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID = T2.People_ID ORDER BY T1.Total_Points DESC
Find the total savings balance of all accounts except the account with name ‘Brown’.
Additional table information: table: small_bank_1
SQL: SELECT SUM(T2.balance) FROM accounts AS T1 JOIN savings AS T2 ON T1.custid = T2.custid WHERE T1.name <> 'Brown'
What is the total balance of savings accounts not belonging to someone with the name Brown?
Additional table information: table: small_bank_1
SQL: SELECT SUM(T2.balance) FROM accounts AS T1 JOIN savings AS T2 ON T1.custid = T2.custid WHERE T1.name <> 'Brown'
How many accounts are there in total?
Additional table information: table: small_bank_1
SQL: SELECT COUNT(*) FROM accounts
Count the number of accounts.
Additional table information: table: small_bank_1
SQL: SELECT COUNT(*) FROM accounts
What is the total checking balance in all accounts?
Additional table information: table: small_bank_1
SQL: SELECT SUM(balance) FROM checking
Find the total balance across checking accounts.
Additional table information: table: small_bank_1
SQL: SELECT SUM(balance) FROM checking
Find the average checking balance.
Additional table information: table: small_bank_1
SQL: SELECT AVG(balance) FROM checking
What is the average balance in checking accounts?
Additional table information: table: small_bank_1
SQL: SELECT AVG(balance) FROM checking
How many accounts have a savings balance above the average savings balance?
Additional table information: table: small_bank_1
SQL: SELECT COUNT(*) FROM savings WHERE balance > (SELECT AVG(balance) FROM savings)
Find the number of accounts with a savings balance that is higher than the average savings balance.
Additional table information: table: small_bank_1
SQL: SELECT COUNT(*) FROM savings WHERE balance > (SELECT AVG(balance) FROM savings)
Find the name and id of accounts whose checking balance is below the maximum checking balance.
Additional table information: table: small_bank_1
SQL: 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)
What are the customer id and name corresponding to accounts with a checking balance less than the largest checking balance?
Additional table information: table: small_bank_1
SQL: 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)
What is the checking balance of the account whose owner’s name contains the substring ‘ee’?
Additional table information: table: small_bank_1
SQL: SELECT T2.balance FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid WHERE T1.name LIKE '%ee%'
Find the balance of the checking account belonging to an owner whose name contains 'ee'.
Additional table information: table: small_bank_1
SQL: SELECT T2.balance FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid WHERE T1.name LIKE '%ee%'
Find the checking balance and saving balance in the Brown’s account.
Additional table information: table: small_bank_1
SQL: 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'
What are the checking and savings balances in accounts belonging to Brown?
Additional table information: table: small_bank_1
SQL: 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'
Find the names of accounts whose checking balance is above the average checking balance, but savings balance is below the average savings balance.
Additional table information: table: small_bank_1
SQL: 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)
What are the names of accounts with checking balances greater than the average checking balance and savings balances below the average savings balance?
Additional table information: table: small_bank_1
SQL: 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)
Find the checking balance of the accounts whose savings balance is higher than the average savings balance.
Additional table information: table: small_bank_1
SQL: 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))
What are the balances of checking accounts belonging to people with savings balances greater than the average savings balance?
Additional table information: table: small_bank_1
SQL: 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))
List all customers’ names in the alphabetical order.
Additional table information: table: small_bank_1
SQL: SELECT name FROM accounts ORDER BY name NULLS FIRST
What are the names of all the customers in alphabetical order?
Additional table information: table: small_bank_1
SQL: SELECT name FROM accounts ORDER BY name NULLS FIRST
Find the name of account that has the lowest total checking and saving balance.
Additional table information: table: small_bank_1
SQL: 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 NULLS FIRST LIMIT 1
What is the name corresponding to the accoung with the lowest sum of checking and savings balances?
Additional table information: table: small_bank_1
SQL: 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 NULLS FIRST LIMIT 1
Find the names and total checking and savings balances of accounts whose savings balance is higher than the average savings balance.
Additional table information: table: small_bank_1
SQL: 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?
Additional table information: table: small_bank_1
SQL: 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 name and checking balance of the account with the lowest savings balance.
Additional table information: table: small_bank_1
SQL: 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 NULLS FIRST LIMIT 1
What are the names and balances of checking accounts belonging to the customer with the lowest savings balance?
Additional table information: table: small_bank_1
SQL: 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 NULLS FIRST LIMIT 1
Find the number of checking accounts for each account name.
Additional table information: table: small_bank_1
SQL: 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?
Additional table information: table: small_bank_1
SQL: SELECT COUNT(*), T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid GROUP BY T1.name
Find the total saving balance for each account name.
Additional table information: table: small_bank_1
SQL: 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?
Additional table information: table: small_bank_1
SQL: 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 name of accounts whose checking balance is below the average checking balance.
Additional table information: table: small_bank_1
SQL: 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?
Additional table information: table: small_bank_1
SQL: 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 saving balance of the account with the highest checking balance.
Additional table information: table: small_bank_1
SQL: 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?
Additional table information: table: small_bank_1
SQL: 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 total checking and saving balance of all accounts sorted by the total balance in ascending order.
Additional table information: table: small_bank_1
SQL: SELECT T1.balance + T2.balance FROM checking AS T1 JOIN savings AS T2 ON T1.custid = T2.custid ORDER BY T1.balance + T2.balance NULLS FIRST
What is the sum of checking and savings balances for all customers, ordered by the total balance?
Additional table information: table: small_bank_1
SQL: SELECT T1.balance + T2.balance FROM checking AS T1 JOIN savings AS T2 ON T1.custid = T2.custid ORDER BY T1.balance + T2.balance NULLS FIRST
Find the name and checking balance of the account with the lowest saving balance.
Additional table information: table: small_bank_1
SQL: 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 NULLS FIRST LIMIT 1
What is the name and checking balance of the account which has the lowest savings balance?
Additional table information: table: small_bank_1
SQL: 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 NULLS FIRST LIMIT 1
Find the name, checking balance and saving balance of all accounts in the bank.
Additional table information: table: small_bank_1
SQL: 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?
Additional table information: table: small_bank_1
SQL: 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 savings balance of all accounts in the bank sorted by their total checking and savings balance in descending order.
Additional table information: table: small_bank_1
SQL: 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?
Additional table information: table: small_bank_1
SQL: 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 of accounts whose checking balance is higher than corresponding saving balance.
Additional table information: table: small_bank_1
SQL: 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?
Additional table information: table: small_bank_1
SQL: 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 and total checking and savings balance of the accounts whose savings balance is lower than corresponding checking balance.
Additional table information: table: small_bank_1
SQL: 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?
Additional table information: table: small_bank_1
SQL: 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 savings balance of the top 3 accounts with the highest saving balance sorted by savings balance in descending order.
Additional table information: table: small_bank_1
SQL: 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?
Additional table information: table: small_bank_1
SQL: 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
How many main stream browsers whose market share is at least 5 exist?
Additional table information: table: browser_web
SQL: SELECT COUNT(*) FROM browser WHERE market_share >= 5
List the name of browsers in descending order by market share.
Additional table information: table: browser_web
SQL: SELECT name FROM browser ORDER BY market_share DESC
List the ids, names and market shares of all browsers.
Additional table information: table: browser_web
SQL: SELECT id, name, market_share FROM browser
What is the maximum, minimum and average market share of the listed browsers?
Additional table information: table: browser_web
SQL: SELECT MAX(market_share), MIN(market_share), AVG(market_share) FROM browser
What is the id and market share of the browser Safari?
Additional table information: table: browser_web
SQL: SELECT id, market_share FROM browser WHERE name = 'Safari'
What are the name and os of web client accelerators that do not work with only a 'Broadband' type connection?
Additional table information: table: browser_web
SQL: SELECT name, operating_system FROM web_client_accelerator WHERE CONNECTION <> 'Broadband'
What is the name of the browser that became compatible with the accelerator 'CProxy' after year 1998 ?
Additional table information: table: browser_web
SQL: 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 are the ids and names of the web accelerators that are compatible with two or more browsers?
Additional table information: table: browser_web
SQL: 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 is the id and name of the browser that is compatible with the most web accelerators?
Additional table information: table: browser_web
SQL: 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
When did the web accelerator 'CACHEbox' and browser 'Internet Explorer' become compatible?
Additional table information: table: browser_web
SQL: 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'
How many different kinds of clients are supported by the web clients accelerators?
Additional table information: table: browser_web
SQL: SELECT COUNT(DISTINCT client) FROM web_client_accelerator
How many accelerators are not compatible with the browsers listed ?
Additional table information: table: browser_web
SQL: SELECT COUNT(*) FROM web_client_accelerator WHERE NOT id IN (SELECT accelerator_id FROM accelerator_compatible_browser)
What distinct accelerator names are compatible with the browswers that have market share higher than 15?
Additional table information: table: browser_web
SQL: 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
List the names of the browser that are compatible with both 'CACHEbox' and 'Fasterfox'.
Additional table information: table: browser_web
SQL: 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'
Show the accelerator names and supporting operating systems that are not compatible with the browser named 'Opera'.
Additional table information: table: browser_web
SQL: 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'
Which accelerator name contains substring 'Opera'?
Additional table information: table: browser_web
SQL: SELECT name FROM web_client_accelerator WHERE name LIKE '%Opera%'
Find the number of web accelerators used for each Operating system.
Additional table information: table: browser_web
SQL: SELECT Operating_system, COUNT(*) FROM web_client_accelerator GROUP BY Operating_system
give me names of all compatible browsers and accelerators in the descending order of compatible year
Additional table information: table: browser_web
SQL: 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
How many wrestlers are there?
Additional table information: table: wrestler
SQL: SELECT COUNT(*) FROM wrestler
Count the number of wrestlers.
Additional table information: table: wrestler
SQL: SELECT COUNT(*) FROM wrestler
List the names of wrestlers in descending order of days held.
Additional table information: table: wrestler
SQL: SELECT Name FROM wrestler ORDER BY Days_held DESC
What are the names of the wrestlers, ordered descending by days held?
Additional table information: table: wrestler
SQL: SELECT Name FROM wrestler ORDER BY Days_held DESC
What is the name of the wrestler with the fewest days held?
Additional table information: table: wrestler
SQL: SELECT Name FROM wrestler ORDER BY Days_held ASC NULLS FIRST LIMIT 1
Return the name of the wrestler who had the lowest number of days held.
Additional table information: table: wrestler
SQL: SELECT Name FROM wrestler ORDER BY Days_held ASC NULLS FIRST LIMIT 1
What are the distinct reigns of wrestlers whose location is not 'Tokyo,Japan' ?
Additional table information: table: wrestler
SQL: SELECT DISTINCT Reign FROM wrestler WHERE LOCATION <> 'Tokyo , Japan'
Give the different reigns of wrestlers who are not located in Tokyo, Japan.
Additional table information: table: wrestler
SQL: SELECT DISTINCT Reign FROM wrestler WHERE LOCATION <> 'Tokyo , Japan'
What are the names and location of the wrestlers?
Additional table information: table: wrestler
SQL: SELECT Name, LOCATION FROM wrestler
Give the names and locations of all wrestlers.
Additional table information: table: wrestler
SQL: SELECT Name, LOCATION FROM wrestler
What are the elimination moves of wrestlers whose team is 'Team Orton'?
Additional table information: table: wrestler
SQL: SELECT Elimination_Move FROM Elimination WHERE Team = 'Team Orton'
Return the elimination movies of wrestlers on Team Orton.
Additional table information: table: wrestler
SQL: SELECT Elimination_Move FROM Elimination WHERE Team = 'Team Orton'
What are the names of wrestlers and the elimination moves?
Additional table information: table: wrestler
SQL: 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.
Additional table information: table: wrestler
SQL: SELECT T2.Name, T1.Elimination_Move FROM elimination AS T1 JOIN wrestler AS T2 ON T1.Wrestler_ID = T2.Wrestler_ID
List the names of wrestlers and the teams in elimination in descending order of days held.
Additional table information: table: wrestler
SQL: 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?
Additional table information: table: wrestler
SQL: 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 time of elimination of the wrestlers with largest days held.
Additional table information: table: wrestler
SQL: 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?
Additional table information: table: wrestler
SQL: 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
Show times of elimination of wrestlers with days held more than 50.
Additional table information: table: wrestler
SQL: 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?
Additional table information: table: wrestler
SQL: SELECT T1.Time FROM elimination AS T1 JOIN wrestler AS T2 ON T1.Wrestler_ID = T2.Wrestler_ID WHERE T2.Days_held > 50
Show different teams in eliminations and the number of eliminations from each team.
Additional table information: table: wrestler
SQL: SELECT Team, COUNT(*) FROM elimination GROUP BY Team
How many eliminations did each team have?
Additional table information: table: wrestler
SQL: SELECT Team, COUNT(*) FROM elimination GROUP BY Team
Show teams that have suffered more than three eliminations.
Additional table information: table: wrestler
SQL: SELECT Team FROM elimination GROUP BY Team HAVING COUNT(*) > 3
Which teams had more than 3 eliminations?
Additional table information: table: wrestler
SQL: SELECT Team FROM elimination GROUP BY Team HAVING COUNT(*) > 3
Show the reign and days held of wrestlers.
Additional table information: table: wrestler
SQL: SELECT Reign, Days_held FROM wrestler
What are the reigns and days held of all wrestlers?
Additional table information: table: wrestler
SQL: SELECT Reign, Days_held FROM wrestler
What are the names of wrestlers days held less than 100?
Additional table information: table: wrestler
SQL: SELECT Name FROM wrestler WHERE Days_held < 100
Return the names of wrestlers with fewer than 100 days held.
Additional table information: table: wrestler
SQL: SELECT Name FROM wrestler WHERE Days_held < 100
Please show the most common reigns of wrestlers.
Additional table information: table: wrestler
SQL: SELECT Reign FROM wrestler GROUP BY Reign ORDER BY COUNT(*) DESC LIMIT 1
Which reign is the most common among wrestlers?
Additional table information: table: wrestler
SQL: SELECT Reign FROM wrestler GROUP BY Reign ORDER BY COUNT(*) DESC LIMIT 1
List the locations that are shared by more than two wrestlers.
Additional table information: table: wrestler
SQL: SELECT LOCATION FROM wrestler GROUP BY LOCATION HAVING COUNT(*) > 2
Which locations are shared by more than two wrestlers?
Additional table information: table: wrestler
SQL: SELECT LOCATION FROM wrestler GROUP BY LOCATION HAVING COUNT(*) > 2
List the names of wrestlers that have not been eliminated.
Additional table information: table: wrestler
SQL: SELECT Name FROM wrestler WHERE NOT Wrestler_ID IN (SELECT Wrestler_ID FROM elimination)
What are the names of wrestlers who have never been eliminated?
Additional table information: table: wrestler
SQL: SELECT Name FROM wrestler WHERE NOT Wrestler_ID IN (SELECT Wrestler_ID FROM elimination)
Show the teams that have both wrestlers eliminated by 'Orton' and wrestlers eliminated by 'Benjamin'.
Additional table information: table: wrestler
SQL: 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?
Additional table information: table: wrestler
SQL: SELECT Team FROM Elimination WHERE Eliminated_By = 'Orton' INTERSECT SELECT Team FROM Elimination WHERE Eliminated_By = 'Benjamin'
What is the number of distinct teams that suffer elimination?
Additional table information: table: wrestler
SQL: SELECT COUNT(DISTINCT team) FROM elimination
How many different teams have had eliminated wrestlers?
Additional table information: table: wrestler
SQL: SELECT COUNT(DISTINCT team) FROM elimination
Show the times of elimination by 'Punk' or 'Orton'.
Additional table information: table: wrestler
SQL: 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?
Additional table information: table: wrestler
SQL: SELECT TIME FROM elimination WHERE Eliminated_By = 'Punk' OR Eliminated_By = 'Orton'
How many schools are there?
Additional table information: table: school_finance
SQL: SELECT COUNT(*) FROM school
Count the number of schools.
Additional table information: table: school_finance
SQL: SELECT COUNT(*) FROM school
Show all school names in alphabetical order.
Additional table information: table: school_finance
SQL: SELECT school_name FROM school ORDER BY school_name NULLS FIRST
List the name, location, mascot for all schools.
Additional table information: table: school_finance
SQL: SELECT school_name, LOCATION, mascot FROM school
What are the total and average enrollment of all schools?
Additional table information: table: school_finance
SQL: SELECT SUM(enrollment), AVG(enrollment) FROM school
What are the mascots for schools with enrollments above the average?
Additional table information: table: school_finance
SQL: SELECT mascot FROM school WHERE enrollment > (SELECT AVG(enrollment) FROM school)
List the name of the school with the smallest enrollment.
Additional table information: table: school_finance
SQL: SELECT school_name FROM school ORDER BY enrollment NULLS FIRST LIMIT 1
Show the average, maximum, minimum enrollment of all schools.
Additional table information: table: school_finance
SQL: SELECT AVG(enrollment), MAX(enrollment), MIN(enrollment) FROM school
Show each county along with the number of schools and total enrollment in each county.
Additional table information: table: school_finance
SQL: SELECT county, COUNT(*), SUM(enrollment) FROM school GROUP BY county
How many donors have endowment for school named 'Glenn'?
Additional table information: table: school_finance
SQL: 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'
List each donator name and the amount of endowment in descending order of the amount of endowment.
Additional table information: table: school_finance
SQL: SELECT donator_name, SUM(amount) FROM endowment GROUP BY donator_name ORDER BY SUM(amount) DESC
List the names of the schools without any endowment.
Additional table information: table: school_finance
SQL: SELECT school_name FROM school WHERE NOT school_id IN (SELECT school_id FROM endowment)
List all the names of schools with an endowment amount smaller than or equal to 10.
Additional table information: table: school_finance
SQL: 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
Show the names of donors who donated to both school 'Glenn' and 'Triton.'
Additional table information: table: school_finance
SQL: 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 all the donors except those whose donation amount less than 9.
Additional table information: table: school_finance
SQL: SELECT donator_name FROM endowment EXCEPT SELECT donator_name FROM endowment WHERE amount < 9
List the amount and donor name for the largest amount of donation.
Additional table information: table: school_finance
SQL: SELECT amount, donator_name FROM endowment ORDER BY amount DESC LIMIT 1
How many budgets are above 3000 in year 2001 or before?
Additional table information: table: school_finance
SQL: SELECT COUNT(*) FROM budget WHERE budgeted > 3000 AND YEAR <= 2001
Count the number of budgets in year 2001 or before whose budgeted amount is greater than 3000
Additional table information: table: school_finance
SQL: SELECT COUNT(*) FROM budget WHERE budgeted > 3000 AND YEAR <= 2001
Show each school name, its budgeted amount, and invested amount in year 2002 or after.
Additional table information: table: school_finance
SQL: SELECT T2.school_name, T1.budgeted, T1.invested FROM budget AS T1 JOIN school AS T2 ON T1.school_id = T2.school_id WHERE T1.year >= 2002
Show all donor names.
Additional table information: table: school_finance
SQL: SELECT DISTINCT donator_name FROM endowment
How many budget record has a budget amount smaller than the invested amount?
Additional table information: table: school_finance
SQL: SELECT COUNT(*) FROM budget WHERE budgeted < invested
What is the total budget amount for school 'Glenn' in all years?
Additional table information: table: school_finance
SQL: SELECT SUM(T1.budgeted) FROM budget AS T1 JOIN school AS T2 ON T1.school_id = T2.school_id WHERE T2.school_name = 'Glenn'
Show the names of schools with a total budget amount greater than 100 or a total endowment greater than 10.
Additional table information: table: school_finance
SQL: SELECT T2.school_name FROM budget AS T1 JOIN school AS T2 ON T1.school_id = T2.school_id JOIN endowment AS T3 ON T2.school_id = T3.school_id GROUP BY T2.school_name HAVING SUM(T1.budgeted) > 100 OR SUM(T3.amount) > 10
Find the names of schools that have more than one donator with donation amount above 8.5.
Additional table information: table: school_finance
SQL: SELECT T2.School_name FROM endowment AS T1 JOIN school AS T2 ON T1.school_id = T2.school_id WHERE T1.amount > 8.5 GROUP BY T1.school_id HAVING COUNT(*) > 1
Find the number of schools that have more than one donator whose donation amount is less than 8.5.
Additional table information: table: school_finance
SQL: SELECT COUNT(*) FROM (SELECT * FROM endowment WHERE amount > 8.5 GROUP BY school_id HAVING COUNT(*) > 1)
List the name, IHSAA Football Class, and Mascot of the schools that have more than 6000 of budgeted amount or were founded before 2003, in the order of percent of total invested budget and total budgeted budget.
Additional table information: table: school_finance
SQL: SELECT T1.School_name, T1.Mascot, T1.IHSAA_Football_Class FROM school AS T1 JOIN budget AS T2 ON T1.school_id = T2.school_id WHERE Budgeted > 6000 OR YEAR < 2003 ORDER BY T2.total_budget_percent_invested NULLS FIRST, T2.total_budget_percent_budgeted NULLS FIRST
How many buildings are there?
Additional table information: table: protein_institute
SQL: SELECT COUNT(*) FROM building
Show the name, street address, and number of floors for all buildings ordered by the number of floors.
Additional table information: table: protein_institute
SQL: SELECT name, street_address, floors FROM building ORDER BY floors NULLS FIRST
What is the name of the tallest building?
Additional table information: table: protein_institute
SQL: SELECT name FROM building ORDER BY height_feet DESC LIMIT 1
What are the average, maximum, and minimum number of floors for all buildings?
Additional table information: table: protein_institute
SQL: SELECT AVG(floors), MAX(floors), MIN(floors) FROM building
Show the number of buildings with a height above the average or a number of floors above the average.
Additional table information: table: protein_institute
SQL: SELECT COUNT(*) FROM building WHERE height_feet > (SELECT AVG(height_feet) FROM building) OR floors > (SELECT AVG(floors) FROM building)
List the names of buildings with at least 200 feet of height and with at least 20 floors.
Additional table information: table: protein_institute
SQL: SELECT name FROM building WHERE height_feet >= 200 AND floors >= 20
Show the names and locations of institutions that are founded after 1990 and have the type 'Private'.
Additional table information: table: protein_institute
SQL: SELECT institution, LOCATION FROM institution WHERE founded > 1990 AND TYPE = 'Private'
Show institution types, along with the number of institutions and total enrollment for each type.
Additional table information: table: protein_institute
SQL: SELECT TYPE, COUNT(*), SUM(enrollment) FROM institution GROUP BY TYPE
Show the institution type with the largest number of institutions.
Additional table information: table: protein_institute
SQL: SELECT TYPE FROM institution GROUP BY TYPE ORDER BY COUNT(*) DESC LIMIT 1
Show the institution type with an institution founded after 1990 and an institution with at least 1000 enrollment.
Additional table information: table: protein_institute
SQL: SELECT TYPE FROM institution WHERE founded > 1990 AND enrollment >= 1000
Show the name of buildings that do not have any institution.
Additional table information: table: protein_institute
SQL: SELECT name FROM building WHERE NOT building_id IN (SELECT building_id FROM institution)
Show the names of buildings except for those having an institution founded in 2003.
Additional table information: table: protein_institute
SQL: SELECT name FROM building EXCEPT SELECT T1.name FROM building AS T1 JOIN institution AS T2 ON T1.building_id = T2.building_id WHERE T2.founded = 2003
For each building, show the name of the building and the number of institutions in it.
Additional table information: table: protein_institute
SQL: SELECT T1.name, COUNT(*) FROM building AS T1 JOIN institution AS T2 ON T1.building_id = T2.building_id GROUP BY T1.building_id
Show the names and heights of buildings with at least two institutions founded after 1880.
Additional table information: table: protein_institute
SQL: SELECT T1.name, T1.height_feet FROM building AS T1 JOIN institution AS T2 ON T1.building_id = T2.building_id WHERE T2.founded > 1880 GROUP BY T1.building_id HAVING COUNT(*) >= 2
Show all the distinct institution types.
Additional table information: table: protein_institute
SQL: SELECT DISTINCT TYPE FROM institution
Show institution names along with the number of proteins for each institution.
Additional table information: table: protein_institute
SQL: SELECT T1.institution, COUNT(*) FROM institution AS T1 JOIN protein AS T2 ON T1.institution_id = T2.institution_id GROUP BY T1.institution_id
How many proteins are associated with an institution founded after 1880 or an institution with type 'Private'?
Additional table information: table: protein_institute
SQL: SELECT COUNT(*) FROM institution AS T1 JOIN protein AS T2 ON T1.institution_id = T2.institution_id WHERE T1.founded > 1880 OR T1.type = 'Private'
Show the protein name and the institution name.
Additional table information: table: protein_institute
SQL: SELECT T2.protein_name, T1.institution FROM institution AS T1 JOIN protein AS T2 ON T1.institution_id = T2.institution_id
How many proteins are associated with an institution in a building with at least 20 floors?
Additional table information: table: protein_institute
SQL: SELECT COUNT(*) FROM institution AS T1 JOIN protein AS T2 ON T1.institution_id = T2.institution_id JOIN building AS T3 ON T3.building_id = T1.building_id WHERE T3.floors >= 20
How many institutions do not have an associated protein in our record?
Additional table information: table: protein_institute
SQL: SELECT COUNT(*) FROM institution WHERE NOT institution_id IN (SELECT institution_id FROM protein)
Show all the locations where no cinema has capacity over 800.
Additional table information: table: cinema
SQL: SELECT LOCATION FROM cinema EXCEPT SELECT LOCATION FROM cinema WHERE capacity > 800
Show all the locations where some cinemas were opened in both year 2010 and year 2011.
Additional table information: table: cinema
SQL: SELECT LOCATION FROM cinema WHERE openning_year = 2010 INTERSECT SELECT LOCATION FROM cinema WHERE openning_year = 2011
How many cinema do we have?
Additional table information: table: cinema
SQL: SELECT COUNT(*) FROM cinema
Count the number of cinemas.
Additional table information: table: cinema
SQL: SELECT COUNT(*) FROM cinema
Show name, opening year, and capacity for each cinema.
Additional table information: table: cinema
SQL: SELECT name, openning_year, capacity FROM cinema
Show the cinema name and location for cinemas with capacity above average.
Additional table information: table: cinema
SQL: SELECT name, LOCATION FROM cinema WHERE capacity > (SELECT AVG(capacity) FROM cinema)
What are all the locations with a cinema?
Additional table information: table: cinema
SQL: SELECT DISTINCT LOCATION FROM cinema
Find the distinct locations that has a cinema.
Additional table information: table: cinema
SQL: SELECT DISTINCT LOCATION FROM cinema
Show all the cinema names and opening years in descending order of opening year.
Additional table information: table: cinema
SQL: SELECT name, openning_year FROM cinema ORDER BY openning_year DESC
What are the name and location of the cinema with the largest capacity?
Additional table information: table: cinema
SQL: SELECT name, LOCATION FROM cinema ORDER BY capacity DESC LIMIT 1
Show the average, minimum, and maximum capacity for all the cinemas opened in year 2011 or later.
Additional table information: table: cinema
SQL: SELECT AVG(capacity), MIN(capacity), MAX(capacity) FROM cinema WHERE openning_year >= 2011
Show each location and the number of cinemas there.
Additional table information: table: cinema
SQL: SELECT LOCATION, COUNT(*) FROM cinema GROUP BY LOCATION
What is the location with the most cinemas opened in year 2010 or later?
Additional table information: table: cinema
SQL: SELECT LOCATION FROM cinema WHERE openning_year >= 2010 GROUP BY LOCATION ORDER BY COUNT(*) DESC LIMIT 1