Question: Show the names of players coached by the rank 1 coach.

player : player_id (number) , sponsor_name (text) , player_name (text) , gender (text) , residence (text) , occupation (text) , votes (number) , rank (text) | club : club_id (number) , club_name (text) , region (text) , start_year (number) | coach : coach_id (number) , coach_name (text) , gender (text) , club_id (number) , rank (number) | player_coach : player_id (number) , coach_id (number) , starting_year (number) | match_result : rank (number) , club_id (number) , gold (number) , big_silver (number) , small_silver (number) , bronze (number) , points (number)

player : player_name (text) , player_id (number) , rank (text) | coach : coach_id (number) , rank (number) | player_coach : coach_id (number) , player_id (number)


Question: Show the names and genders of players with a coach starting after 2011.

player : player_id (number) , sponsor_name (text) , player_name (text) , gender (text) , residence (text) , occupation (text) , votes (number) , rank (text) | club : club_id (number) , club_name (text) , region (text) , start_year (number) | coach : coach_id (number) , coach_name (text) , gender (text) , club_id (number) , rank (number) | player_coach : player_id (number) , coach_id (number) , starting_year (number) | match_result : rank (number) , club_id (number) , gold (number) , big_silver (number) , small_silver (number) , bronze (number) , points (number)

player : player_name (text) , gender (text) , player_id (number) | coach : gender (text) , coach_id (number) | player_coach : coach_id (number) , player_id (number) , starting_year (number)


Question: Show the names of players and names of their coaches in descending order of the votes of players.

player : player_id (number) , sponsor_name (text) , player_name (text) , gender (text) , residence (text) , occupation (text) , votes (number) , rank (text) | club : club_id (number) , club_name (text) , region (text) , start_year (number) | coach : coach_id (number) , coach_name (text) , gender (text) , club_id (number) , rank (number) | player_coach : player_id (number) , coach_id (number) , starting_year (number) | match_result : rank (number) , club_id (number) , gold (number) , big_silver (number) , small_silver (number) , bronze (number) , points (number)

player : player_name (text) , player_id (number) , votes (number) | coach : coach_name (text) , coach_id (number) | player_coach : coach_id (number) , player_id (number)


Question: List the names of players that do not have coaches.

player : player_id (number) , sponsor_name (text) , player_name (text) , gender (text) , residence (text) , occupation (text) , votes (number) , rank (text) | club : club_id (number) , club_name (text) , region (text) , start_year (number) | coach : coach_id (number) , coach_name (text) , gender (text) , club_id (number) , rank (number) | player_coach : player_id (number) , coach_id (number) , starting_year (number) | match_result : rank (number) , club_id (number) , gold (number) , big_silver (number) , small_silver (number) , bronze (number) , points (number)

player : player_name (text) , player_id (number) | player_coach : player_id (number)


Question: Show the residences that have both a player of gender "M" and a player of gender "F".

player : player_id (number) , sponsor_name (text) , player_name (text) , gender (text) , residence (text) , occupation (text) , votes (number) , rank (text) | club : club_id (number) , club_name (text) , region (text) , start_year (number) | coach : coach_id (number) , coach_name (text) , gender (text) , club_id (number) , rank (number) | player_coach : player_id (number) , coach_id (number) , starting_year (number) | match_result : rank (number) , club_id (number) , gold (number) , big_silver (number) , small_silver (number) , bronze (number) , points (number)

player : residence (text) , gender (text)


Question: How many coaches does each club has? List the club id, name and the number of coaches.

player : player_id (number) , sponsor_name (text) , player_name (text) , gender (text) , residence (text) , occupation (text) , votes (number) , rank (text) | club : club_id (number) , club_name (text) , region (text) , start_year (number) | coach : coach_id (number) , coach_name (text) , gender (text) , club_id (number) , rank (number) | player_coach : player_id (number) , coach_id (number) , starting_year (number) | match_result : rank (number) , club_id (number) , gold (number) , big_silver (number) , small_silver (number) , bronze (number) , points (number)

club : club_id (number) , club_name (text) | coach : club_id (number) , coach_id (number)


Question: How many gold medals has the club with the most coaches won?

player : player_id (number) , sponsor_name (text) , player_name (text) , gender (text) , residence (text) , occupation (text) , votes (number) , rank (text) | club : club_id (number) , club_name (text) , region (text) , start_year (number) | coach : coach_id (number) , coach_name (text) , gender (text) , club_id (number) , rank (number) | player_coach : player_id (number) , coach_id (number) , starting_year (number) | match_result : rank (number) , club_id (number) , gold (number) , big_silver (number) , small_silver (number) , bronze (number) , points (number)

coach : club_id (number) , coach_id (number) | match_result : club_id (number) , gold (number) , rank (text)


Question: How many gymnasts are there?

gymnast : gymnast_id (number) , floor_exercise_points (number) , pommel_horse_points (number) , rings_points (number) , vault_points (number) , parallel_bars_points (number) , horizontal_bar_points (number) , total_points (number) | people : people_id (number) , name (text) , age (number) , height (number) , hometown (text)


Question: Count the number of gymnasts.

gymnast : gymnast_id (number) , floor_exercise_points (number) , pommel_horse_points (number) , rings_points (number) , vault_points (number) , parallel_bars_points (number) , horizontal_bar_points (number) , total_points (number) | people : people_id (number) , name (text) , age (number) , height (number) , hometown (text)


Question: List the total points of gymnasts in descending order.

gymnast : gymnast_id (number) , floor_exercise_points (number) , pommel_horse_points (number) , rings_points (number) , vault_points (number) , parallel_bars_points (number) , horizontal_bar_points (number) , total_points (number) | people : people_id (number) , name (text) , age (number) , height (number) , hometown (text)


Question: What are the total points for all gymnasts, ordered by total points descending?

gymnast : gymnast_id (number) , floor_exercise_points (number) , pommel_horse_points (number) , rings_points (number) , vault_points (number) , parallel_bars_points (number) , horizontal_bar_points (number) , total_points (number) | people : people_id (number) , name (text) , age (number) , height (number) , hometown (text)


Question: List the total points of gymnasts in descending order of floor exercise points.

gymnast : gymnast_id (number) , floor_exercise_points (number) , pommel_horse_points (number) , rings_points (number) , vault_points (number) , parallel_bars_points (number) , horizontal_bar_points (number) , total_points (number) | people : people_id (number) , name (text) , age (number) , height (number) , hometown (text)

gymnast : total_points (number) , floor_exercise_points (number)


Question: What are the total points of gymnasts, ordered by their floor exercise points descending?

gymnast : gymnast_id (number) , floor_exercise_points (number) , pommel_horse_points (number) , rings_points (number) , vault_points (number) , parallel_bars_points (number) , horizontal_bar_points (number) , total_points (number) | people : people_id (number) , name (text) , age (number) , height (number) , hometown (text)

gymnast : total_points (number) , floor_exercise_points (number)


Question: What is the average horizontal bar points for all gymnasts?

gymnast : gymnast_id (number) , floor_exercise_points (number) , pommel_horse_points (number) , rings_points (number) , vault_points (number) , parallel_bars_points (number) , horizontal_bar_points (number) , total_points (number) | people : people_id (number) , name (text) , age (number) , height (number) , hometown (text)

gymnast : horizontal_bar_points (number)


Question: Return the average horizontal bar points across all gymnasts.

gymnast : gymnast_id (number) , floor_exercise_points (number) , pommel_horse_points (number) , rings_points (number) , vault_points (number) , parallel_bars_points (number) , horizontal_bar_points (number) , total_points (number) | people : people_id (number) , name (text) , age (number) , height (number) , hometown (text)

gymnast : horizontal_bar_points (number)


Question: What are the names of people in ascending alphabetical order?

gymnast : gymnast_id (number) , floor_exercise_points (number) , pommel_horse_points (number) , rings_points (number) , vault_points (number) , parallel_bars_points (number) , horizontal_bar_points (number) , total_points (number) | people : people_id (number) , name (text) , age (number) , height (number) , hometown (text)


Question: Return the names of people, ordered alphabetically.

gymnast : gymnast_id (number) , floor_exercise_points (number) , pommel_horse_points (number) , rings_points (number) , vault_points (number) , parallel_bars_points (number) , horizontal_bar_points (number) , total_points (number) | people : people_id (number) , name (text) , age (number) , height (number) , hometown (text)


Question: What are the names of gymnasts?

gymnast : gymnast_id (number) , floor_exercise_points (number) , pommel_horse_points (number) , rings_points (number) , vault_points (number) , parallel_bars_points (number) , horizontal_bar_points (number) , total_points (number) | people : people_id (number) , name (text) , age (number) , height (number) , hometown (text)

people : name (text) , people_id (number) | gymnast : gymnast_id (number)


Question: Return the names of the gymnasts.

gymnast : gymnast_id (number) , floor_exercise_points (number) , pommel_horse_points (number) , rings_points (number) , vault_points (number) , parallel_bars_points (number) , horizontal_bar_points (number) , total_points (number) | people : people_id (number) , name (text) , age (number) , height (number) , hometown (text)

people : name (text) , people_id (number) | gymnast : gymnast_id (number)


Question: What are the names of gymnasts whose hometown is not "Santo Domingo"?

gymnast : gymnast_id (number) , floor_exercise_points (number) , pommel_horse_points (number) , rings_points (number) , vault_points (number) , parallel_bars_points (number) , horizontal_bar_points (number) , total_points (number) | people : people_id (number) , name (text) , age (number) , height (number) , hometown (text)

people : name (text) , people_id (number) , hometown (text) | gymnast : gymnast_id (number)


Question: Return the names of gymnasts who did not grow up in Santo Domingo.

gymnast : gymnast_id (number) , floor_exercise_points (number) , pommel_horse_points (number) , rings_points (number) , vault_points (number) , parallel_bars_points (number) , horizontal_bar_points (number) , total_points (number) | people : people_id (number) , name (text) , age (number) , height (number) , hometown (text)

people : name (text) , people_id (number) , hometown (text) | gymnast : gymnast_id (number)


Question: What is the age of the tallest person?

gymnast : gymnast_id (number) , floor_exercise_points (number) , pommel_horse_points (number) , rings_points (number) , vault_points (number) , parallel_bars_points (number) , horizontal_bar_points (number) , total_points (number) | people : people_id (number) , name (text) , age (number) , height (number) , hometown (text)


Question: Return the age of the person with the greatest height.

gymnast : gymnast_id (number) , floor_exercise_points (number) , pommel_horse_points (number) , rings_points (number) , vault_points (number) , parallel_bars_points (number) , horizontal_bar_points (number) , total_points (number) | people : people_id (number) , name (text) , age (number) , height (number) , hometown (text)


Question: List the names of the top 5 oldest people.

gymnast : gymnast_id (number) , floor_exercise_points (number) , pommel_horse_points (number) , rings_points (number) , vault_points (number) , parallel_bars_points (number) , horizontal_bar_points (number) , total_points (number) | people : people_id (number) , name (text) , age (number) , height (number) , hometown (text)


Question: What are the names of the five oldest people?

gymnast : gymnast_id (number) , floor_exercise_points (number) , pommel_horse_points (number) , rings_points (number) , vault_points (number) , parallel_bars_points (number) , horizontal_bar_points (number) , total_points (number) | people : people_id (number) , name (text) , age (number) , height (number) , hometown (text)


Question: What is the total point count of the youngest gymnast?

gymnast : gymnast_id (number) , floor_exercise_points (number) , pommel_horse_points (number) , rings_points (number) , vault_points (number) , parallel_bars_points (number) , horizontal_bar_points (number) , total_points (number) | people : people_id (number) , name (text) , age (number) , height (number) , hometown (text)

gymnast : total_points (number) , gymnast_id (number) | people : people_id (number) , age (number)


Question: Return the total points of the gymnast with the lowest age.

gymnast : gymnast_id (number) , floor_exercise_points (number) , pommel_horse_points (number) , rings_points (number) , vault_points (number) , parallel_bars_points (number) , horizontal_bar_points (number) , total_points (number) | people : people_id (number) , name (text) , age (number) , height (number) , hometown (text)

gymnast : total_points (number) , gymnast_id (number) | people : people_id (number) , age (number)


Question: What is the average age of all gymnasts?

gymnast : gymnast_id (number) , floor_exercise_points (number) , pommel_horse_points (number) , rings_points (number) , vault_points (number) , parallel_bars_points (number) , horizontal_bar_points (number) , total_points (number) | people : people_id (number) , name (text) , age (number) , height (number) , hometown (text)

people : age (number) , people_id (number) | gymnast : gymnast_id (number)


Question: Return the average age across all gymnasts.

gymnast : gymnast_id (number) , floor_exercise_points (number) , pommel_horse_points (number) , rings_points (number) , vault_points (number) , parallel_bars_points (number) , horizontal_bar_points (number) , total_points (number) | people : people_id (number) , name (text) , age (number) , height (number) , hometown (text)

people : age (number) , people_id (number) | gymnast : gymnast_id (number)


Question: What are the distinct hometowns of gymnasts with total points more than 57.5?

gymnast : gymnast_id (number) , floor_exercise_points (number) , pommel_horse_points (number) , rings_points (number) , vault_points (number) , parallel_bars_points (number) , horizontal_bar_points (number) , total_points (number) | people : people_id (number) , name (text) , age (number) , height (number) , hometown (text)

people : hometown (text) , people_id (number) | gymnast : gymnast_id (number) , total_points (number)


Question: Give the different hometowns of gymnasts that have a total point score of above 57.5.

gymnast : gymnast_id (number) , floor_exercise_points (number) , pommel_horse_points (number) , rings_points (number) , vault_points (number) , parallel_bars_points (number) , horizontal_bar_points (number) , total_points (number) | people : people_id (number) , name (text) , age (number) , height (number) , hometown (text)

people : hometown (text) , people_id (number) | gymnast : gymnast_id (number) , total_points (number)


Question: What are the hometowns of gymnasts and the corresponding number of gymnasts?

gymnast : gymnast_id (number) , floor_exercise_points (number) , pommel_horse_points (number) , rings_points (number) , vault_points (number) , parallel_bars_points (number) , horizontal_bar_points (number) , total_points (number) | people : people_id (number) , name (text) , age (number) , height (number) , hometown (text)

people : hometown (text) , people_id (number) | gymnast : gymnast_id (number)


Question: How many gymnasts are from each hometown?

gymnast : gymnast_id (number) , floor_exercise_points (number) , pommel_horse_points (number) , rings_points (number) , vault_points (number) , parallel_bars_points (number) , horizontal_bar_points (number) , total_points (number) | people : people_id (number) , name (text) , age (number) , height (number) , hometown (text)

people : hometown (text) , people_id (number) | gymnast : gymnast_id (number)


Question: What is the most common hometown of gymnasts?

gymnast : gymnast_id (number) , floor_exercise_points (number) , pommel_horse_points (number) , rings_points (number) , vault_points (number) , parallel_bars_points (number) , horizontal_bar_points (number) , total_points (number) | people : people_id (number) , name (text) , age (number) , height (number) , hometown (text)

people : hometown (text) , people_id (number) | gymnast : gymnast_id (number)


Question: Return the hometown that is most common among gymnasts.

gymnast : gymnast_id (number) , floor_exercise_points (number) , pommel_horse_points (number) , rings_points (number) , vault_points (number) , parallel_bars_points (number) , horizontal_bar_points (number) , total_points (number) | people : people_id (number) , name (text) , age (number) , height (number) , hometown (text)

people : hometown (text) , people_id (number) | gymnast : gymnast_id (number)


Question: What are the hometowns that are shared by at least two gymnasts?

gymnast : gymnast_id (number) , floor_exercise_points (number) , pommel_horse_points (number) , rings_points (number) , vault_points (number) , parallel_bars_points (number) , horizontal_bar_points (number) , total_points (number) | people : people_id (number) , name (text) , age (number) , height (number) , hometown (text)

people : hometown (text) , people_id (number) | gymnast : gymnast_id (number)


Question: Give the hometowns from which two or more gymnasts are from.

gymnast : gymnast_id (number) , floor_exercise_points (number) , pommel_horse_points (number) , rings_points (number) , vault_points (number) , parallel_bars_points (number) , horizontal_bar_points (number) , total_points (number) | people : people_id (number) , name (text) , age (number) , height (number) , hometown (text)

people : hometown (text) , people_id (number) | gymnast : gymnast_id (number)


Question: List the names of gymnasts in ascending order by their heights.

gymnast : gymnast_id (number) , floor_exercise_points (number) , pommel_horse_points (number) , rings_points (number) , vault_points (number) , parallel_bars_points (number) , horizontal_bar_points (number) , total_points (number) | people : people_id (number) , name (text) , age (number) , height (number) , hometown (text)

people : name (text) , people_id (number) , height (number) | gymnast : gymnast_id (number)


Question: What are the names of gymnasts, ordered by their heights ascending?

gymnast : gymnast_id (number) , floor_exercise_points (number) , pommel_horse_points (number) , rings_points (number) , vault_points (number) , parallel_bars_points (number) , horizontal_bar_points (number) , total_points (number) | people : people_id (number) , name (text) , age (number) , height (number) , hometown (text)

people : name (text) , people_id (number) , height (number) | gymnast : gymnast_id (number)


Question: List the distinct hometowns that are not associated with any gymnast.

gymnast : gymnast_id (number) , floor_exercise_points (number) , pommel_horse_points (number) , rings_points (number) , vault_points (number) , parallel_bars_points (number) , horizontal_bar_points (number) , total_points (number) | people : people_id (number) , name (text) , age (number) , height (number) , hometown (text)

people : hometown (text) , people_id (number) | gymnast : gymnast_id (number)


Question: From which hometowns did no gymnasts come from?

gymnast : gymnast_id (number) , floor_exercise_points (number) , pommel_horse_points (number) , rings_points (number) , vault_points (number) , parallel_bars_points (number) , horizontal_bar_points (number) , total_points (number) | people : people_id (number) , name (text) , age (number) , height (number) , hometown (text)

people : hometown (text) , people_id (number) | gymnast : gymnast_id (number)


Question: Show the hometowns shared by people older than 23 and younger than 20.

gymnast : gymnast_id (number) , floor_exercise_points (number) , pommel_horse_points (number) , rings_points (number) , vault_points (number) , parallel_bars_points (number) , horizontal_bar_points (number) , total_points (number) | people : people_id (number) , name (text) , age (number) , height (number) , hometown (text)


Question: From which hometowns did both people older than 23 and younger than 20 come from?

gymnast : gymnast_id (number) , floor_exercise_points (number) , pommel_horse_points (number) , rings_points (number) , vault_points (number) , parallel_bars_points (number) , horizontal_bar_points (number) , total_points (number) | people : people_id (number) , name (text) , age (number) , height (number) , hometown (text)


Question: How many distinct hometowns did these people have?

gymnast : gymnast_id (number) , floor_exercise_points (number) , pommel_horse_points (number) , rings_points (number) , vault_points (number) , parallel_bars_points (number) , horizontal_bar_points (number) , total_points (number) | people : people_id (number) , name (text) , age (number) , height (number) , hometown (text)


Question: Count the number of different hometowns of these people.

gymnast : gymnast_id (number) , floor_exercise_points (number) , pommel_horse_points (number) , rings_points (number) , vault_points (number) , parallel_bars_points (number) , horizontal_bar_points (number) , total_points (number) | people : people_id (number) , name (text) , age (number) , height (number) , hometown (text)


Question: Show the ages of gymnasts in descending order of total points.

gymnast : gymnast_id (number) , floor_exercise_points (number) , pommel_horse_points (number) , rings_points (number) , vault_points (number) , parallel_bars_points (number) , horizontal_bar_points (number) , total_points (number) | people : people_id (number) , name (text) , age (number) , height (number) , hometown (text)

people : age (number) , people_id (number) | gymnast : gymnast_id (number) , total_points (number)


Question: What are the ages of the gymnasts, ordered descending by their total points?

gymnast : gymnast_id (number) , floor_exercise_points (number) , pommel_horse_points (number) , rings_points (number) , vault_points (number) , parallel_bars_points (number) , horizontal_bar_points (number) , total_points (number) | people : people_id (number) , name (text) , age (number) , height (number) , hometown (text)

people : age (number) , people_id (number) | gymnast : gymnast_id (number) , total_points (number)


Question: Find the total savings balance of all accounts except the account with name ‘Brown’.

accounts : custid (number) , name (text) | savings : custid (number) , balance (number) | checking : custid (number) , balance (number)

savings : balance (number) , custid (number) | accounts : custid (number) , name (text)


Question: What is the total balance of savings accounts not belonging to someone with the name Brown?

accounts : custid (number) , name (text) | savings : custid (number) , balance (number) | checking : custid (number) , balance (number)

savings : balance (number) , custid (number) | accounts : custid (number) , name (text)


Question: How many accounts are there in total?

accounts : custid (number) , name (text) | savings : custid (number) , balance (number) | checking : custid (number) , balance (number)


Question: Count the number of accounts.

accounts : custid (number) , name (text) | savings : custid (number) , balance (number) | checking : custid (number) , balance (number)


Question: What is the total checking balance in all accounts?

accounts : custid (number) , name (text) | savings : custid (number) , balance (number) | checking : custid (number) , balance (number)


Question: Find the total balance across checking accounts.

accounts : custid (number) , name (text) | savings : custid (number) , balance (number) | checking : custid (number) , balance (number)


Question: Find the average checking balance.

accounts : custid (number) , name (text) | savings : custid (number) , balance (number) | checking : custid (number) , balance (number)


Question: What is the average balance in checking accounts?

accounts : custid (number) , name (text) | savings : custid (number) , balance (number) | checking : custid (number) , balance (number)


Question: How many accounts have a savings balance above the average savings balance?

accounts : custid (number) , name (text) | savings : custid (number) , balance (number) | checking : custid (number) , balance (number)

savings : balance (number) , custid (number)


Question: Find the number of accounts with a savings balance that is higher than the average savings balance.

accounts : custid (number) , name (text) | savings : custid (number) , balance (number) | checking : custid (number) , balance (number)

savings : balance (number) , custid (number)


Question: Find the name and id of accounts whose checking balance is below the maximum checking balance.

accounts : custid (number) , name (text) | savings : custid (number) , balance (number) | checking : custid (number) , balance (number)

accounts : custid (number) , name (text) | checking : custid (number) , balance (number)


Question: What are the customer id and name corresponding to accounts with a checking balance less than the largest checking balance?

accounts : custid (number) , name (text) | savings : custid (number) , balance (number) | checking : custid (number) , balance (number)

accounts : custid (number) , name (text) | checking : custid (number) , balance (number)


Question: What is the checking balance of the account whose owner’s name contains the substring ‘ee’?

accounts : custid (number) , name (text) | savings : custid (number) , balance (number) | checking : custid (number) , balance (number)

checking : balance (number) , custid (number) | accounts : custid (number) , name (text)


Question: Find the balance of the checking account belonging to an owner whose name contains 'ee'.

accounts : custid (number) , name (text) | savings : custid (number) , balance (number) | checking : custid (number) , balance (number)

checking : balance (number) , custid (number) | accounts : custid (number) , name (text)


Question: Find the checking balance and saving balance in the Brown’s account.

accounts : custid (number) , name (text) | savings : custid (number) , balance (number) | checking : custid (number) , balance (number)

savings : balance (number) , custid (number) | checking : balance (number) , custid (number) | accounts : custid (number) , name (text)


Question: What are the checking and savings balances in accounts belonging to Brown?

accounts : custid (number) , name (text) | savings : custid (number) , balance (number) | checking : custid (number) , balance (number)

savings : balance (number) , custid (number) | checking : balance (number) , custid (number) | accounts : custid (number) , name (text)


Question: Find the names of accounts whose checking balance is above the average checking balance, but savings balance is below the average savings balance.

accounts : custid (number) , name (text) | savings : custid (number) , balance (number) | checking : custid (number) , balance (number)

accounts : name (text) , custid (number) | savings : custid (number) , balance (number) | checking : custid (number) , balance (number)


Question: What are the names of accounts with checking balances greater than the average checking balance and savings balances below the average savings balance?

accounts : custid (number) , name (text) | savings : custid (number) , balance (number) | checking : custid (number) , balance (number)

accounts : name (text) , custid (number) | savings : custid (number) , balance (number) | checking : custid (number) , balance (number)


Question: Find the checking balance of the accounts whose savings balance is higher than the average savings balance.

accounts : custid (number) , name (text) | savings : custid (number) , balance (number) | checking : custid (number) , balance (number)

savings : balance (number) , custid (number) | checking : balance (number) , custid (number) | accounts : custid (number) , name (text)


Question: What are the balances of checking accounts belonging to people with savings balances greater than the average savings balance?

accounts : custid (number) , name (text) | savings : custid (number) , balance (number) | checking : custid (number) , balance (number)

savings : balance (number) , custid (number) | checking : balance (number) , custid (number) | accounts : custid (number) , name (text)


Question: List all customers’ names in the alphabetical order.

accounts : custid (number) , name (text) | savings : custid (number) , balance (number) | checking : custid (number) , balance (number)


Question: What are the names of all the customers in alphabetical order?

accounts : custid (number) , name (text) | savings : custid (number) , balance (number) | checking : custid (number) , balance (number)


Question: Find the name of account that has the lowest total checking and saving balance.

accounts : custid (number) , name (text) | savings : custid (number) , balance (number) | checking : custid (number) , balance (number)

accounts : name (text) , custid (number) | savings : custid (number) , balance (number) | checking : custid (number) , balance (number)


Question: What is the name corresponding to the accoung with the lowest sum of checking and savings balances?

accounts : custid (number) , name (text) | savings : custid (number) , balance (number) | checking : custid (number) , balance (number)

accounts : name (text) , custid (number) | savings : custid (number) , balance (number) | checking : custid (number) , balance (number)


Question: Find the names and total checking and savings balances of accounts whose savings balance is higher than the average savings balance.

accounts : custid (number) , name (text) | savings : custid (number) , balance (number) | checking : custid (number) , balance (number)

accounts : name (text) , custid (number) | savings : balance (number) , custid (number) | checking : balance (number) , custid (number)


Question: What are the names and sum of checking and savings balances for accounts with savings balances higher than the average savings balance?

accounts : custid (number) , name (text) | savings : custid (number) , balance (number) | checking : custid (number) , balance (number)

accounts : name (text) , custid (number) | savings : balance (number) , custid (number) | checking : balance (number) , custid (number)


Question: Find the name and checking balance of the account with the lowest savings balance.

accounts : custid (number) , name (text) | savings : custid (number) , balance (number) | checking : custid (number) , balance (number)

accounts : name (text) , custid (number) | savings : balance (number) , custid (number) | checking : balance (number) , custid (number)


Question: What are the names and balances of checking accounts belonging to the customer with the lowest savings balance?

accounts : custid (number) , name (text) | savings : custid (number) , balance (number) | checking : custid (number) , balance (number)

accounts : name (text) , custid (number) | savings : balance (number) , custid (number) | checking : balance (number) , custid (number)


Question: Find the number of checking accounts for each account name.

accounts : custid (number) , name (text) | savings : custid (number) , balance (number) | checking : custid (number) , balance (number)

accounts : name (text) , custid (number) | checking : custid (number)


Question: What are the names of customers with accounts, and how many checking accounts do each of them have?

accounts : custid (number) , name (text) | savings : custid (number) , balance (number) | checking : custid (number) , balance (number)

accounts : name (text) , custid (number) | checking : custid (number)


Question: Find the total saving balance for each account name.

accounts : custid (number) , name (text) | savings : custid (number) , balance (number) | checking : custid (number) , balance (number)

savings : balance (number) , custid (number) | accounts : name (text) , custid (number)


Question: What are the names of customers with accounts, and what are the total savings balances for each?

accounts : custid (number) , name (text) | savings : custid (number) , balance (number) | checking : custid (number) , balance (number)

savings : balance (number) , custid (number) | accounts : name (text) , custid (number)


Question: Find the name of accounts whose checking balance is below the average checking balance.

accounts : custid (number) , name (text) | savings : custid (number) , balance (number) | checking : custid (number) , balance (number)

accounts : name (text) , custid (number) | checking : custid (number) , balance (number)


Question: What are the names of customers with checking balances lower than the average checking balance?

accounts : custid (number) , name (text) | savings : custid (number) , balance (number) | checking : custid (number) , balance (number)

accounts : name (text) , custid (number) | checking : custid (number) , balance (number)


Question: Find the saving balance of the account with the highest checking balance.

accounts : custid (number) , name (text) | savings : custid (number) , balance (number) | checking : custid (number) , balance (number)

savings : balance (number) , custid (number) | checking : balance (number) , custid (number) | accounts : custid (number)


Question: What is the savings balance of the account belonging to the customer with the highest checking balance?

accounts : custid (number) , name (text) | savings : custid (number) , balance (number) | checking : custid (number) , balance (number)

savings : balance (number) , custid (number) | checking : balance (number) , custid (number) | accounts : custid (number)


Question: Find the total checking and saving balance of all accounts sorted by the total balance in ascending order.

accounts : custid (number) , name (text) | savings : custid (number) , balance (number) | checking : custid (number) , balance (number)

savings : balance (number) , custid (number) | checking : balance (number) , custid (number)


Question: What is the sum of checking and savings balances for all customers, ordered by the total balance?

accounts : custid (number) , name (text) | savings : custid (number) , balance (number) | checking : custid (number) , balance (number)

savings : balance (number) , custid (number) | checking : balance (number) , custid (number)


Question: Find the name and checking balance of the account with the lowest saving balance.

accounts : custid (number) , name (text) | savings : custid (number) , balance (number) | checking : custid (number) , balance (number)

savings : balance (number) , custid (number) | checking : balance (number) , custid (number) | accounts : name (text) , custid (number)


Question: What is the name and checking balance of the account which has the lowest savings balance?

accounts : custid (number) , name (text) | savings : custid (number) , balance (number) | checking : custid (number) , balance (number)

savings : balance (number) , custid (number) | checking : balance (number) , custid (number) | accounts : name (text) , custid (number)


Question: Find the name, checking balance and saving balance of all accounts in the bank.

accounts : custid (number) , name (text) | savings : custid (number) , balance (number) | checking : custid (number) , balance (number)

savings : balance (number) , custid (number) | checking : balance (number) , custid (number) | accounts : name (text) , custid (number)


Question: What are the names, checking balances, and savings balances for all customers?

accounts : custid (number) , name (text) | savings : custid (number) , balance (number) | checking : custid (number) , balance (number)

savings : balance (number) , custid (number) | checking : balance (number) , custid (number) | accounts : name (text) , custid (number)


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.

accounts : custid (number) , name (text) | savings : custid (number) , balance (number) | checking : custid (number) , balance (number)

savings : balance (number) , custid (number) | checking : balance (number) , custid (number) | accounts : name (text) , custid (number)


Question: What are the names, checking balances, and savings balances of customers, ordered by the total of checking and savings balances descending?

accounts : custid (number) , name (text) | savings : custid (number) , balance (number) | checking : custid (number) , balance (number)

savings : balance (number) , custid (number) | checking : balance (number) , custid (number) | accounts : name (text) , custid (number)


Question: Find the name of accounts whose checking balance is higher than corresponding saving balance.

accounts : custid (number) , name (text) | savings : custid (number) , balance (number) | checking : custid (number) , balance (number)

accounts : name (text) , custid (number) | savings : custid (number) , balance (number) | checking : custid (number) , balance (number)


Question: What are the names of customers with a higher checking balance than savings balance?

accounts : custid (number) , name (text) | savings : custid (number) , balance (number) | checking : custid (number) , balance (number)

accounts : name (text) , custid (number) | savings : custid (number) , balance (number) | checking : custid (number) , balance (number)


Question: Find the name and total checking and savings balance of the accounts whose savings balance is lower than corresponding checking balance.

accounts : custid (number) , name (text) | savings : custid (number) , balance (number) | checking : custid (number) , balance (number)

accounts : name (text) , custid (number) | savings : balance (number) , custid (number) | checking : balance (number) , custid (number)


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?

accounts : custid (number) , name (text) | savings : custid (number) , balance (number) | checking : custid (number) , balance (number)

accounts : name (text) , custid (number) | savings : balance (number) , custid (number) | checking : balance (number) , custid (number)


Question: Find the name and savings balance of the top 3 accounts with the highest saving balance sorted by savings balance in descending order.

accounts : custid (number) , name (text) | savings : custid (number) , balance (number) | checking : custid (number) , balance (number)

accounts : name (text) , custid (number) | savings : balance (number) , custid (number)


Question: What are names and savings balances of the three accounts with the highest savings balances?

accounts : custid (number) , name (text) | savings : custid (number) , balance (number) | checking : custid (number) , balance (number)

accounts : name (text) , custid (number) | savings : balance (number) , custid (number)


Question: How many main stream browsers whose market share is at least 5 exist?

web_client_accelerator : id (number) , name (text) , operating_system (text) , client (text) , connection (text) | browser : id (number) , name (text) , market_share (number) | accelerator_compatible_browser : accelerator_id (number) , browser_id (number) , compatible_since_year (number)

browser : market_share (number) , id (number)


Question: List the name of browsers in descending order by market share.

web_client_accelerator : id (number) , name (text) , operating_system (text) , client (text) , connection (text) | browser : id (number) , name (text) , market_share (number) | accelerator_compatible_browser : accelerator_id (number) , browser_id (number) , compatible_since_year (number)

browser : name (text) , market_share (number)


Question: List the ids, names and market shares of all browsers.

web_client_accelerator : id (number) , name (text) , operating_system (text) , client (text) , connection (text) | browser : id (number) , name (text) , market_share (number) | accelerator_compatible_browser : accelerator_id (number) , browser_id (number) , compatible_since_year (number)


Question: What is the maximum, minimum and average market share of the listed browsers?

web_client_accelerator : id (number) , name (text) , operating_system (text) , client (text) , connection (text) | browser : id (number) , name (text) , market_share (number) | accelerator_compatible_browser : accelerator_id (number) , browser_id (number) , compatible_since_year (number)


Question: What is the id and market share of the browser Safari?

web_client_accelerator : id (number) , name (text) , operating_system (text) , client (text) , connection (text) | browser : id (number) , name (text) , market_share (number) | accelerator_compatible_browser : accelerator_id (number) , browser_id (number) , compatible_since_year (number)

browser : id (number) , market_share (number) , name (text)


Question: What are the name and os of web client accelerators that do not work with only a 'Broadband' type connection?

web_client_accelerator : id (number) , name (text) , operating_system (text) , client (text) , connection (text) | browser : id (number) , name (text) , market_share (number) | accelerator_compatible_browser : accelerator_id (number) , browser_id (number) , compatible_since_year (number)

web_client_accelerator : name (text) , operating_system (text) , connection (text)


Question: What is the name of the browser that became compatible with the accelerator 'CProxy' after year 1998 ?

web_client_accelerator : id (number) , name (text) , operating_system (text) , client (text) , connection (text) | browser : id (number) , name (text) , market_share (number) | accelerator_compatible_browser : accelerator_id (number) , browser_id (number) , compatible_since_year (number)

web_client_accelerator : name (text) , id (number) | browser : name (text) , id (number) | accelerator_compatible_browser : browser_id (number) , accelerator_id (number) , compatible_since_year (number)


Question: What are the ids and names of the web accelerators that are compatible with two or more browsers?

web_client_accelerator : id (number) , name (text) , operating_system (text) , client (text) , connection (text) | browser : id (number) , name (text) , market_share (number) | accelerator_compatible_browser : accelerator_id (number) , browser_id (number) , compatible_since_year (number)

web_client_accelerator : id (number) , name (text) | accelerator_compatible_browser : accelerator_id (number)


Question: What is the id and name of the browser that is compatible with the most web accelerators?

web_client_accelerator : id (number) , name (text) , operating_system (text) , client (text) , connection (text) | browser : id (number) , name (text) , market_share (number) | accelerator_compatible_browser : accelerator_id (number) , browser_id (number) , compatible_since_year (number)

browser : id (number) , name (text) | accelerator_compatible_browser : browser_id (number) , accelerator_id (number)


Question: When did the web accelerator 'CACHEbox' and browser 'Internet Explorer' become compatible?

web_client_accelerator : id (number) , name (text) , operating_system (text) , client (text) , connection (text) | browser : id (number) , name (text) , market_share (number) | accelerator_compatible_browser : accelerator_id (number) , browser_id (number) , compatible_since_year (number)

accelerator_compatible_browser : compatible_since_year (number) , browser_id (number) , accelerator_id (number) | web_client_accelerator : id (number) , name (text) | browser : id (number) , name (text)


Question: How many different kinds of clients are supported by the web clients accelerators?

web_client_accelerator : id (number) , name (text) , operating_system (text) , client (text) , connection (text) | browser : id (number) , name (text) , market_share (number) | accelerator_compatible_browser : accelerator_id (number) , browser_id (number) , compatible_since_year (number)


Question: How many accelerators are not compatible with the browsers listed ?

web_client_accelerator : id (number) , name (text) , operating_system (text) , client (text) , connection (text) | browser : id (number) , name (text) , market_share (number) | accelerator_compatible_browser : accelerator_id (number) , browser_id (number) , compatible_since_year (number)

web_client_accelerator : id (number) | accelerator_compatible_browser : accelerator_id (number)


Question: What distinct accelerator names are compatible with the browswers that have market share higher than 15?

web_client_accelerator : id (number) , name (text) , operating_system (text) , client (text) , connection (text) | browser : id (number) , name (text) , market_share (number) | accelerator_compatible_browser : accelerator_id (number) , browser_id (number) , compatible_since_year (number)

web_client_accelerator : name (text) , id (number) | browser : name (text) , id (number) , market_share (number) | accelerator_compatible_browser : accelerator_id (number) , browser_id (number)


Question: List the names of the browser that are compatible with both 'CACHEbox' and 'Fasterfox'.

web_client_accelerator : id (number) , name (text) , operating_system (text) , client (text) , connection (text) | browser : id (number) , name (text) , market_share (number) | accelerator_compatible_browser : accelerator_id (number) , browser_id (number) , compatible_since_year (number)

web_client_accelerator : name (text) , id (number) | browser : name (text) , id (number) | accelerator_compatible_browser : accelerator_id (number) , browser_id (number)


Question: Show the accelerator names and supporting operating systems that are not compatible with the browser named 'Opera'.

web_client_accelerator : id (number) , name (text) , operating_system (text) , client (text) , connection (text) | browser : id (number) , name (text) , market_share (number) | accelerator_compatible_browser : accelerator_id (number) , browser_id (number) , compatible_since_year (number)

web_client_accelerator : name (text) , operating_system (text) , id (number) | browser : name (text) , id (number) | accelerator_compatible_browser : accelerator_id (number) , browser_id (number)


Question: Which accelerator name contains substring "Opera"?

web_client_accelerator : id (number) , name (text) , operating_system (text) , client (text) , connection (text) | browser : id (number) , name (text) , market_share (number) | accelerator_compatible_browser : accelerator_id (number) , browser_id (number) , compatible_since_year (number)


Question: Find the number of web accelerators used for each Operating system.

web_client_accelerator : id (number) , name (text) , operating_system (text) , client (text) , connection (text) | browser : id (number) , name (text) , market_share (number) | accelerator_compatible_browser : accelerator_id (number) , browser_id (number) , compatible_since_year (number)

web_client_accelerator : operating_system (text) , id (number)


Question: give me names of all compatible browsers and accelerators in the descending order of compatible year

web_client_accelerator : id (number) , name (text) , operating_system (text) , client (text) , connection (text) | browser : id (number) , name (text) , market_share (number) | accelerator_compatible_browser : accelerator_id (number) , browser_id (number) , compatible_since_year (number)

web_client_accelerator : name (text) , id (number) | browser : name (text) , id (number) | accelerator_compatible_browser : browser_id (number) , accelerator_id (number) , compatible_since_year (number)


Question: How many wrestlers are there?

wrestler : wrestler_id (number) , name (text) , reign (text) , days_held (text) , location (text) , event (text) | elimination : elimination_id (text) , wrestler_id (text) , team (text) , eliminated_by (text) , elimination_move (text) , time (text)


Question: Count the number of wrestlers.

wrestler : wrestler_id (number) , name (text) , reign (text) , days_held (text) , location (text) , event (text) | elimination : elimination_id (text) , wrestler_id (text) , team (text) , eliminated_by (text) , elimination_move (text) , time (text)


Question: List the names of wrestlers in descending order of days held.

wrestler : wrestler_id (number) , name (text) , reign (text) , days_held (text) , location (text) , event (text) | elimination : elimination_id (text) , wrestler_id (text) , team (text) , eliminated_by (text) , elimination_move (text) , time (text)

wrestler : name (text) , days_held (text)


Question: What are the names of the wrestlers, ordered descending by days held?

wrestler : wrestler_id (number) , name (text) , reign (text) , days_held (text) , location (text) , event (text) | elimination : elimination_id (text) , wrestler_id (text) , team (text) , eliminated_by (text) , elimination_move (text) , time (text)

wrestler : name (text) , days_held (text)


Question: What is the name of the wrestler with the fewest days held?

wrestler : wrestler_id (number) , name (text) , reign (text) , days_held (text) , location (text) , event (text) | elimination : elimination_id (text) , wrestler_id (text) , team (text) , eliminated_by (text) , elimination_move (text) , time (text)

wrestler : name (text) , days_held (text)


Question: Return the name of the wrestler who had the lowest number of days held.

wrestler : wrestler_id (number) , name (text) , reign (text) , days_held (text) , location (text) , event (text) | elimination : elimination_id (text) , wrestler_id (text) , team (text) , eliminated_by (text) , elimination_move (text) , time (text)

wrestler : name (text) , days_held (text)


Question: What are the distinct reigns of wrestlers whose location is not "Tokyo,Japan" ?

wrestler : wrestler_id (number) , name (text) , reign (text) , days_held (text) , location (text) , event (text) | elimination : elimination_id (text) , wrestler_id (text) , team (text) , eliminated_by (text) , elimination_move (text) , time (text)

wrestler : reign (text) , location (text)


Question: Give the different reigns of wrestlers who are not located in Tokyo, Japan.

wrestler : wrestler_id (number) , name (text) , reign (text) , days_held (text) , location (text) , event (text) | elimination : elimination_id (text) , wrestler_id (text) , team (text) , eliminated_by (text) , elimination_move (text) , time (text)

wrestler : reign (text) , location (text)


Question: What are the names and location of the wrestlers?

wrestler : wrestler_id (number) , name (text) , reign (text) , days_held (text) , location (text) , event (text) | elimination : elimination_id (text) , wrestler_id (text) , team (text) , eliminated_by (text) , elimination_move (text) , time (text)

wrestler : name (text) , location (text)


Question: Give the names and locations of all wrestlers.

wrestler : wrestler_id (number) , name (text) , reign (text) , days_held (text) , location (text) , event (text) | elimination : elimination_id (text) , wrestler_id (text) , team (text) , eliminated_by (text) , elimination_move (text) , time (text)

wrestler : name (text) , location (text)


Question: What are the elimination moves of wrestlers whose team is "Team Orton"?

wrestler : wrestler_id (number) , name (text) , reign (text) , days_held (text) , location (text) , event (text) | elimination : elimination_id (text) , wrestler_id (text) , team (text) , eliminated_by (text) , elimination_move (text) , time (text)

elimination : elimination_move (text) , team (text)


Question: Return the elimination movies of wrestlers on Team Orton.

wrestler : wrestler_id (number) , name (text) , reign (text) , days_held (text) , location (text) , event (text) | elimination : elimination_id (text) , wrestler_id (text) , team (text) , eliminated_by (text) , elimination_move (text) , time (text)

elimination : elimination_move (text) , team (text)


Question: What are the names of wrestlers and the elimination moves?

wrestler : wrestler_id (number) , name (text) , reign (text) , days_held (text) , location (text) , event (text) | elimination : elimination_id (text) , wrestler_id (text) , team (text) , eliminated_by (text) , elimination_move (text) , time (text)

wrestler : name (text) , wrestler_id (number) | elimination : elimination_move (text) , wrestler_id (text)


Question: Give the names of wrestlers and their elimination moves.

wrestler : wrestler_id (number) , name (text) , reign (text) , days_held (text) , location (text) , event (text) | elimination : elimination_id (text) , wrestler_id (text) , team (text) , eliminated_by (text) , elimination_move (text) , time (text)

wrestler : name (text) , wrestler_id (number) | elimination : elimination_move (text) , wrestler_id (text)


Question: List the names of wrestlers and the teams in elimination in descending order of days held.

wrestler : wrestler_id (number) , name (text) , reign (text) , days_held (text) , location (text) , event (text) | elimination : elimination_id (text) , wrestler_id (text) , team (text) , eliminated_by (text) , elimination_move (text) , time (text)

wrestler : name (text) , wrestler_id (number) , days_held (text) | elimination : team (text) , wrestler_id (text)


Question: What are the names of wrestlers and their teams in elimination, ordered descending by days held?

wrestler : wrestler_id (number) , name (text) , reign (text) , days_held (text) , location (text) , event (text) | elimination : elimination_id (text) , wrestler_id (text) , team (text) , eliminated_by (text) , elimination_move (text) , time (text)

wrestler : name (text) , wrestler_id (number) , days_held (text) | elimination : team (text) , wrestler_id (text)


Question: List the time of elimination of the wrestlers with largest days held.

wrestler : wrestler_id (number) , name (text) , reign (text) , days_held (text) , location (text) , event (text) | elimination : elimination_id (text) , wrestler_id (text) , team (text) , eliminated_by (text) , elimination_move (text) , time (text)

elimination : time (text) , wrestler_id (text) | wrestler : wrestler_id (number) , days_held (text)


Question: What is the time of elimination for the wrestler with the most days held?

wrestler : wrestler_id (number) , name (text) , reign (text) , days_held (text) , location (text) , event (text) | elimination : elimination_id (text) , wrestler_id (text) , team (text) , eliminated_by (text) , elimination_move (text) , time (text)

elimination : time (text) , wrestler_id (text) | wrestler : wrestler_id (number) , days_held (text)


Question: Show times of elimination of wrestlers with days held more than 50.

wrestler : wrestler_id (number) , name (text) , reign (text) , days_held (text) , location (text) , event (text) | elimination : elimination_id (text) , wrestler_id (text) , team (text) , eliminated_by (text) , elimination_move (text) , time (text)

elimination : time (text) , wrestler_id (text) | wrestler : wrestler_id (number) , days_held (text)


Question: What are the times of elimination for wrestlers with over 50 days held?

wrestler : wrestler_id (number) , name (text) , reign (text) , days_held (text) , location (text) , event (text) | elimination : elimination_id (text) , wrestler_id (text) , team (text) , eliminated_by (text) , elimination_move (text) , time (text)

elimination : time (text) , wrestler_id (text) | wrestler : wrestler_id (number) , days_held (text)


Question: Show different teams in eliminations and the number of eliminations from each team.

wrestler : wrestler_id (number) , name (text) , reign (text) , days_held (text) , location (text) , event (text) | elimination : elimination_id (text) , wrestler_id (text) , team (text) , eliminated_by (text) , elimination_move (text) , time (text)

elimination : team (text) , elimination_id (text)


Question: How many eliminations did each team have?

wrestler : wrestler_id (number) , name (text) , reign (text) , days_held (text) , location (text) , event (text) | elimination : elimination_id (text) , wrestler_id (text) , team (text) , eliminated_by (text) , elimination_move (text) , time (text)

elimination : team (text) , elimination_id (text)


Question: Show teams that have suffered more than three eliminations.

wrestler : wrestler_id (number) , name (text) , reign (text) , days_held (text) , location (text) , event (text) | elimination : elimination_id (text) , wrestler_id (text) , team (text) , eliminated_by (text) , elimination_move (text) , time (text)

elimination : team (text) , elimination_id (text)


Question: Which teams had more than 3 eliminations?

wrestler : wrestler_id (number) , name (text) , reign (text) , days_held (text) , location (text) , event (text) | elimination : elimination_id (text) , wrestler_id (text) , team (text) , eliminated_by (text) , elimination_move (text) , time (text)

elimination : team (text) , elimination_id (text)


Question: Show the reign and days held of wrestlers.

wrestler : wrestler_id (number) , name (text) , reign (text) , days_held (text) , location (text) , event (text) | elimination : elimination_id (text) , wrestler_id (text) , team (text) , eliminated_by (text) , elimination_move (text) , time (text)

wrestler : reign (text) , days_held (text)


Question: What are the reigns and days held of all wrestlers?

wrestler : wrestler_id (number) , name (text) , reign (text) , days_held (text) , location (text) , event (text) | elimination : elimination_id (text) , wrestler_id (text) , team (text) , eliminated_by (text) , elimination_move (text) , time (text)

wrestler : reign (text) , days_held (text)


Question: What are the names of wrestlers days held less than 100?

wrestler : wrestler_id (number) , name (text) , reign (text) , days_held (text) , location (text) , event (text) | elimination : elimination_id (text) , wrestler_id (text) , team (text) , eliminated_by (text) , elimination_move (text) , time (text)

wrestler : name (text) , days_held (text)


Question: Return the names of wrestlers with fewer than 100 days held.

wrestler : wrestler_id (number) , name (text) , reign (text) , days_held (text) , location (text) , event (text) | elimination : elimination_id (text) , wrestler_id (text) , team (text) , eliminated_by (text) , elimination_move (text) , time (text)

wrestler : name (text) , days_held (text)


Question: Please show the most common reigns of wrestlers.

wrestler : wrestler_id (number) , name (text) , reign (text) , days_held (text) , location (text) , event (text) | elimination : elimination_id (text) , wrestler_id (text) , team (text) , eliminated_by (text) , elimination_move (text) , time (text)

wrestler : reign (text) , wrestler_id (number)


Question: Which reign is the most common among wrestlers?

wrestler : wrestler_id (number) , name (text) , reign (text) , days_held (text) , location (text) , event (text) | elimination : elimination_id (text) , wrestler_id (text) , team (text) , eliminated_by (text) , elimination_move (text) , time (text)

wrestler : reign (text) , wrestler_id (number)


Question: List the locations that are shared by more than two wrestlers.

wrestler : wrestler_id (number) , name (text) , reign (text) , days_held (text) , location (text) , event (text) | elimination : elimination_id (text) , wrestler_id (text) , team (text) , eliminated_by (text) , elimination_move (text) , time (text)

wrestler : location (text) , wrestler_id (number)


Question: Which locations are shared by more than two wrestlers?

wrestler : wrestler_id (number) , name (text) , reign (text) , days_held (text) , location (text) , event (text) | elimination : elimination_id (text) , wrestler_id (text) , team (text) , eliminated_by (text) , elimination_move (text) , time (text)

wrestler : location (text) , wrestler_id (number)


Question: List the names of wrestlers that have not been eliminated.

wrestler : wrestler_id (number) , name (text) , reign (text) , days_held (text) , location (text) , event (text) | elimination : elimination_id (text) , wrestler_id (text) , team (text) , eliminated_by (text) , elimination_move (text) , time (text)

wrestler : name (text) , wrestler_id (number) | elimination : wrestler_id (text)


Question: What are the names of wrestlers who have never been eliminated?

wrestler : wrestler_id (number) , name (text) , reign (text) , days_held (text) , location (text) , event (text) | elimination : elimination_id (text) , wrestler_id (text) , team (text) , eliminated_by (text) , elimination_move (text) , time (text)

wrestler : name (text) , wrestler_id (number) | elimination : wrestler_id (text)


Question: Show the teams that have both wrestlers eliminated by "Orton" and wrestlers eliminated by "Benjamin".

wrestler : wrestler_id (number) , name (text) , reign (text) , days_held (text) , location (text) , event (text) | elimination : elimination_id (text) , wrestler_id (text) , team (text) , eliminated_by (text) , elimination_move (text) , time (text)

elimination : team (text) , eliminated_by (text)


Question: What are the teams that have both wrestlers eliminated by Orton and wrestlers eliminated by Benjamin?

wrestler : wrestler_id (number) , name (text) , reign (text) , days_held (text) , location (text) , event (text) | elimination : elimination_id (text) , wrestler_id (text) , team (text) , eliminated_by (text) , elimination_move (text) , time (text)

elimination : team (text) , eliminated_by (text)


Question: What is the number of distinct teams that suffer elimination?

wrestler : wrestler_id (number) , name (text) , reign (text) , days_held (text) , location (text) , event (text) | elimination : elimination_id (text) , wrestler_id (text) , team (text) , eliminated_by (text) , elimination_move (text) , time (text)


Question: How many different teams have had eliminated wrestlers?

wrestler : wrestler_id (number) , name (text) , reign (text) , days_held (text) , location (text) , event (text) | elimination : elimination_id (text) , wrestler_id (text) , team (text) , eliminated_by (text) , elimination_move (text) , time (text)


Question: Show the times of elimination by "Punk" or "Orton".

wrestler : wrestler_id (number) , name (text) , reign (text) , days_held (text) , location (text) , event (text) | elimination : elimination_id (text) , wrestler_id (text) , team (text) , eliminated_by (text) , elimination_move (text) , time (text)

elimination : time (text) , eliminated_by (text)


Question: What are the times of elimination for any instances in which the elimination was done by Punk or Orton?

wrestler : wrestler_id (number) , name (text) , reign (text) , days_held (text) , location (text) , event (text) | elimination : elimination_id (text) , wrestler_id (text) , team (text) , eliminated_by (text) , elimination_move (text) , time (text)

elimination : time (text) , eliminated_by (text)


Question: How many schools are there?

school : school_id (text) , school_name (text) , location (text) , mascot (text) , enrollment (number) , ihsaa_class (text) , ihsaa_football_class (text) , county (text) | budget : school_id (number) , year (number) , budgeted (number) , total_budget_percent_budgeted (number) , invested (number) , total_budget_percent_invested (number) , budget_invested_percent (text) | endowment : endowment_id (number) , school_id (number) , donator_name (text) , amount (number)


Question: Count the number of schools.

school : school_id (text) , school_name (text) , location (text) , mascot (text) , enrollment (number) , ihsaa_class (text) , ihsaa_football_class (text) , county (text) | budget : school_id (number) , year (number) , budgeted (number) , total_budget_percent_budgeted (number) , invested (number) , total_budget_percent_invested (number) , budget_invested_percent (text) | endowment : endowment_id (number) , school_id (number) , donator_name (text) , amount (number)


Question: Show all school names in alphabetical order.

school : school_id (text) , school_name (text) , location (text) , mascot (text) , enrollment (number) , ihsaa_class (text) , ihsaa_football_class (text) , county (text) | budget : school_id (number) , year (number) , budgeted (number) , total_budget_percent_budgeted (number) , invested (number) , total_budget_percent_invested (number) , budget_invested_percent (text) | endowment : endowment_id (number) , school_id (number) , donator_name (text) , amount (number)


Question: List the name, location, mascot for all schools.

school : school_id (text) , school_name (text) , location (text) , mascot (text) , enrollment (number) , ihsaa_class (text) , ihsaa_football_class (text) , county (text) | budget : school_id (number) , year (number) , budgeted (number) , total_budget_percent_budgeted (number) , invested (number) , total_budget_percent_invested (number) , budget_invested_percent (text) | endowment : endowment_id (number) , school_id (number) , donator_name (text) , amount (number)

school : school_name (text) , location (text) , mascot (text)


Question: What are the total and average enrollment of all schools?

school : school_id (text) , school_name (text) , location (text) , mascot (text) , enrollment (number) , ihsaa_class (text) , ihsaa_football_class (text) , county (text) | budget : school_id (number) , year (number) , budgeted (number) , total_budget_percent_budgeted (number) , invested (number) , total_budget_percent_invested (number) , budget_invested_percent (text) | endowment : endowment_id (number) , school_id (number) , donator_name (text) , amount (number)


Question: What are the mascots for schools with enrollments above the average?

school : school_id (text) , school_name (text) , location (text) , mascot (text) , enrollment (number) , ihsaa_class (text) , ihsaa_football_class (text) , county (text) | budget : school_id (number) , year (number) , budgeted (number) , total_budget_percent_budgeted (number) , invested (number) , total_budget_percent_invested (number) , budget_invested_percent (text) | endowment : endowment_id (number) , school_id (number) , donator_name (text) , amount (number)

school : mascot (text) , enrollment (number)


Question: List the name of the school with the smallest enrollment.

school : school_id (text) , school_name (text) , location (text) , mascot (text) , enrollment (number) , ihsaa_class (text) , ihsaa_football_class (text) , county (text) | budget : school_id (number) , year (number) , budgeted (number) , total_budget_percent_budgeted (number) , invested (number) , total_budget_percent_invested (number) , budget_invested_percent (text) | endowment : endowment_id (number) , school_id (number) , donator_name (text) , amount (number)

school : school_name (text) , enrollment (number)


Question: Show the average, maximum, minimum enrollment of all schools.

school : school_id (text) , school_name (text) , location (text) , mascot (text) , enrollment (number) , ihsaa_class (text) , ihsaa_football_class (text) , county (text) | budget : school_id (number) , year (number) , budgeted (number) , total_budget_percent_budgeted (number) , invested (number) , total_budget_percent_invested (number) , budget_invested_percent (text) | endowment : endowment_id (number) , school_id (number) , donator_name (text) , amount (number)


Question: Show each county along with the number of schools and total enrollment in each county.

school : school_id (text) , school_name (text) , location (text) , mascot (text) , enrollment (number) , ihsaa_class (text) , ihsaa_football_class (text) , county (text) | budget : school_id (number) , year (number) , budgeted (number) , total_budget_percent_budgeted (number) , invested (number) , total_budget_percent_invested (number) , budget_invested_percent (text) | endowment : endowment_id (number) , school_id (number) , donator_name (text) , amount (number)

school : county (text) , enrollment (number) , school_id (text)


Question: How many donors have endowment for school named "Glenn"?

school : school_id (text) , school_name (text) , location (text) , mascot (text) , enrollment (number) , ihsaa_class (text) , ihsaa_football_class (text) , county (text) | budget : school_id (number) , year (number) , budgeted (number) , total_budget_percent_budgeted (number) , invested (number) , total_budget_percent_invested (number) , budget_invested_percent (text) | endowment : endowment_id (number) , school_id (number) , donator_name (text) , amount (number)

endowment : donator_name (text) , school_id (number) | school : school_id (text) , school_name (text)


Question: List each donator name and the amount of endowment in descending order of the amount of endowment.

school : school_id (text) , school_name (text) , location (text) , mascot (text) , enrollment (number) , ihsaa_class (text) , ihsaa_football_class (text) , county (text) | budget : school_id (number) , year (number) , budgeted (number) , total_budget_percent_budgeted (number) , invested (number) , total_budget_percent_invested (number) , budget_invested_percent (text) | endowment : endowment_id (number) , school_id (number) , donator_name (text) , amount (number)

endowment : donator_name (text) , amount (number)


Question: List the names of the schools without any endowment.

school : school_id (text) , school_name (text) , location (text) , mascot (text) , enrollment (number) , ihsaa_class (text) , ihsaa_football_class (text) , county (text) | budget : school_id (number) , year (number) , budgeted (number) , total_budget_percent_budgeted (number) , invested (number) , total_budget_percent_invested (number) , budget_invested_percent (text) | endowment : endowment_id (number) , school_id (number) , donator_name (text) , amount (number)

school : school_name (text) , school_id (text) | endowment : school_id (number)


Question: List all the names of schools with an endowment amount smaller than or equal to 10.

school : school_id (text) , school_name (text) , location (text) , mascot (text) , enrollment (number) , ihsaa_class (text) , ihsaa_football_class (text) , county (text) | budget : school_id (number) , year (number) , budgeted (number) , total_budget_percent_budgeted (number) , invested (number) , total_budget_percent_invested (number) , budget_invested_percent (text) | endowment : endowment_id (number) , school_id (number) , donator_name (text) , amount (number)

school : school_name (text) , school_id (text) | endowment : school_id (number) , amount (number)


Question: Show the names of donors who donated to both school "Glenn" and "Triton."

school : school_id (text) , school_name (text) , location (text) , mascot (text) , enrollment (number) , ihsaa_class (text) , ihsaa_football_class (text) , county (text) | budget : school_id (number) , year (number) , budgeted (number) , total_budget_percent_budgeted (number) , invested (number) , total_budget_percent_invested (number) , budget_invested_percent (text) | endowment : endowment_id (number) , school_id (number) , donator_name (text) , amount (number)

endowment : donator_name (text) , school_id (number) | school : school_id (text) , school_name (text)


Question: Show the names of all the donors except those whose donation amount less than 9.

school : school_id (text) , school_name (text) , location (text) , mascot (text) , enrollment (number) , ihsaa_class (text) , ihsaa_football_class (text) , county (text) | budget : school_id (number) , year (number) , budgeted (number) , total_budget_percent_budgeted (number) , invested (number) , total_budget_percent_invested (number) , budget_invested_percent (text) | endowment : endowment_id (number) , school_id (number) , donator_name (text) , amount (number)

endowment : donator_name (text) , amount (number)


Question: List the amount and donor name for the largest amount of donation.

school : school_id (text) , school_name (text) , location (text) , mascot (text) , enrollment (number) , ihsaa_class (text) , ihsaa_football_class (text) , county (text) | budget : school_id (number) , year (number) , budgeted (number) , total_budget_percent_budgeted (number) , invested (number) , total_budget_percent_invested (number) , budget_invested_percent (text) | endowment : endowment_id (number) , school_id (number) , donator_name (text) , amount (number)

endowment : amount (number) , donator_name (text)


Question: How many budgets are above 3000 in year 2001 or before?

school : school_id (text) , school_name (text) , location (text) , mascot (text) , enrollment (number) , ihsaa_class (text) , ihsaa_football_class (text) , county (text) | budget : school_id (number) , year (number) , budgeted (number) , total_budget_percent_budgeted (number) , invested (number) , total_budget_percent_invested (number) , budget_invested_percent (text) | endowment : endowment_id (number) , school_id (number) , donator_name (text) , amount (number)

budget : budgeted (number) , year (number) , school_id (text)


Question: Count the number of budgets in year 2001 or before whose budgeted amount is greater than 3000

school : school_id (text) , school_name (text) , location (text) , mascot (text) , enrollment (number) , ihsaa_class (text) , ihsaa_football_class (text) , county (text) | budget : school_id (number) , year (number) , budgeted (number) , total_budget_percent_budgeted (number) , invested (number) , total_budget_percent_invested (number) , budget_invested_percent (text) | endowment : endowment_id (number) , school_id (number) , donator_name (text) , amount (number)

budget : budgeted (number) , year (number) , school_id (text)


Question: Show each school name, its budgeted amount, and invested amount in year 2002 or after.

school : school_id (text) , school_name (text) , location (text) , mascot (text) , enrollment (number) , ihsaa_class (text) , ihsaa_football_class (text) , county (text) | budget : school_id (number) , year (number) , budgeted (number) , total_budget_percent_budgeted (number) , invested (number) , total_budget_percent_invested (number) , budget_invested_percent (text) | endowment : endowment_id (number) , school_id (number) , donator_name (text) , amount (number)

school : school_name (text) , school_id (text) | budget : budgeted (number) , invested (number) , school_id (number) , year (number)


Question: Show all donor names.

school : school_id (text) , school_name (text) , location (text) , mascot (text) , enrollment (number) , ihsaa_class (text) , ihsaa_football_class (text) , county (text) | budget : school_id (number) , year (number) , budgeted (number) , total_budget_percent_budgeted (number) , invested (number) , total_budget_percent_invested (number) , budget_invested_percent (text) | endowment : endowment_id (number) , school_id (number) , donator_name (text) , amount (number)


Question: How many budget record has a budget amount smaller than the invested amount?

school : school_id (text) , school_name (text) , location (text) , mascot (text) , enrollment (number) , ihsaa_class (text) , ihsaa_football_class (text) , county (text) | budget : school_id (number) , year (number) , budgeted (number) , total_budget_percent_budgeted (number) , invested (number) , total_budget_percent_invested (number) , budget_invested_percent (text) | endowment : endowment_id (number) , school_id (number) , donator_name (text) , amount (number)

budget : budgeted (number) , invested (number) , school_id (text)


Question: What is the total budget amount for school "Glenn" in all years?

school : school_id (text) , school_name (text) , location (text) , mascot (text) , enrollment (number) , ihsaa_class (text) , ihsaa_football_class (text) , county (text) | budget : school_id (number) , year (number) , budgeted (number) , total_budget_percent_budgeted (number) , invested (number) , total_budget_percent_invested (number) , budget_invested_percent (text) | endowment : endowment_id (number) , school_id (number) , donator_name (text) , amount (number)

budget : budgeted (number) , school_id (number) | school : school_id (text) , school_name (text)


Question: Show the names of schools with a total budget amount greater than 100 or a total endowment greater than 10.

school : school_id (text) , school_name (text) , location (text) , mascot (text) , enrollment (number) , ihsaa_class (text) , ihsaa_football_class (text) , county (text) | budget : school_id (number) , year (number) , budgeted (number) , total_budget_percent_budgeted (number) , invested (number) , total_budget_percent_invested (number) , budget_invested_percent (text) | endowment : endowment_id (number) , school_id (number) , donator_name (text) , amount (number)

school : school_name (text) , school_id (text) | budget : school_id (number) , budgeted (number) | endowment : school_id (number) , amount (number)


Question: Find the names of schools that have more than one donator with donation amount above 8.5.

school : school_id (text) , school_name (text) , location (text) , mascot (text) , enrollment (number) , ihsaa_class (text) , ihsaa_football_class (text) , county (text) | budget : school_id (number) , year (number) , budgeted (number) , total_budget_percent_budgeted (number) , invested (number) , total_budget_percent_invested (number) , budget_invested_percent (text) | endowment : endowment_id (number) , school_id (number) , donator_name (text) , amount (number)

school : school_name (text) , school_id (text) | endowment : school_id (number) , amount (number) , endowment_id (number)


Question: Find the number of schools that have more than one donator whose donation amount is less than 8.5.

school : school_id (text) , school_name (text) , location (text) , mascot (text) , enrollment (number) , ihsaa_class (text) , ihsaa_football_class (text) , county (text) | budget : school_id (number) , year (number) , budgeted (number) , total_budget_percent_budgeted (number) , invested (number) , total_budget_percent_invested (number) , budget_invested_percent (text) | endowment : endowment_id (number) , school_id (number) , donator_name (text) , amount (number)

endowment : amount (number) , school_id (number) , endowment_id (number)


Question: 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.

school : school_id (text) , school_name (text) , location (text) , mascot (text) , enrollment (number) , ihsaa_class (text) , ihsaa_football_class (text) , county (text) | budget : school_id (number) , year (number) , budgeted (number) , total_budget_percent_budgeted (number) , invested (number) , total_budget_percent_invested (number) , budget_invested_percent (text) | endowment : endowment_id (number) , school_id (number) , donator_name (text) , amount (number)

school : school_name (text) , mascot (text) , ihsaa_football_class (text) , school_id (text) | budget : school_id (number) , budgeted (number) , year (number) , total_budget_percent_invested (number) , total_budget_percent_budgeted (number)


Question: How many buildings are there?

building : building_id (text) , name (text) , street_address (text) , years_as_tallest (text) , height_feet (number) , floors (number) | institution : institution_id (text) , institution (text) , location (text) , founded (number) , type (text) , enrollment (number) , team (text) , primary_conference (text) , building_id (text) | protein : common_name (text) , protein_name (text) , divergence_from_human_lineage (number) , accession_number (text) , sequence_length (number) , sequence_identity_to_human_protein (text) , institution_id (text)


Question: Show the name, street address, and number of floors for all buildings ordered by the number of floors.

building : building_id (text) , name (text) , street_address (text) , years_as_tallest (text) , height_feet (number) , floors (number) | institution : institution_id (text) , institution (text) , location (text) , founded (number) , type (text) , enrollment (number) , team (text) , primary_conference (text) , building_id (text) | protein : common_name (text) , protein_name (text) , divergence_from_human_lineage (number) , accession_number (text) , sequence_length (number) , sequence_identity_to_human_protein (text) , institution_id (text)

building : name (text) , street_address (text) , floors (number)


Question: What is the name of the tallest building?

building : building_id (text) , name (text) , street_address (text) , years_as_tallest (text) , height_feet (number) , floors (number) | institution : institution_id (text) , institution (text) , location (text) , founded (number) , type (text) , enrollment (number) , team (text) , primary_conference (text) , building_id (text) | protein : common_name (text) , protein_name (text) , divergence_from_human_lineage (number) , accession_number (text) , sequence_length (number) , sequence_identity_to_human_protein (text) , institution_id (text)

building : name (text) , height_feet (number)


Question: What are the average, maximum, and minimum number of floors for all buildings?

building : building_id (text) , name (text) , street_address (text) , years_as_tallest (text) , height_feet (number) , floors (number) | institution : institution_id (text) , institution (text) , location (text) , founded (number) , type (text) , enrollment (number) , team (text) , primary_conference (text) , building_id (text) | protein : common_name (text) , protein_name (text) , divergence_from_human_lineage (number) , accession_number (text) , sequence_length (number) , sequence_identity_to_human_protein (text) , institution_id (text)


Question: Show the number of buildings with a height above the average or a number of floors above the average.

building : building_id (text) , name (text) , street_address (text) , years_as_tallest (text) , height_feet (number) , floors (number) | institution : institution_id (text) , institution (text) , location (text) , founded (number) , type (text) , enrollment (number) , team (text) , primary_conference (text) , building_id (text) | protein : common_name (text) , protein_name (text) , divergence_from_human_lineage (number) , accession_number (text) , sequence_length (number) , sequence_identity_to_human_protein (text) , institution_id (text)

building : height_feet (number) , floors (number) , building_id (text)


Question: List the names of buildings with at least 200 feet of height and with at least 20 floors.

building : building_id (text) , name (text) , street_address (text) , years_as_tallest (text) , height_feet (number) , floors (number) | institution : institution_id (text) , institution (text) , location (text) , founded (number) , type (text) , enrollment (number) , team (text) , primary_conference (text) , building_id (text) | protein : common_name (text) , protein_name (text) , divergence_from_human_lineage (number) , accession_number (text) , sequence_length (number) , sequence_identity_to_human_protein (text) , institution_id (text)

building : name (text) , height_feet (number) , floors (number)


Question: Show the names and locations of institutions that are founded after 1990 and have the type "Private".

building : building_id (text) , name (text) , street_address (text) , years_as_tallest (text) , height_feet (number) , floors (number) | institution : institution_id (text) , institution (text) , location (text) , founded (number) , type (text) , enrollment (number) , team (text) , primary_conference (text) , building_id (text) | protein : common_name (text) , protein_name (text) , divergence_from_human_lineage (number) , accession_number (text) , sequence_length (number) , sequence_identity_to_human_protein (text) , institution_id (text)

institution : institution (text) , location (text) , founded (number) , type (text)


Question: Show institution types, along with the number of institutions and total enrollment for each type.

building : building_id (text) , name (text) , street_address (text) , years_as_tallest (text) , height_feet (number) , floors (number) | institution : institution_id (text) , institution (text) , location (text) , founded (number) , type (text) , enrollment (number) , team (text) , primary_conference (text) , building_id (text) | protein : common_name (text) , protein_name (text) , divergence_from_human_lineage (number) , accession_number (text) , sequence_length (number) , sequence_identity_to_human_protein (text) , institution_id (text)

institution : type (text) , enrollment (number) , institution (text) , institution_id (text)


Question: Show the institution type with the largest number of institutions.

building : building_id (text) , name (text) , street_address (text) , years_as_tallest (text) , height_feet (number) , floors (number) | institution : institution_id (text) , institution (text) , location (text) , founded (number) , type (text) , enrollment (number) , team (text) , primary_conference (text) , building_id (text) | protein : common_name (text) , protein_name (text) , divergence_from_human_lineage (number) , accession_number (text) , sequence_length (number) , sequence_identity_to_human_protein (text) , institution_id (text)

institution : type (text) , institution (text) , institution_id (text)


Question: Show the institution type with an institution founded after 1990 and an institution with at least 1000 enrollment.

building : building_id (text) , name (text) , street_address (text) , years_as_tallest (text) , height_feet (number) , floors (number) | institution : institution_id (text) , institution (text) , location (text) , founded (number) , type (text) , enrollment (number) , team (text) , primary_conference (text) , building_id (text) | protein : common_name (text) , protein_name (text) , divergence_from_human_lineage (number) , accession_number (text) , sequence_length (number) , sequence_identity_to_human_protein (text) , institution_id (text)

institution : type (text) , institution (text) , founded (number) , enrollment (number)


Question: Show the name of buildings that do not have any institution.

building : building_id (text) , name (text) , street_address (text) , years_as_tallest (text) , height_feet (number) , floors (number) | institution : institution_id (text) , institution (text) , location (text) , founded (number) , type (text) , enrollment (number) , team (text) , primary_conference (text) , building_id (text) | protein : common_name (text) , protein_name (text) , divergence_from_human_lineage (number) , accession_number (text) , sequence_length (number) , sequence_identity_to_human_protein (text) , institution_id (text)

building : name (text) , building_id (text) | institution : building_id (text) , institution (text)


Question: Show the names of buildings except for those having an institution founded in 2003.

building : building_id (text) , name (text) , street_address (text) , years_as_tallest (text) , height_feet (number) , floors (number) | institution : institution_id (text) , institution (text) , location (text) , founded (number) , type (text) , enrollment (number) , team (text) , primary_conference (text) , building_id (text) | protein : common_name (text) , protein_name (text) , divergence_from_human_lineage (number) , accession_number (text) , sequence_length (number) , sequence_identity_to_human_protein (text) , institution_id (text)

building : name (text) , building_id (text) | institution : institution (text) , building_id (text) , founded (number)


Question: For each building, show the name of the building and the number of institutions in it.

building : building_id (text) , name (text) , street_address (text) , years_as_tallest (text) , height_feet (number) , floors (number) | institution : institution_id (text) , institution (text) , location (text) , founded (number) , type (text) , enrollment (number) , team (text) , primary_conference (text) , building_id (text) | protein : common_name (text) , protein_name (text) , divergence_from_human_lineage (number) , accession_number (text) , sequence_length (number) , sequence_identity_to_human_protein (text) , institution_id (text)

building : name (text) , building_id (text) | institution : institution (text) , building_id (text) , institution_id (text)


Question: Show the names and heights of buildings with at least two institutions founded after 1880.

building : building_id (text) , name (text) , street_address (text) , years_as_tallest (text) , height_feet (number) , floors (number) | institution : institution_id (text) , institution (text) , location (text) , founded (number) , type (text) , enrollment (number) , team (text) , primary_conference (text) , building_id (text) | protein : common_name (text) , protein_name (text) , divergence_from_human_lineage (number) , accession_number (text) , sequence_length (number) , sequence_identity_to_human_protein (text) , institution_id (text)

building : name (text) , height_feet (number) , building_id (text) | institution : institution (text) , building_id (text) , founded (number) , institution_id (text)


Question: Show all the distinct institution types.

building : building_id (text) , name (text) , street_address (text) , years_as_tallest (text) , height_feet (number) , floors (number) | institution : institution_id (text) , institution (text) , location (text) , founded (number) , type (text) , enrollment (number) , team (text) , primary_conference (text) , building_id (text) | protein : common_name (text) , protein_name (text) , divergence_from_human_lineage (number) , accession_number (text) , sequence_length (number) , sequence_identity_to_human_protein (text) , institution_id (text)

institution : type (text) , institution (text)


Question: Show institution names along with the number of proteins for each institution.

building : building_id (text) , name (text) , street_address (text) , years_as_tallest (text) , height_feet (number) , floors (number) | institution : institution_id (text) , institution (text) , location (text) , founded (number) , type (text) , enrollment (number) , team (text) , primary_conference (text) , building_id (text) | protein : common_name (text) , protein_name (text) , divergence_from_human_lineage (number) , accession_number (text) , sequence_length (number) , sequence_identity_to_human_protein (text) , institution_id (text)

institution : institution (text) , institution_id (text) | protein : institution_id (text) , common_name (text)


Question: How many proteins are associated with an institution founded after 1880 or an institution with type "Private"?

building : building_id (text) , name (text) , street_address (text) , years_as_tallest (text) , height_feet (number) , floors (number) | institution : institution_id (text) , institution (text) , location (text) , founded (number) , type (text) , enrollment (number) , team (text) , primary_conference (text) , building_id (text) | protein : common_name (text) , protein_name (text) , divergence_from_human_lineage (number) , accession_number (text) , sequence_length (number) , sequence_identity_to_human_protein (text) , institution_id (text)

institution : institution (text) , institution_id (text) , founded (number) , type (text) | protein : institution_id (text) , common_name (text)


Question: Show the protein name and the institution name.

building : building_id (text) , name (text) , street_address (text) , years_as_tallest (text) , height_feet (number) , floors (number) | institution : institution_id (text) , institution (text) , location (text) , founded (number) , type (text) , enrollment (number) , team (text) , primary_conference (text) , building_id (text) | protein : common_name (text) , protein_name (text) , divergence_from_human_lineage (number) , accession_number (text) , sequence_length (number) , sequence_identity_to_human_protein (text) , institution_id (text)

protein : protein_name (text) , institution_id (text) | institution : institution (text) , institution_id (text)


Question: How many proteins are associated with an institution in a building with at least 20 floors?

building : building_id (text) , name (text) , street_address (text) , years_as_tallest (text) , height_feet (number) , floors (number) | institution : institution_id (text) , institution (text) , location (text) , founded (number) , type (text) , enrollment (number) , team (text) , primary_conference (text) , building_id (text) | protein : common_name (text) , protein_name (text) , divergence_from_human_lineage (number) , accession_number (text) , sequence_length (number) , sequence_identity_to_human_protein (text) , institution_id (text)

institution : institution (text) , institution_id (text) , building_id (text) | protein : institution_id (text) , common_name (text) | building : building_id (text) , floors (number)


Question: How many institutions do not have an associated protein in our record?

building : building_id (text) , name (text) , street_address (text) , years_as_tallest (text) , height_feet (number) , floors (number) | institution : institution_id (text) , institution (text) , location (text) , founded (number) , type (text) , enrollment (number) , team (text) , primary_conference (text) , building_id (text) | protein : common_name (text) , protein_name (text) , divergence_from_human_lineage (number) , accession_number (text) , sequence_length (number) , sequence_identity_to_human_protein (text) , institution_id (text)

institution : institution (text) , institution_id (text) | protein : institution_id (text) , common_name (text)


Question: Show all the locations where no cinema has capacity over 800.

film : film_id (number) , rank_in_series (number) , number_in_season (number) , title (text) , directed_by (text) , original_air_date (text) , production_code (text) | cinema : cinema_id (number) , name (text) , openning_year (number) , capacity (number) , location (text) | schedule : cinema_id (number) , film_id (number) , date (text) , show_times_per_day (number) , price (number)

cinema : location (text) , capacity (number)


Question: Show all the locations where some cinemas were opened in both year 2010 and year 2011.

film : film_id (number) , rank_in_series (number) , number_in_season (number) , title (text) , directed_by (text) , original_air_date (text) , production_code (text) | cinema : cinema_id (number) , name (text) , openning_year (number) , capacity (number) , location (text) | schedule : cinema_id (number) , film_id (number) , date (text) , show_times_per_day (number) , price (number)

cinema : location (text) , openning_year (number)


Question: How many cinema do we have?

film : film_id (number) , rank_in_series (number) , number_in_season (number) , title (text) , directed_by (text) , original_air_date (text) , production_code (text) | cinema : cinema_id (number) , name (text) , openning_year (number) , capacity (number) , location (text) | schedule : cinema_id (number) , film_id (number) , date (text) , show_times_per_day (number) , price (number)


Question: Count the number of cinemas.

film : film_id (number) , rank_in_series (number) , number_in_season (number) , title (text) , directed_by (text) , original_air_date (text) , production_code (text) | cinema : cinema_id (number) , name (text) , openning_year (number) , capacity (number) , location (text) | schedule : cinema_id (number) , film_id (number) , date (text) , show_times_per_day (number) , price (number)


Question: Show name, opening year, and capacity for each cinema.

film : film_id (number) , rank_in_series (number) , number_in_season (number) , title (text) , directed_by (text) , original_air_date (text) , production_code (text) | cinema : cinema_id (number) , name (text) , openning_year (number) , capacity (number) , location (text) | schedule : cinema_id (number) , film_id (number) , date (text) , show_times_per_day (number) , price (number)

cinema : name (text) , openning_year (number) , capacity (number)


Question: Show the cinema name and location for cinemas with capacity above average.

film : film_id (number) , rank_in_series (number) , number_in_season (number) , title (text) , directed_by (text) , original_air_date (text) , production_code (text) | cinema : cinema_id (number) , name (text) , openning_year (number) , capacity (number) , location (text) | schedule : cinema_id (number) , film_id (number) , date (text) , show_times_per_day (number) , price (number)

cinema : name (text) , location (text) , capacity (number)


Question: What are all the locations with a cinema?

film : film_id (number) , rank_in_series (number) , number_in_season (number) , title (text) , directed_by (text) , original_air_date (text) , production_code (text) | cinema : cinema_id (number) , name (text) , openning_year (number) , capacity (number) , location (text) | schedule : cinema_id (number) , film_id (number) , date (text) , show_times_per_day (number) , price (number)


Question: Find the distinct locations that has a cinema.

film : film_id (number) , rank_in_series (number) , number_in_season (number) , title (text) , directed_by (text) , original_air_date (text) , production_code (text) | cinema : cinema_id (number) , name (text) , openning_year (number) , capacity (number) , location (text) | schedule : cinema_id (number) , film_id (number) , date (text) , show_times_per_day (number) , price (number)


Question: Show all the cinema names and opening years in descending order of opening year.

film : film_id (number) , rank_in_series (number) , number_in_season (number) , title (text) , directed_by (text) , original_air_date (text) , production_code (text) | cinema : cinema_id (number) , name (text) , openning_year (number) , capacity (number) , location (text) | schedule : cinema_id (number) , film_id (number) , date (text) , show_times_per_day (number) , price (number)

cinema : name (text) , openning_year (number)


Question: What are the name and location of the cinema with the largest capacity?

film : film_id (number) , rank_in_series (number) , number_in_season (number) , title (text) , directed_by (text) , original_air_date (text) , production_code (text) | cinema : cinema_id (number) , name (text) , openning_year (number) , capacity (number) , location (text) | schedule : cinema_id (number) , film_id (number) , date (text) , show_times_per_day (number) , price (number)

cinema : name (text) , location (text) , capacity (number)