Question: Show the name of colleges that have at least two players.

country : country_id (number) , country_name (text) , capital (text) , official_native_language (text) | team : team_id (number) , name (text) | match_season : season (number) , player (text) , position (text) , country (number) , team (number) , draft_pick_number (number) , draft_class (text) , college (text) | player : player_id (number) , player (text) , years_played (text) , total_wl (text) , singles_wl (text) , doubles_wl (text) , team (number)

match_season : college (text) , season (number)


Question: What are the names of all colleges that have two or more players?

country : country_id (number) , country_name (text) , capital (text) , official_native_language (text) | team : team_id (number) , name (text) | match_season : season (number) , player (text) , position (text) , country (number) , team (number) , draft_pick_number (number) , draft_class (text) , college (text) | player : player_id (number) , player (text) , years_played (text) , total_wl (text) , singles_wl (text) , doubles_wl (text) , team (number)

match_season : college (text) , season (number)


Question: Show the name of colleges that have at least two players in descending alphabetical order.

country : country_id (number) , country_name (text) , capital (text) , official_native_language (text) | team : team_id (number) , name (text) | match_season : season (number) , player (text) , position (text) , country (number) , team (number) , draft_pick_number (number) , draft_class (text) , college (text) | player : player_id (number) , player (text) , years_played (text) , total_wl (text) , singles_wl (text) , doubles_wl (text) , team (number)

match_season : college (text) , season (number)


Question: What are the names of colleges that have two or more players, listed in descending alphabetical order?

country : country_id (number) , country_name (text) , capital (text) , official_native_language (text) | team : team_id (number) , name (text) | match_season : season (number) , player (text) , position (text) , country (number) , team (number) , draft_pick_number (number) , draft_class (text) , college (text) | player : player_id (number) , player (text) , years_played (text) , total_wl (text) , singles_wl (text) , doubles_wl (text) , team (number)

match_season : college (text) , season (number)


Question: What are the names of teams that do no have match season record?

country : country_id (number) , country_name (text) , capital (text) , official_native_language (text) | team : team_id (number) , name (text) | match_season : season (number) , player (text) , position (text) , country (number) , team (number) , draft_pick_number (number) , draft_class (text) , college (text) | player : player_id (number) , player (text) , years_played (text) , total_wl (text) , singles_wl (text) , doubles_wl (text) , team (number)

team : name (text) , team_id (number) , team_id (number) | match_season : team (number) , season (number) | player : team (number) , player_id (number)


Question: Return the names of teams that have no match season record.

country : country_id (number) , country_name (text) , capital (text) , official_native_language (text) | team : team_id (number) , name (text) | match_season : season (number) , player (text) , position (text) , country (number) , team (number) , draft_pick_number (number) , draft_class (text) , college (text) | player : player_id (number) , player (text) , years_played (text) , total_wl (text) , singles_wl (text) , doubles_wl (text) , team (number)

team : name (text) , team_id (number) , team_id (number) | match_season : team (number) , season (number) | player : team (number) , player_id (number)


Question: What are the names of countries that have both players with position forward and players with position defender?

country : country_id (number) , country_name (text) , capital (text) , official_native_language (text) | team : team_id (number) , name (text) | match_season : season (number) , player (text) , position (text) , country (number) , team (number) , draft_pick_number (number) , draft_class (text) , college (text) | player : player_id (number) , player (text) , years_played (text) , total_wl (text) , singles_wl (text) , doubles_wl (text) , team (number)

country : country_name (text) , country_id (number) , country_id (number) | match_season : country (number) , position (text) , season (number)


Question: Return the names of countries that have players that play the Forward position, as well as players who play the Defender position.

country : country_id (number) , country_name (text) , capital (text) , official_native_language (text) | team : team_id (number) , name (text) | match_season : season (number) , player (text) , position (text) , country (number) , team (number) , draft_pick_number (number) , draft_class (text) , college (text) | player : player_id (number) , player (text) , years_played (text) , total_wl (text) , singles_wl (text) , doubles_wl (text) , team (number)

country : country_name (text) , country_id (number) , country_id (number) | match_season : country (number) , position (text) , season (number)


Question: Which college have both players with position midfielder and players with position defender?

country : country_id (number) , country_name (text) , capital (text) , official_native_language (text) | team : team_id (number) , name (text) | match_season : season (number) , player (text) , position (text) , country (number) , team (number) , draft_pick_number (number) , draft_class (text) , college (text) | player : player_id (number) , player (text) , years_played (text) , total_wl (text) , singles_wl (text) , doubles_wl (text) , team (number)

match_season : college (text) , position (text) , season (number)


Question: Return the colleges that have players who play the Midfielder position, as well as players who play the Defender position.

country : country_id (number) , country_name (text) , capital (text) , official_native_language (text) | team : team_id (number) , name (text) | match_season : season (number) , player (text) , position (text) , country (number) , team (number) , draft_pick_number (number) , draft_class (text) , college (text) | player : player_id (number) , player (text) , years_played (text) , total_wl (text) , singles_wl (text) , doubles_wl (text) , team (number)

match_season : college (text) , position (text) , season (number)


Question: How many climbers are there?

mountain : mountain_id (number) , name (text) , height (number) , prominence (number) , range (text) , country (text) | climber : climber_id (number) , name (text) , country (text) , time (text) , points (number) , mountain_id (number)


Question: Count the number of climbers.

mountain : mountain_id (number) , name (text) , height (number) , prominence (number) , range (text) , country (text) | climber : climber_id (number) , name (text) , country (text) , time (text) , points (number) , mountain_id (number)


Question: List the names of climbers in descending order of points.

mountain : mountain_id (number) , name (text) , height (number) , prominence (number) , range (text) , country (text) | climber : climber_id (number) , name (text) , country (text) , time (text) , points (number) , mountain_id (number)

mountain : name (text) , mountain_id (number) | climber : name (text) , points (number) , climber_id (number)


Question: What are the names of the climbers, ordered by points descending?

mountain : mountain_id (number) , name (text) , height (number) , prominence (number) , range (text) , country (text) | climber : climber_id (number) , name (text) , country (text) , time (text) , points (number) , mountain_id (number)

mountain : name (text) , mountain_id (number) | climber : name (text) , points (number) , climber_id (number)


Question: List the names of climbers whose country is not Switzerland.

mountain : mountain_id (number) , name (text) , height (number) , prominence (number) , range (text) , country (text) | climber : climber_id (number) , name (text) , country (text) , time (text) , points (number) , mountain_id (number)

mountain : name (text) , country (text) , mountain_id (number) | climber : name (text) , country (text) , climber_id (number)


Question: What are the names of climbers who are not from the country of Switzerland?

mountain : mountain_id (number) , name (text) , height (number) , prominence (number) , range (text) , country (text) | climber : climber_id (number) , name (text) , country (text) , time (text) , points (number) , mountain_id (number)

mountain : name (text) , country (text) , mountain_id (number) | climber : name (text) , country (text) , climber_id (number)


Question: What is the maximum point for climbers whose country is United Kingdom?

mountain : mountain_id (number) , name (text) , height (number) , prominence (number) , range (text) , country (text) | climber : climber_id (number) , name (text) , country (text) , time (text) , points (number) , mountain_id (number)

climber : points (number) , country (text) , climber_id (number) | mountain : country (text) , mountain_id (number)


Question: Return the maximum number of points for climbers from the United Kingdom.

mountain : mountain_id (number) , name (text) , height (number) , prominence (number) , range (text) , country (text) | climber : climber_id (number) , name (text) , country (text) , time (text) , points (number) , mountain_id (number)

climber : points (number) , country (text) , climber_id (number) | mountain : country (text) , mountain_id (number)


Question: How many distinct countries are the climbers from?

mountain : mountain_id (number) , name (text) , height (number) , prominence (number) , range (text) , country (text) | climber : climber_id (number) , name (text) , country (text) , time (text) , points (number) , mountain_id (number)

mountain : country (text) , mountain_id (number) | climber : country (text) , climber_id (number)


Question: Count the number of different countries that climbers are from.

mountain : mountain_id (number) , name (text) , height (number) , prominence (number) , range (text) , country (text) | climber : climber_id (number) , name (text) , country (text) , time (text) , points (number) , mountain_id (number)

mountain : country (text) , mountain_id (number) | climber : country (text) , climber_id (number)


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

mountain : mountain_id (number) , name (text) , height (number) , prominence (number) , range (text) , country (text) | climber : climber_id (number) , name (text) , country (text) , time (text) , points (number) , mountain_id (number)

mountain : name (text) , mountain_id (number) | climber : name (text) , climber_id (number)


Question: Give the names of mountains in alphabetical order.

mountain : mountain_id (number) , name (text) , height (number) , prominence (number) , range (text) , country (text) | climber : climber_id (number) , name (text) , country (text) , time (text) , points (number) , mountain_id (number)

mountain : name (text) , mountain_id (number) | climber : name (text) , climber_id (number)


Question: What are the countries of mountains with height bigger than 5000?

mountain : mountain_id (number) , name (text) , height (number) , prominence (number) , range (text) , country (text) | climber : climber_id (number) , name (text) , country (text) , time (text) , points (number) , mountain_id (number)

mountain : country (text) , height (number) , mountain_id (number) | climber : country (text) , climber_id (number)


Question: Return the countries of the mountains that have a height larger than 5000.

mountain : mountain_id (number) , name (text) , height (number) , prominence (number) , range (text) , country (text) | climber : climber_id (number) , name (text) , country (text) , time (text) , points (number) , mountain_id (number)

mountain : country (text) , height (number) , mountain_id (number) | climber : country (text) , climber_id (number)


Question: What is the name of the highest mountain?

mountain : mountain_id (number) , name (text) , height (number) , prominence (number) , range (text) , country (text) | climber : climber_id (number) , name (text) , country (text) , time (text) , points (number) , mountain_id (number)

mountain : name (text) , height (number) , mountain_id (number) | climber : name (text) , climber_id (number)


Question: Return the name of the mountain with the greatest height.

mountain : mountain_id (number) , name (text) , height (number) , prominence (number) , range (text) , country (text) | climber : climber_id (number) , name (text) , country (text) , time (text) , points (number) , mountain_id (number)

mountain : name (text) , height (number) , mountain_id (number) | climber : name (text) , climber_id (number)


Question: List the distinct ranges of the mountains with the top 3 prominence.

mountain : mountain_id (number) , name (text) , height (number) , prominence (number) , range (text) , country (text) | climber : climber_id (number) , name (text) , country (text) , time (text) , points (number) , mountain_id (number)

mountain : range (text) , prominence (number) , mountain_id (number)


Question: What are the different ranges of the 3 mountains with the highest prominence?

mountain : mountain_id (number) , name (text) , height (number) , prominence (number) , range (text) , country (text) | climber : climber_id (number) , name (text) , country (text) , time (text) , points (number) , mountain_id (number)

mountain : range (text) , prominence (number) , mountain_id (number)


Question: Show names of climbers and the names of mountains they climb.

mountain : mountain_id (number) , name (text) , height (number) , prominence (number) , range (text) , country (text) | climber : climber_id (number) , name (text) , country (text) , time (text) , points (number) , mountain_id (number)

mountain : name (text) , mountain_id (number) , mountain_id (number) | climber : name (text) , mountain_id (number) , climber_id (number)


Question: What are the names of climbers and the corresponding names of mountains that they climb?

mountain : mountain_id (number) , name (text) , height (number) , prominence (number) , range (text) , country (text) | climber : climber_id (number) , name (text) , country (text) , time (text) , points (number) , mountain_id (number)

mountain : name (text) , mountain_id (number) , mountain_id (number) | climber : name (text) , mountain_id (number) , climber_id (number)


Question: Show the names of climbers and the heights of mountains they climb.

mountain : mountain_id (number) , name (text) , height (number) , prominence (number) , range (text) , country (text) | climber : climber_id (number) , name (text) , country (text) , time (text) , points (number) , mountain_id (number)

mountain : name (text) , height (number) , mountain_id (number) , mountain_id (number) | climber : name (text) , mountain_id (number) , climber_id (number)


Question: What are the names of climbers and the corresponding heights of the mountains that they climb?

mountain : mountain_id (number) , name (text) , height (number) , prominence (number) , range (text) , country (text) | climber : climber_id (number) , name (text) , country (text) , time (text) , points (number) , mountain_id (number)

mountain : name (text) , height (number) , mountain_id (number) , mountain_id (number) | climber : name (text) , mountain_id (number) , climber_id (number)


Question: Show the height of the mountain climbed by the climber with the maximum points.

mountain : mountain_id (number) , name (text) , height (number) , prominence (number) , range (text) , country (text) | climber : climber_id (number) , name (text) , country (text) , time (text) , points (number) , mountain_id (number)

mountain : height (number) , mountain_id (number) , mountain_id (number) | climber : mountain_id (number) , points (number) , climber_id (number)


Question: What is the height of the mountain climbined by the climbing who had the most points?

mountain : mountain_id (number) , name (text) , height (number) , prominence (number) , range (text) , country (text) | climber : climber_id (number) , name (text) , country (text) , time (text) , points (number) , mountain_id (number)

mountain : height (number) , mountain_id (number) , mountain_id (number) | climber : mountain_id (number) , points (number) , climber_id (number)


Question: Show the distinct names of mountains climbed by climbers from country "West Germany".

mountain : mountain_id (number) , name (text) , height (number) , prominence (number) , range (text) , country (text) | climber : climber_id (number) , name (text) , country (text) , time (text) , points (number) , mountain_id (number)

mountain : name (text) , mountain_id (number) , country (text) , mountain_id (number) | climber : name (text) , mountain_id (number) , country (text) , climber_id (number)


Question: What are the different names of mountains ascended by climbers from the country of West Germany?

mountain : mountain_id (number) , name (text) , height (number) , prominence (number) , range (text) , country (text) | climber : climber_id (number) , name (text) , country (text) , time (text) , points (number) , mountain_id (number)

mountain : name (text) , mountain_id (number) , country (text) , mountain_id (number) | climber : name (text) , mountain_id (number) , country (text) , climber_id (number)


Question: Show the times used by climbers to climb mountains in Country Uganda.

mountain : mountain_id (number) , name (text) , height (number) , prominence (number) , range (text) , country (text) | climber : climber_id (number) , name (text) , country (text) , time (text) , points (number) , mountain_id (number)

climber : time (text) , mountain_id (number) , country (text) , climber_id (number) | mountain : mountain_id (number) , country (text) , mountain_id (number)


Question: What are the times used by climbers who climbed mountains in the country of Uganda?

mountain : mountain_id (number) , name (text) , height (number) , prominence (number) , range (text) , country (text) | climber : climber_id (number) , name (text) , country (text) , time (text) , points (number) , mountain_id (number)

climber : time (text) , mountain_id (number) , country (text) , climber_id (number) | mountain : mountain_id (number) , country (text) , mountain_id (number)


Question: Please show the countries and the number of climbers from each country.

mountain : mountain_id (number) , name (text) , height (number) , prominence (number) , range (text) , country (text) | climber : climber_id (number) , name (text) , country (text) , time (text) , points (number) , mountain_id (number)

mountain : country (text) , mountain_id (number) | climber : country (text) , climber_id (number)


Question: How many climbers are from each country?

mountain : mountain_id (number) , name (text) , height (number) , prominence (number) , range (text) , country (text) | climber : climber_id (number) , name (text) , country (text) , time (text) , points (number) , mountain_id (number)

mountain : country (text) , mountain_id (number) | climber : country (text) , climber_id (number)


Question: List the countries that have more than one mountain.

mountain : mountain_id (number) , name (text) , height (number) , prominence (number) , range (text) , country (text) | climber : climber_id (number) , name (text) , country (text) , time (text) , points (number) , mountain_id (number)

mountain : country (text) , mountain_id (number) | climber : country (text) , climber_id (number)


Question: Which countries have more than one mountain?

mountain : mountain_id (number) , name (text) , height (number) , prominence (number) , range (text) , country (text) | climber : climber_id (number) , name (text) , country (text) , time (text) , points (number) , mountain_id (number)

mountain : country (text) , mountain_id (number) | climber : country (text) , climber_id (number)


Question: List the names of mountains that do not have any climber.

mountain : mountain_id (number) , name (text) , height (number) , prominence (number) , range (text) , country (text) | climber : climber_id (number) , name (text) , country (text) , time (text) , points (number) , mountain_id (number)

mountain : name (text) , mountain_id (number) , mountain_id (number) | climber : name (text) , mountain_id (number) , climber_id (number)


Question: What are the names of countains that no climber has climbed?

mountain : mountain_id (number) , name (text) , height (number) , prominence (number) , range (text) , country (text) | climber : climber_id (number) , name (text) , country (text) , time (text) , points (number) , mountain_id (number)

mountain : name (text) , mountain_id (number) , mountain_id (number) | climber : name (text) , mountain_id (number) , climber_id (number)


Question: Show the countries that have mountains with height more than 5600 stories and mountains with height less than 5200.

mountain : mountain_id (number) , name (text) , height (number) , prominence (number) , range (text) , country (text) | climber : climber_id (number) , name (text) , country (text) , time (text) , points (number) , mountain_id (number)

mountain : country (text) , height (number) , mountain_id (number) | climber : country (text) , climber_id (number)


Question: What are the countries that have both mountains that are higher than 5600 and lower than 5200?

mountain : mountain_id (number) , name (text) , height (number) , prominence (number) , range (text) , country (text) | climber : climber_id (number) , name (text) , country (text) , time (text) , points (number) , mountain_id (number)

mountain : country (text) , height (number) , mountain_id (number) | climber : country (text) , climber_id (number)


Question: Show the range that has the most number of mountains.

mountain : mountain_id (number) , name (text) , height (number) , prominence (number) , range (text) , country (text) | climber : climber_id (number) , name (text) , country (text) , time (text) , points (number) , mountain_id (number)

mountain : range (text) , mountain_id (number)


Question: Which range contains the most mountains?

mountain : mountain_id (number) , name (text) , height (number) , prominence (number) , range (text) , country (text) | climber : climber_id (number) , name (text) , country (text) , time (text) , points (number) , mountain_id (number)

mountain : range (text) , mountain_id (number)


Question: Show the names of mountains with height more than 5000 or prominence more than 1000.

mountain : mountain_id (number) , name (text) , height (number) , prominence (number) , range (text) , country (text) | climber : climber_id (number) , name (text) , country (text) , time (text) , points (number) , mountain_id (number)

mountain : name (text) , height (number) , prominence (number) , mountain_id (number) | climber : name (text) , climber_id (number)


Question: What are the names of mountains that have a height of over 5000 or a prominence of over 1000?

mountain : mountain_id (number) , name (text) , height (number) , prominence (number) , range (text) , country (text) | climber : climber_id (number) , name (text) , country (text) , time (text) , points (number) , mountain_id (number)

mountain : name (text) , height (number) , prominence (number) , mountain_id (number) | climber : name (text) , climber_id (number)


Question: How many body builders are there?

body_builder : body_builder_id (number) , people_id (number) , snatch (number) , clean_jerk (number) , total (number) | people : people_id (number) , name (text) , height (number) , weight (number) , birth_date (text) , birth_place (text)


Question: List the total scores of body builders in ascending order.

body_builder : body_builder_id (number) , people_id (number) , snatch (number) , clean_jerk (number) , total (number) | people : people_id (number) , name (text) , height (number) , weight (number) , birth_date (text) , birth_place (text)

body_builder : total (number) , body_builder_id (number)


Question: List the snatch score and clean jerk score of body builders in ascending order of snatch score.

body_builder : body_builder_id (number) , people_id (number) , snatch (number) , clean_jerk (number) , total (number) | people : people_id (number) , name (text) , height (number) , weight (number) , birth_date (text) , birth_place (text)

body_builder : snatch (number) , clean_jerk (number) , body_builder_id (number)


Question: What is the average snatch score of body builders?

body_builder : body_builder_id (number) , people_id (number) , snatch (number) , clean_jerk (number) , total (number) | people : people_id (number) , name (text) , height (number) , weight (number) , birth_date (text) , birth_place (text)

body_builder : snatch (number) , body_builder_id (number)


Question: What are the clean and jerk score of the body builder with the highest total score?

body_builder : body_builder_id (number) , people_id (number) , snatch (number) , clean_jerk (number) , total (number) | people : people_id (number) , name (text) , height (number) , weight (number) , birth_date (text) , birth_place (text)

body_builder : clean_jerk (number) , total (number) , body_builder_id (number)


Question: What are the birthdays of people in ascending order of height?

body_builder : body_builder_id (number) , people_id (number) , snatch (number) , clean_jerk (number) , total (number) | people : people_id (number) , name (text) , height (number) , weight (number) , birth_date (text) , birth_place (text)

people : birth_date (text) , height (number) , people_id (number)


Question: What are the names of body builders?

body_builder : body_builder_id (number) , people_id (number) , snatch (number) , clean_jerk (number) , total (number) | people : people_id (number) , name (text) , height (number) , weight (number) , birth_date (text) , birth_place (text)

people : name (text) , people_id (number) , people_id (number) | body_builder : people_id (number) , body_builder_id (number)


Question: What are the names of body builders whose total score is higher than 300?

body_builder : body_builder_id (number) , people_id (number) , snatch (number) , clean_jerk (number) , total (number) | people : people_id (number) , name (text) , height (number) , weight (number) , birth_date (text) , birth_place (text)

people : name (text) , people_id (number) , people_id (number) | body_builder : people_id (number) , total (number) , body_builder_id (number)


Question: What is the name of the body builder with the greatest body weight?

body_builder : body_builder_id (number) , people_id (number) , snatch (number) , clean_jerk (number) , total (number) | people : people_id (number) , name (text) , height (number) , weight (number) , birth_date (text) , birth_place (text)

people : name (text) , people_id (number) , weight (number) , people_id (number) | body_builder : people_id (number) , body_builder_id (number)


Question: What are the birth date and birth place of the body builder with the highest total points?

body_builder : body_builder_id (number) , people_id (number) , snatch (number) , clean_jerk (number) , total (number) | people : people_id (number) , name (text) , height (number) , weight (number) , birth_date (text) , birth_place (text)

people : birth_date (text) , birth_place (text) , people_id (number) , people_id (number) | body_builder : people_id (number) , total (number) , body_builder_id (number)


Question: What are the heights of body builders with total score smaller than 315?

body_builder : body_builder_id (number) , people_id (number) , snatch (number) , clean_jerk (number) , total (number) | people : people_id (number) , name (text) , height (number) , weight (number) , birth_date (text) , birth_place (text)

people : height (number) , people_id (number) , people_id (number) | body_builder : people_id (number) , total (number) , body_builder_id (number)


Question: What is the average total score of body builders with height bigger than 200?

body_builder : body_builder_id (number) , people_id (number) , snatch (number) , clean_jerk (number) , total (number) | people : people_id (number) , name (text) , height (number) , weight (number) , birth_date (text) , birth_place (text)

body_builder : total (number) , people_id (number) , body_builder_id (number) | people : people_id (number) , height (number) , people_id (number)


Question: What are the names of body builders in descending order of total scores?

body_builder : body_builder_id (number) , people_id (number) , snatch (number) , clean_jerk (number) , total (number) | people : people_id (number) , name (text) , height (number) , weight (number) , birth_date (text) , birth_place (text)

people : name (text) , people_id (number) , people_id (number) | body_builder : people_id (number) , total (number) , body_builder_id (number)


Question: List each birth place along with the number of people from there.

body_builder : body_builder_id (number) , people_id (number) , snatch (number) , clean_jerk (number) , total (number) | people : people_id (number) , name (text) , height (number) , weight (number) , birth_date (text) , birth_place (text)

people : birth_place (text) , people_id (number)


Question: What is the most common birth place of people?

body_builder : body_builder_id (number) , people_id (number) , snatch (number) , clean_jerk (number) , total (number) | people : people_id (number) , name (text) , height (number) , weight (number) , birth_date (text) , birth_place (text)

people : birth_place (text) , people_id (number)


Question: What are the birth places that are shared by at least two people?

body_builder : body_builder_id (number) , people_id (number) , snatch (number) , clean_jerk (number) , total (number) | people : people_id (number) , name (text) , height (number) , weight (number) , birth_date (text) , birth_place (text)

people : birth_place (text) , people_id (number)


Question: List the height and weight of people in descending order of height.

body_builder : body_builder_id (number) , people_id (number) , snatch (number) , clean_jerk (number) , total (number) | people : people_id (number) , name (text) , height (number) , weight (number) , birth_date (text) , birth_place (text)

people : height (number) , weight (number) , people_id (number)


Question: Show all information about each body builder.

body_builder : body_builder_id (number) , people_id (number) , snatch (number) , clean_jerk (number) , total (number) | people : people_id (number) , name (text) , height (number) , weight (number) , birth_date (text) , birth_place (text)


Question: List the names and origins of people who are not body builders.

body_builder : body_builder_id (number) , people_id (number) , snatch (number) , clean_jerk (number) , total (number) | people : people_id (number) , name (text) , height (number) , weight (number) , birth_date (text) , birth_place (text)

people : name (text) , birth_place (text) , people_id (number) , people_id (number) | body_builder : people_id (number) , body_builder_id (number)


Question: How many distinct birth places are there?

body_builder : body_builder_id (number) , people_id (number) , snatch (number) , clean_jerk (number) , total (number) | people : people_id (number) , name (text) , height (number) , weight (number) , birth_date (text) , birth_place (text)

people : birth_place (text) , people_id (number)


Question: How many persons are not body builders?

body_builder : body_builder_id (number) , people_id (number) , snatch (number) , clean_jerk (number) , total (number) | people : people_id (number) , name (text) , height (number) , weight (number) , birth_date (text) , birth_place (text)

body_builder : people_id (number) , body_builder_id (number) | people : people_id (number) , people_id (number)


Question: List the weight of the body builders who have snatch score higher than 140 or have the height greater than 200.

body_builder : body_builder_id (number) , people_id (number) , snatch (number) , clean_jerk (number) , total (number) | people : people_id (number) , name (text) , height (number) , weight (number) , birth_date (text) , birth_place (text)

people : weight (number) , people_id (number) , height (number) , people_id (number) | body_builder : people_id (number) , snatch (number) , body_builder_id (number)


Question: What are the total scores of the body builders whose birthday contains the string "January" ?

body_builder : body_builder_id (number) , people_id (number) , snatch (number) , clean_jerk (number) , total (number) | people : people_id (number) , name (text) , height (number) , weight (number) , birth_date (text) , birth_place (text)

body_builder : total (number) , people_id (number) , body_builder_id (number) | people : people_id (number) , birth_date (text) , people_id (number)


Question: What is the minimum snatch score?

body_builder : body_builder_id (number) , people_id (number) , snatch (number) , clean_jerk (number) , total (number) | people : people_id (number) , name (text) , height (number) , weight (number) , birth_date (text) , birth_place (text)

body_builder : snatch (number) , body_builder_id (number)


Question: How many elections are there?

election : election_id (number) , representative_id (number) , date (text) , votes (number) , vote_percent (number) , seats (number) , place (number) | representative : representative_id (number) , name (text) , state (text) , party (text) , lifespan (text)


Question: List the votes of elections in descending order.

election : election_id (number) , representative_id (number) , date (text) , votes (number) , vote_percent (number) , seats (number) , place (number) | representative : representative_id (number) , name (text) , state (text) , party (text) , lifespan (text)

election : votes (number) , election_id (number)


Question: List the dates and vote percents of elections.

election : election_id (number) , representative_id (number) , date (text) , votes (number) , vote_percent (number) , seats (number) , place (number) | representative : representative_id (number) , name (text) , state (text) , party (text) , lifespan (text)

election : date (text) , vote_percent (number) , election_id (number)


Question: What are the minimum and maximum vote percents of elections?

election : election_id (number) , representative_id (number) , date (text) , votes (number) , vote_percent (number) , seats (number) , place (number) | representative : representative_id (number) , name (text) , state (text) , party (text) , lifespan (text)

election : vote_percent (number) , election_id (number)


Question: What are the names and parties of representatives?

election : election_id (number) , representative_id (number) , date (text) , votes (number) , vote_percent (number) , seats (number) , place (number) | representative : representative_id (number) , name (text) , state (text) , party (text) , lifespan (text)

representative : name (text) , party (text) , representative_id (number)


Question: What are the names of representatives whose party is not "Republican"?

election : election_id (number) , representative_id (number) , date (text) , votes (number) , vote_percent (number) , seats (number) , place (number) | representative : representative_id (number) , name (text) , state (text) , party (text) , lifespan (text)

representative : name (text) , party (text) , representative_id (number)


Question: What are the life spans of representatives from New York state or Indiana state?

election : election_id (number) , representative_id (number) , date (text) , votes (number) , vote_percent (number) , seats (number) , place (number) | representative : representative_id (number) , name (text) , state (text) , party (text) , lifespan (text)

representative : lifespan (text) , state (text) , representative_id (number)


Question: What are the names of representatives and the dates of elections they participated in.

election : election_id (number) , representative_id (number) , date (text) , votes (number) , vote_percent (number) , seats (number) , place (number) | representative : representative_id (number) , name (text) , state (text) , party (text) , lifespan (text)

representative : name (text) , representative_id (number) , representative_id (number) | election : date (text) , representative_id (number) , election_id (number)


Question: What are the names of representatives with more than 10000 votes in election?

election : election_id (number) , representative_id (number) , date (text) , votes (number) , vote_percent (number) , seats (number) , place (number) | representative : representative_id (number) , name (text) , state (text) , party (text) , lifespan (text)

representative : name (text) , representative_id (number) , representative_id (number) | election : representative_id (number) , votes (number) , election_id (number)


Question: What are the names of representatives in descending order of votes?

election : election_id (number) , representative_id (number) , date (text) , votes (number) , vote_percent (number) , seats (number) , place (number) | representative : representative_id (number) , name (text) , state (text) , party (text) , lifespan (text)

representative : name (text) , representative_id (number) , representative_id (number) | election : representative_id (number) , votes (number) , election_id (number)


Question: What is the party of the representative that has the smallest number of votes.

election : election_id (number) , representative_id (number) , date (text) , votes (number) , vote_percent (number) , seats (number) , place (number) | representative : representative_id (number) , name (text) , state (text) , party (text) , lifespan (text)

representative : party (text) , representative_id (number) , representative_id (number) | election : representative_id (number) , votes (number) , election_id (number)


Question: What are the lifespans of representatives in descending order of vote percent?

election : election_id (number) , representative_id (number) , date (text) , votes (number) , vote_percent (number) , seats (number) , place (number) | representative : representative_id (number) , name (text) , state (text) , party (text) , lifespan (text)

representative : lifespan (text) , representative_id (number) , representative_id (number) | election : representative_id (number) , vote_percent (number) , election_id (number)


Question: What is the average number of votes of representatives from party "Republican"?

election : election_id (number) , representative_id (number) , date (text) , votes (number) , vote_percent (number) , seats (number) , place (number) | representative : representative_id (number) , name (text) , state (text) , party (text) , lifespan (text)

election : votes (number) , representative_id (number) , election_id (number) | representative : representative_id (number) , party (text) , representative_id (number)


Question: What are the different parties of representative? Show the party name and the number of representatives in each party.

election : election_id (number) , representative_id (number) , date (text) , votes (number) , vote_percent (number) , seats (number) , place (number) | representative : representative_id (number) , name (text) , state (text) , party (text) , lifespan (text)

representative : party (text) , representative_id (number)


Question: What is the party that has the largest number of representatives?

election : election_id (number) , representative_id (number) , date (text) , votes (number) , vote_percent (number) , seats (number) , place (number) | representative : representative_id (number) , name (text) , state (text) , party (text) , lifespan (text)

representative : party (text) , representative_id (number)


Question: What parties have at least three representatives?

election : election_id (number) , representative_id (number) , date (text) , votes (number) , vote_percent (number) , seats (number) , place (number) | representative : representative_id (number) , name (text) , state (text) , party (text) , lifespan (text)

representative : party (text) , representative_id (number)


Question: What states have at least two representatives?

election : election_id (number) , representative_id (number) , date (text) , votes (number) , vote_percent (number) , seats (number) , place (number) | representative : representative_id (number) , name (text) , state (text) , party (text) , lifespan (text)

representative : state (text) , representative_id (number)


Question: List the names of representatives that have not participated in elections listed here.

election : election_id (number) , representative_id (number) , date (text) , votes (number) , vote_percent (number) , seats (number) , place (number) | representative : representative_id (number) , name (text) , state (text) , party (text) , lifespan (text)

representative : name (text) , representative_id (number) , representative_id (number) | election : representative_id (number) , election_id (number)


Question: Show the parties that have both representatives in New York state and representatives in Pennsylvania state.

election : election_id (number) , representative_id (number) , date (text) , votes (number) , vote_percent (number) , seats (number) , place (number) | representative : representative_id (number) , name (text) , state (text) , party (text) , lifespan (text)

representative : party (text) , state (text) , representative_id (number)


Question: How many distinct parties are there for representatives?

election : election_id (number) , representative_id (number) , date (text) , votes (number) , vote_percent (number) , seats (number) , place (number) | representative : representative_id (number) , name (text) , state (text) , party (text) , lifespan (text)

representative : party (text) , representative_id (number)


Question: How many apartment bookings are there in total?

apartment_buildings : building_id (number) , building_short_name (text) , building_full_name (text) , building_description (text) , building_address (text) , building_manager (text) , building_phone (text) | apartments : apt_id (number) , building_id (number) , apt_type_code (text) , apt_number (text) , bathroom_count (number) , bedroom_count (number) , room_count (text) | apartment_facilities : apt_id (number) , facility_code (text) | guests : guest_id (number) , gender_code (text) , guest_first_name (text) , guest_last_name (text) , date_of_birth (time) | apartment_bookings : apt_booking_id (number) , apt_id (number) , guest_id (number) , booking_status_code (text) , booking_start_date (time) , booking_end_date (time) | view_unit_status : apt_id (number) , apt_booking_id (number) , status_date (time) , available_yn (others)


Question: Count the total number of apartment bookings.

apartment_buildings : building_id (number) , building_short_name (text) , building_full_name (text) , building_description (text) , building_address (text) , building_manager (text) , building_phone (text) | apartments : apt_id (number) , building_id (number) , apt_type_code (text) , apt_number (text) , bathroom_count (number) , bedroom_count (number) , room_count (text) | apartment_facilities : apt_id (number) , facility_code (text) | guests : guest_id (number) , gender_code (text) , guest_first_name (text) , guest_last_name (text) , date_of_birth (time) | apartment_bookings : apt_booking_id (number) , apt_id (number) , guest_id (number) , booking_status_code (text) , booking_start_date (time) , booking_end_date (time) | view_unit_status : apt_id (number) , apt_booking_id (number) , status_date (time) , available_yn (others)


Question: Show the start dates and end dates of all the apartment bookings.

apartment_buildings : building_id (number) , building_short_name (text) , building_full_name (text) , building_description (text) , building_address (text) , building_manager (text) , building_phone (text) | apartments : apt_id (number) , building_id (number) , apt_type_code (text) , apt_number (text) , bathroom_count (number) , bedroom_count (number) , room_count (text) | apartment_facilities : apt_id (number) , facility_code (text) | guests : guest_id (number) , gender_code (text) , guest_first_name (text) , guest_last_name (text) , date_of_birth (time) | apartment_bookings : apt_booking_id (number) , apt_id (number) , guest_id (number) , booking_status_code (text) , booking_start_date (time) , booking_end_date (time) | view_unit_status : apt_id (number) , apt_booking_id (number) , status_date (time) , available_yn (others)

apartment_bookings : booking_start_date (time) , booking_end_date (time) , apt_booking_id (number)


Question: What are the start date and end date of each apartment booking?

apartment_buildings : building_id (number) , building_short_name (text) , building_full_name (text) , building_description (text) , building_address (text) , building_manager (text) , building_phone (text) | apartments : apt_id (number) , building_id (number) , apt_type_code (text) , apt_number (text) , bathroom_count (number) , bedroom_count (number) , room_count (text) | apartment_facilities : apt_id (number) , facility_code (text) | guests : guest_id (number) , gender_code (text) , guest_first_name (text) , guest_last_name (text) , date_of_birth (time) | apartment_bookings : apt_booking_id (number) , apt_id (number) , guest_id (number) , booking_status_code (text) , booking_start_date (time) , booking_end_date (time) | view_unit_status : apt_id (number) , apt_booking_id (number) , status_date (time) , available_yn (others)

apartment_bookings : booking_start_date (time) , booking_end_date (time) , apt_booking_id (number)


Question: Show all distinct building descriptions.

apartment_buildings : building_id (number) , building_short_name (text) , building_full_name (text) , building_description (text) , building_address (text) , building_manager (text) , building_phone (text) | apartments : apt_id (number) , building_id (number) , apt_type_code (text) , apt_number (text) , bathroom_count (number) , bedroom_count (number) , room_count (text) | apartment_facilities : apt_id (number) , facility_code (text) | guests : guest_id (number) , gender_code (text) , guest_first_name (text) , guest_last_name (text) , date_of_birth (time) | apartment_bookings : apt_booking_id (number) , apt_id (number) , guest_id (number) , booking_status_code (text) , booking_start_date (time) , booking_end_date (time) | view_unit_status : apt_id (number) , apt_booking_id (number) , status_date (time) , available_yn (others)

apartment_buildings : building_description (text) , building_id (number)


Question: Give me a list of all the distinct building descriptions.

apartment_buildings : building_id (number) , building_short_name (text) , building_full_name (text) , building_description (text) , building_address (text) , building_manager (text) , building_phone (text) | apartments : apt_id (number) , building_id (number) , apt_type_code (text) , apt_number (text) , bathroom_count (number) , bedroom_count (number) , room_count (text) | apartment_facilities : apt_id (number) , facility_code (text) | guests : guest_id (number) , gender_code (text) , guest_first_name (text) , guest_last_name (text) , date_of_birth (time) | apartment_bookings : apt_booking_id (number) , apt_id (number) , guest_id (number) , booking_status_code (text) , booking_start_date (time) , booking_end_date (time) | view_unit_status : apt_id (number) , apt_booking_id (number) , status_date (time) , available_yn (others)

apartment_buildings : building_description (text) , building_id (number)


Question: Show the short names of the buildings managed by "Emma".

apartment_buildings : building_id (number) , building_short_name (text) , building_full_name (text) , building_description (text) , building_address (text) , building_manager (text) , building_phone (text) | apartments : apt_id (number) , building_id (number) , apt_type_code (text) , apt_number (text) , bathroom_count (number) , bedroom_count (number) , room_count (text) | apartment_facilities : apt_id (number) , facility_code (text) | guests : guest_id (number) , gender_code (text) , guest_first_name (text) , guest_last_name (text) , date_of_birth (time) | apartment_bookings : apt_booking_id (number) , apt_id (number) , guest_id (number) , booking_status_code (text) , booking_start_date (time) , booking_end_date (time) | view_unit_status : apt_id (number) , apt_booking_id (number) , status_date (time) , available_yn (others)

apartment_buildings : building_short_name (text) , building_manager (text) , building_id (number)


Question: Which buildings does "Emma" manage? Give me the short names of the buildings.

apartment_buildings : building_id (number) , building_short_name (text) , building_full_name (text) , building_description (text) , building_address (text) , building_manager (text) , building_phone (text) | apartments : apt_id (number) , building_id (number) , apt_type_code (text) , apt_number (text) , bathroom_count (number) , bedroom_count (number) , room_count (text) | apartment_facilities : apt_id (number) , facility_code (text) | guests : guest_id (number) , gender_code (text) , guest_first_name (text) , guest_last_name (text) , date_of_birth (time) | apartment_bookings : apt_booking_id (number) , apt_id (number) , guest_id (number) , booking_status_code (text) , booking_start_date (time) , booking_end_date (time) | view_unit_status : apt_id (number) , apt_booking_id (number) , status_date (time) , available_yn (others)

apartment_buildings : building_short_name (text) , building_manager (text) , building_id (number)


Question: Show the addresses and phones of all the buildings managed by "Brenden".

apartment_buildings : building_id (number) , building_short_name (text) , building_full_name (text) , building_description (text) , building_address (text) , building_manager (text) , building_phone (text) | apartments : apt_id (number) , building_id (number) , apt_type_code (text) , apt_number (text) , bathroom_count (number) , bedroom_count (number) , room_count (text) | apartment_facilities : apt_id (number) , facility_code (text) | guests : guest_id (number) , gender_code (text) , guest_first_name (text) , guest_last_name (text) , date_of_birth (time) | apartment_bookings : apt_booking_id (number) , apt_id (number) , guest_id (number) , booking_status_code (text) , booking_start_date (time) , booking_end_date (time) | view_unit_status : apt_id (number) , apt_booking_id (number) , status_date (time) , available_yn (others)

apartment_buildings : building_address (text) , building_phone (text) , building_manager (text) , building_id (number)


Question: What are the address and phone number of the buildings managed by "Brenden"?

apartment_buildings : building_id (number) , building_short_name (text) , building_full_name (text) , building_description (text) , building_address (text) , building_manager (text) , building_phone (text) | apartments : apt_id (number) , building_id (number) , apt_type_code (text) , apt_number (text) , bathroom_count (number) , bedroom_count (number) , room_count (text) | apartment_facilities : apt_id (number) , facility_code (text) | guests : guest_id (number) , gender_code (text) , guest_first_name (text) , guest_last_name (text) , date_of_birth (time) | apartment_bookings : apt_booking_id (number) , apt_id (number) , guest_id (number) , booking_status_code (text) , booking_start_date (time) , booking_end_date (time) | view_unit_status : apt_id (number) , apt_booking_id (number) , status_date (time) , available_yn (others)

apartment_buildings : building_address (text) , building_phone (text) , building_manager (text) , building_id (number)


Question: What are the building full names that contain the word "court"?

apartment_buildings : building_id (number) , building_short_name (text) , building_full_name (text) , building_description (text) , building_address (text) , building_manager (text) , building_phone (text) | apartments : apt_id (number) , building_id (number) , apt_type_code (text) , apt_number (text) , bathroom_count (number) , bedroom_count (number) , room_count (text) | apartment_facilities : apt_id (number) , facility_code (text) | guests : guest_id (number) , gender_code (text) , guest_first_name (text) , guest_last_name (text) , date_of_birth (time) | apartment_bookings : apt_booking_id (number) , apt_id (number) , guest_id (number) , booking_status_code (text) , booking_start_date (time) , booking_end_date (time) | view_unit_status : apt_id (number) , apt_booking_id (number) , status_date (time) , available_yn (others)

apartment_buildings : building_full_name (text) , building_id (number)


Question: Find all the building full names containing the word "court".

apartment_buildings : building_id (number) , building_short_name (text) , building_full_name (text) , building_description (text) , building_address (text) , building_manager (text) , building_phone (text) | apartments : apt_id (number) , building_id (number) , apt_type_code (text) , apt_number (text) , bathroom_count (number) , bedroom_count (number) , room_count (text) | apartment_facilities : apt_id (number) , facility_code (text) | guests : guest_id (number) , gender_code (text) , guest_first_name (text) , guest_last_name (text) , date_of_birth (time) | apartment_bookings : apt_booking_id (number) , apt_id (number) , guest_id (number) , booking_status_code (text) , booking_start_date (time) , booking_end_date (time) | view_unit_status : apt_id (number) , apt_booking_id (number) , status_date (time) , available_yn (others)

apartment_buildings : building_full_name (text) , building_id (number)


Question: What is the minimum and maximum number of bathrooms of all the apartments?

apartment_buildings : building_id (number) , building_short_name (text) , building_full_name (text) , building_description (text) , building_address (text) , building_manager (text) , building_phone (text) | apartments : apt_id (number) , building_id (number) , apt_type_code (text) , apt_number (text) , bathroom_count (number) , bedroom_count (number) , room_count (text) | apartment_facilities : apt_id (number) , facility_code (text) | guests : guest_id (number) , gender_code (text) , guest_first_name (text) , guest_last_name (text) , date_of_birth (time) | apartment_bookings : apt_booking_id (number) , apt_id (number) , guest_id (number) , booking_status_code (text) , booking_start_date (time) , booking_end_date (time) | view_unit_status : apt_id (number) , apt_booking_id (number) , status_date (time) , available_yn (others)

apartments : bathroom_count (number) , apt_id (number)


Question: Give me the minimum and maximum bathroom count among all the apartments.

apartment_buildings : building_id (number) , building_short_name (text) , building_full_name (text) , building_description (text) , building_address (text) , building_manager (text) , building_phone (text) | apartments : apt_id (number) , building_id (number) , apt_type_code (text) , apt_number (text) , bathroom_count (number) , bedroom_count (number) , room_count (text) | apartment_facilities : apt_id (number) , facility_code (text) | guests : guest_id (number) , gender_code (text) , guest_first_name (text) , guest_last_name (text) , date_of_birth (time) | apartment_bookings : apt_booking_id (number) , apt_id (number) , guest_id (number) , booking_status_code (text) , booking_start_date (time) , booking_end_date (time) | view_unit_status : apt_id (number) , apt_booking_id (number) , status_date (time) , available_yn (others)

apartments : bathroom_count (number) , apt_id (number)


Question: What is the average number of bedrooms of all apartments?

apartment_buildings : building_id (number) , building_short_name (text) , building_full_name (text) , building_description (text) , building_address (text) , building_manager (text) , building_phone (text) | apartments : apt_id (number) , building_id (number) , apt_type_code (text) , apt_number (text) , bathroom_count (number) , bedroom_count (number) , room_count (text) | apartment_facilities : apt_id (number) , facility_code (text) | guests : guest_id (number) , gender_code (text) , guest_first_name (text) , guest_last_name (text) , date_of_birth (time) | apartment_bookings : apt_booking_id (number) , apt_id (number) , guest_id (number) , booking_status_code (text) , booking_start_date (time) , booking_end_date (time) | view_unit_status : apt_id (number) , apt_booking_id (number) , status_date (time) , available_yn (others)

apartments : bedroom_count (number) , apt_id (number)


Question: Find the average number of bedrooms of all the apartments.

apartment_buildings : building_id (number) , building_short_name (text) , building_full_name (text) , building_description (text) , building_address (text) , building_manager (text) , building_phone (text) | apartments : apt_id (number) , building_id (number) , apt_type_code (text) , apt_number (text) , bathroom_count (number) , bedroom_count (number) , room_count (text) | apartment_facilities : apt_id (number) , facility_code (text) | guests : guest_id (number) , gender_code (text) , guest_first_name (text) , guest_last_name (text) , date_of_birth (time) | apartment_bookings : apt_booking_id (number) , apt_id (number) , guest_id (number) , booking_status_code (text) , booking_start_date (time) , booking_end_date (time) | view_unit_status : apt_id (number) , apt_booking_id (number) , status_date (time) , available_yn (others)

apartments : bedroom_count (number) , apt_id (number)


Question: Return the apartment number and the number of rooms for each apartment.

apartment_buildings : building_id (number) , building_short_name (text) , building_full_name (text) , building_description (text) , building_address (text) , building_manager (text) , building_phone (text) | apartments : apt_id (number) , building_id (number) , apt_type_code (text) , apt_number (text) , bathroom_count (number) , bedroom_count (number) , room_count (text) | apartment_facilities : apt_id (number) , facility_code (text) | guests : guest_id (number) , gender_code (text) , guest_first_name (text) , guest_last_name (text) , date_of_birth (time) | apartment_bookings : apt_booking_id (number) , apt_id (number) , guest_id (number) , booking_status_code (text) , booking_start_date (time) , booking_end_date (time) | view_unit_status : apt_id (number) , apt_booking_id (number) , status_date (time) , available_yn (others)

apartments : apt_number (text) , room_count (text) , apt_id (number)


Question: What are the apartment number and the room count of each apartment?

apartment_buildings : building_id (number) , building_short_name (text) , building_full_name (text) , building_description (text) , building_address (text) , building_manager (text) , building_phone (text) | apartments : apt_id (number) , building_id (number) , apt_type_code (text) , apt_number (text) , bathroom_count (number) , bedroom_count (number) , room_count (text) | apartment_facilities : apt_id (number) , facility_code (text) | guests : guest_id (number) , gender_code (text) , guest_first_name (text) , guest_last_name (text) , date_of_birth (time) | apartment_bookings : apt_booking_id (number) , apt_id (number) , guest_id (number) , booking_status_code (text) , booking_start_date (time) , booking_end_date (time) | view_unit_status : apt_id (number) , apt_booking_id (number) , status_date (time) , available_yn (others)

apartments : apt_number (text) , room_count (text) , apt_id (number)


Question: What is the average number of rooms of apartments with type code "Studio"?

apartment_buildings : building_id (number) , building_short_name (text) , building_full_name (text) , building_description (text) , building_address (text) , building_manager (text) , building_phone (text) | apartments : apt_id (number) , building_id (number) , apt_type_code (text) , apt_number (text) , bathroom_count (number) , bedroom_count (number) , room_count (text) | apartment_facilities : apt_id (number) , facility_code (text) | guests : guest_id (number) , gender_code (text) , guest_first_name (text) , guest_last_name (text) , date_of_birth (time) | apartment_bookings : apt_booking_id (number) , apt_id (number) , guest_id (number) , booking_status_code (text) , booking_start_date (time) , booking_end_date (time) | view_unit_status : apt_id (number) , apt_booking_id (number) , status_date (time) , available_yn (others)

apartments : room_count (text) , apt_type_code (text) , apt_id (number)


Question: Find the average room count of the apartments that have the "Studio" type code.

apartment_buildings : building_id (number) , building_short_name (text) , building_full_name (text) , building_description (text) , building_address (text) , building_manager (text) , building_phone (text) | apartments : apt_id (number) , building_id (number) , apt_type_code (text) , apt_number (text) , bathroom_count (number) , bedroom_count (number) , room_count (text) | apartment_facilities : apt_id (number) , facility_code (text) | guests : guest_id (number) , gender_code (text) , guest_first_name (text) , guest_last_name (text) , date_of_birth (time) | apartment_bookings : apt_booking_id (number) , apt_id (number) , guest_id (number) , booking_status_code (text) , booking_start_date (time) , booking_end_date (time) | view_unit_status : apt_id (number) , apt_booking_id (number) , status_date (time) , available_yn (others)

apartments : room_count (text) , apt_type_code (text) , apt_id (number)


Question: Return the apartment numbers of the apartments with type code "Flat".

apartment_buildings : building_id (number) , building_short_name (text) , building_full_name (text) , building_description (text) , building_address (text) , building_manager (text) , building_phone (text) | apartments : apt_id (number) , building_id (number) , apt_type_code (text) , apt_number (text) , bathroom_count (number) , bedroom_count (number) , room_count (text) | apartment_facilities : apt_id (number) , facility_code (text) | guests : guest_id (number) , gender_code (text) , guest_first_name (text) , guest_last_name (text) , date_of_birth (time) | apartment_bookings : apt_booking_id (number) , apt_id (number) , guest_id (number) , booking_status_code (text) , booking_start_date (time) , booking_end_date (time) | view_unit_status : apt_id (number) , apt_booking_id (number) , status_date (time) , available_yn (others)

apartments : apt_number (text) , apt_type_code (text) , apt_id (number)


Question: Which apartments have type code "Flat"? Give me their apartment numbers.

apartment_buildings : building_id (number) , building_short_name (text) , building_full_name (text) , building_description (text) , building_address (text) , building_manager (text) , building_phone (text) | apartments : apt_id (number) , building_id (number) , apt_type_code (text) , apt_number (text) , bathroom_count (number) , bedroom_count (number) , room_count (text) | apartment_facilities : apt_id (number) , facility_code (text) | guests : guest_id (number) , gender_code (text) , guest_first_name (text) , guest_last_name (text) , date_of_birth (time) | apartment_bookings : apt_booking_id (number) , apt_id (number) , guest_id (number) , booking_status_code (text) , booking_start_date (time) , booking_end_date (time) | view_unit_status : apt_id (number) , apt_booking_id (number) , status_date (time) , available_yn (others)

apartments : apt_number (text) , apt_type_code (text) , apt_id (number)


Question: Return the first names and last names of all guests

apartment_buildings : building_id (number) , building_short_name (text) , building_full_name (text) , building_description (text) , building_address (text) , building_manager (text) , building_phone (text) | apartments : apt_id (number) , building_id (number) , apt_type_code (text) , apt_number (text) , bathroom_count (number) , bedroom_count (number) , room_count (text) | apartment_facilities : apt_id (number) , facility_code (text) | guests : guest_id (number) , gender_code (text) , guest_first_name (text) , guest_last_name (text) , date_of_birth (time) | apartment_bookings : apt_booking_id (number) , apt_id (number) , guest_id (number) , booking_status_code (text) , booking_start_date (time) , booking_end_date (time) | view_unit_status : apt_id (number) , apt_booking_id (number) , status_date (time) , available_yn (others)

guests : guest_first_name (text) , guest_last_name (text) , guest_id (number)


Question: What are the first names and last names of all the guests?

apartment_buildings : building_id (number) , building_short_name (text) , building_full_name (text) , building_description (text) , building_address (text) , building_manager (text) , building_phone (text) | apartments : apt_id (number) , building_id (number) , apt_type_code (text) , apt_number (text) , bathroom_count (number) , bedroom_count (number) , room_count (text) | apartment_facilities : apt_id (number) , facility_code (text) | guests : guest_id (number) , gender_code (text) , guest_first_name (text) , guest_last_name (text) , date_of_birth (time) | apartment_bookings : apt_booking_id (number) , apt_id (number) , guest_id (number) , booking_status_code (text) , booking_start_date (time) , booking_end_date (time) | view_unit_status : apt_id (number) , apt_booking_id (number) , status_date (time) , available_yn (others)

guests : guest_first_name (text) , guest_last_name (text) , guest_id (number)


Question: Return the date of birth for all the guests with gender code "Male".

apartment_buildings : building_id (number) , building_short_name (text) , building_full_name (text) , building_description (text) , building_address (text) , building_manager (text) , building_phone (text) | apartments : apt_id (number) , building_id (number) , apt_type_code (text) , apt_number (text) , bathroom_count (number) , bedroom_count (number) , room_count (text) | apartment_facilities : apt_id (number) , facility_code (text) | guests : guest_id (number) , gender_code (text) , guest_first_name (text) , guest_last_name (text) , date_of_birth (time) | apartment_bookings : apt_booking_id (number) , apt_id (number) , guest_id (number) , booking_status_code (text) , booking_start_date (time) , booking_end_date (time) | view_unit_status : apt_id (number) , apt_booking_id (number) , status_date (time) , available_yn (others)

guests : date_of_birth (time) , gender_code (text) , guest_id (number)


Question: What are dates of birth of all the guests whose gender is "Male"?

apartment_buildings : building_id (number) , building_short_name (text) , building_full_name (text) , building_description (text) , building_address (text) , building_manager (text) , building_phone (text) | apartments : apt_id (number) , building_id (number) , apt_type_code (text) , apt_number (text) , bathroom_count (number) , bedroom_count (number) , room_count (text) | apartment_facilities : apt_id (number) , facility_code (text) | guests : guest_id (number) , gender_code (text) , guest_first_name (text) , guest_last_name (text) , date_of_birth (time) | apartment_bookings : apt_booking_id (number) , apt_id (number) , guest_id (number) , booking_status_code (text) , booking_start_date (time) , booking_end_date (time) | view_unit_status : apt_id (number) , apt_booking_id (number) , status_date (time) , available_yn (others)

guests : date_of_birth (time) , gender_code (text) , guest_id (number)


Question: Show the apartment numbers, start dates, and end dates of all the apartment bookings.

apartment_buildings : building_id (number) , building_short_name (text) , building_full_name (text) , building_description (text) , building_address (text) , building_manager (text) , building_phone (text) | apartments : apt_id (number) , building_id (number) , apt_type_code (text) , apt_number (text) , bathroom_count (number) , bedroom_count (number) , room_count (text) | apartment_facilities : apt_id (number) , facility_code (text) | guests : guest_id (number) , gender_code (text) , guest_first_name (text) , guest_last_name (text) , date_of_birth (time) | apartment_bookings : apt_booking_id (number) , apt_id (number) , guest_id (number) , booking_status_code (text) , booking_start_date (time) , booking_end_date (time) | view_unit_status : apt_id (number) , apt_booking_id (number) , status_date (time) , available_yn (others)

apartments : apt_number (text) , apt_id (number) , apt_id (number) | apartment_bookings : booking_start_date (time) , apt_id (number) , apt_booking_id (number) | apartment_facilities : apt_id (number) , apt_id (number) | view_unit_status : apt_id (number) , status_date (number)


Question: What are the apartment number, start date, and end date of each apartment booking?

apartment_buildings : building_id (number) , building_short_name (text) , building_full_name (text) , building_description (text) , building_address (text) , building_manager (text) , building_phone (text) | apartments : apt_id (number) , building_id (number) , apt_type_code (text) , apt_number (text) , bathroom_count (number) , bedroom_count (number) , room_count (text) | apartment_facilities : apt_id (number) , facility_code (text) | guests : guest_id (number) , gender_code (text) , guest_first_name (text) , guest_last_name (text) , date_of_birth (time) | apartment_bookings : apt_booking_id (number) , apt_id (number) , guest_id (number) , booking_status_code (text) , booking_start_date (time) , booking_end_date (time) | view_unit_status : apt_id (number) , apt_booking_id (number) , status_date (time) , available_yn (others)

apartments : apt_number (text) , apt_id (number) , apt_id (number) | apartment_bookings : booking_start_date (time) , apt_id (number) , apt_booking_id (number) | apartment_facilities : apt_id (number) , apt_id (number) | view_unit_status : apt_id (number) , status_date (number)


Question: What are the booking start and end dates of the apartments with type code "Duplex"?

apartment_buildings : building_id (number) , building_short_name (text) , building_full_name (text) , building_description (text) , building_address (text) , building_manager (text) , building_phone (text) | apartments : apt_id (number) , building_id (number) , apt_type_code (text) , apt_number (text) , bathroom_count (number) , bedroom_count (number) , room_count (text) | apartment_facilities : apt_id (number) , facility_code (text) | guests : guest_id (number) , gender_code (text) , guest_first_name (text) , guest_last_name (text) , date_of_birth (time) | apartment_bookings : apt_booking_id (number) , apt_id (number) , guest_id (number) , booking_status_code (text) , booking_start_date (time) , booking_end_date (time) | view_unit_status : apt_id (number) , apt_booking_id (number) , status_date (time) , available_yn (others)

apartment_bookings : booking_start_date (time) , apt_id (number) , apt_booking_id (number) | apartments : apt_id (number) , apt_type_code (text) , apt_id (number) | apartment_facilities : apt_id (number) , apt_id (number) | view_unit_status : apt_id (number) , status_date (number)


Question: Return the booking start date and end date for the apartments that have type code "Duplex".

apartment_buildings : building_id (number) , building_short_name (text) , building_full_name (text) , building_description (text) , building_address (text) , building_manager (text) , building_phone (text) | apartments : apt_id (number) , building_id (number) , apt_type_code (text) , apt_number (text) , bathroom_count (number) , bedroom_count (number) , room_count (text) | apartment_facilities : apt_id (number) , facility_code (text) | guests : guest_id (number) , gender_code (text) , guest_first_name (text) , guest_last_name (text) , date_of_birth (time) | apartment_bookings : apt_booking_id (number) , apt_id (number) , guest_id (number) , booking_status_code (text) , booking_start_date (time) , booking_end_date (time) | view_unit_status : apt_id (number) , apt_booking_id (number) , status_date (time) , available_yn (others)

apartment_bookings : booking_start_date (time) , apt_id (number) , apt_booking_id (number) | apartments : apt_id (number) , apt_type_code (text) , apt_id (number) | apartment_facilities : apt_id (number) , apt_id (number) | view_unit_status : apt_id (number) , status_date (number)


Question: What are the booking start and end dates of the apartments with more than 2 bedrooms?

apartment_buildings : building_id (number) , building_short_name (text) , building_full_name (text) , building_description (text) , building_address (text) , building_manager (text) , building_phone (text) | apartments : apt_id (number) , building_id (number) , apt_type_code (text) , apt_number (text) , bathroom_count (number) , bedroom_count (number) , room_count (text) | apartment_facilities : apt_id (number) , facility_code (text) | guests : guest_id (number) , gender_code (text) , guest_first_name (text) , guest_last_name (text) , date_of_birth (time) | apartment_bookings : apt_booking_id (number) , apt_id (number) , guest_id (number) , booking_status_code (text) , booking_start_date (time) , booking_end_date (time) | view_unit_status : apt_id (number) , apt_booking_id (number) , status_date (time) , available_yn (others)

apartment_bookings : booking_start_date (time) , apt_id (number) , apt_booking_id (number) | apartments : apt_id (number) , bedroom_count (number) , apt_id (number) | apartment_facilities : apt_id (number) , apt_id (number) | view_unit_status : apt_id (number) , status_date (number)


Question: Find the booking start date and end date for the apartments that have more than two bedrooms.

apartment_buildings : building_id (number) , building_short_name (text) , building_full_name (text) , building_description (text) , building_address (text) , building_manager (text) , building_phone (text) | apartments : apt_id (number) , building_id (number) , apt_type_code (text) , apt_number (text) , bathroom_count (number) , bedroom_count (number) , room_count (text) | apartment_facilities : apt_id (number) , facility_code (text) | guests : guest_id (number) , gender_code (text) , guest_first_name (text) , guest_last_name (text) , date_of_birth (time) | apartment_bookings : apt_booking_id (number) , apt_id (number) , guest_id (number) , booking_status_code (text) , booking_start_date (time) , booking_end_date (time) | view_unit_status : apt_id (number) , apt_booking_id (number) , status_date (time) , available_yn (others)

apartment_bookings : booking_start_date (time) , apt_id (number) , apt_booking_id (number) | apartments : apt_id (number) , bedroom_count (number) , apt_id (number) | apartment_facilities : apt_id (number) , apt_id (number) | view_unit_status : apt_id (number) , status_date (number)


Question: What is the booking status code of the apartment with apartment number "Suite 634"?

apartment_buildings : building_id (number) , building_short_name (text) , building_full_name (text) , building_description (text) , building_address (text) , building_manager (text) , building_phone (text) | apartments : apt_id (number) , building_id (number) , apt_type_code (text) , apt_number (text) , bathroom_count (number) , bedroom_count (number) , room_count (text) | apartment_facilities : apt_id (number) , facility_code (text) | guests : guest_id (number) , gender_code (text) , guest_first_name (text) , guest_last_name (text) , date_of_birth (time) | apartment_bookings : apt_booking_id (number) , apt_id (number) , guest_id (number) , booking_status_code (text) , booking_start_date (time) , booking_end_date (time) | view_unit_status : apt_id (number) , apt_booking_id (number) , status_date (time) , available_yn (others)

apartment_bookings : booking_status_code (text) , apt_id (number) , apt_booking_id (number) | apartments : apt_id (number) , apt_number (text) , apt_id (number) | apartment_facilities : apt_id (number) , apt_id (number) | view_unit_status : apt_id (number) , status_date (number)


Question: Tell me the booking status code for the apartment with number "Suite 634".

apartment_buildings : building_id (number) , building_short_name (text) , building_full_name (text) , building_description (text) , building_address (text) , building_manager (text) , building_phone (text) | apartments : apt_id (number) , building_id (number) , apt_type_code (text) , apt_number (text) , bathroom_count (number) , bedroom_count (number) , room_count (text) | apartment_facilities : apt_id (number) , facility_code (text) | guests : guest_id (number) , gender_code (text) , guest_first_name (text) , guest_last_name (text) , date_of_birth (time) | apartment_bookings : apt_booking_id (number) , apt_id (number) , guest_id (number) , booking_status_code (text) , booking_start_date (time) , booking_end_date (time) | view_unit_status : apt_id (number) , apt_booking_id (number) , status_date (time) , available_yn (others)

apartment_bookings : booking_status_code (text) , apt_id (number) , apt_booking_id (number) | apartments : apt_id (number) , apt_number (text) , apt_id (number) | apartment_facilities : apt_id (number) , apt_id (number) | view_unit_status : apt_id (number) , status_date (number)


Question: Show the distinct apartment numbers of the apartments that have bookings with status code "Confirmed".

apartment_buildings : building_id (number) , building_short_name (text) , building_full_name (text) , building_description (text) , building_address (text) , building_manager (text) , building_phone (text) | apartments : apt_id (number) , building_id (number) , apt_type_code (text) , apt_number (text) , bathroom_count (number) , bedroom_count (number) , room_count (text) | apartment_facilities : apt_id (number) , facility_code (text) | guests : guest_id (number) , gender_code (text) , guest_first_name (text) , guest_last_name (text) , date_of_birth (time) | apartment_bookings : apt_booking_id (number) , apt_id (number) , guest_id (number) , booking_status_code (text) , booking_start_date (time) , booking_end_date (time) | view_unit_status : apt_id (number) , apt_booking_id (number) , status_date (time) , available_yn (others)

apartments : apt_number (text) , apt_id (number) , apt_id (number) | apartment_facilities : apt_id (number) , apt_id (number) | apartment_bookings : apt_id (number) , booking_status_code (text) , apt_booking_id (number) | view_unit_status : apt_id (number) , status_date (number)


Question: Which apartments have bookings with status code "Confirmed"? Return their apartment numbers.

apartment_buildings : building_id (number) , building_short_name (text) , building_full_name (text) , building_description (text) , building_address (text) , building_manager (text) , building_phone (text) | apartments : apt_id (number) , building_id (number) , apt_type_code (text) , apt_number (text) , bathroom_count (number) , bedroom_count (number) , room_count (text) | apartment_facilities : apt_id (number) , facility_code (text) | guests : guest_id (number) , gender_code (text) , guest_first_name (text) , guest_last_name (text) , date_of_birth (time) | apartment_bookings : apt_booking_id (number) , apt_id (number) , guest_id (number) , booking_status_code (text) , booking_start_date (time) , booking_end_date (time) | view_unit_status : apt_id (number) , apt_booking_id (number) , status_date (time) , available_yn (others)

apartments : apt_number (text) , apt_id (number) , apt_id (number) | apartment_facilities : apt_id (number) , apt_id (number) | apartment_bookings : apt_id (number) , booking_status_code (text) , apt_booking_id (number) | view_unit_status : apt_id (number) , status_date (number)


Question: Show the average room count of the apartments that have booking status code "Provisional".

apartment_buildings : building_id (number) , building_short_name (text) , building_full_name (text) , building_description (text) , building_address (text) , building_manager (text) , building_phone (text) | apartments : apt_id (number) , building_id (number) , apt_type_code (text) , apt_number (text) , bathroom_count (number) , bedroom_count (number) , room_count (text) | apartment_facilities : apt_id (number) , facility_code (text) | guests : guest_id (number) , gender_code (text) , guest_first_name (text) , guest_last_name (text) , date_of_birth (time) | apartment_bookings : apt_booking_id (number) , apt_id (number) , guest_id (number) , booking_status_code (text) , booking_start_date (time) , booking_end_date (time) | view_unit_status : apt_id (number) , apt_booking_id (number) , status_date (time) , available_yn (others)

apartments : room_count (text) , apt_id (number) , apt_id (number) | apartment_facilities : apt_id (number) , apt_id (number) | apartment_bookings : apt_id (number) , booking_status_code (text) , apt_booking_id (number) | view_unit_status : apt_id (number) , status_date (number)


Question: What is the average room count of the apartments whose booking status code is "Provisional"?

apartment_buildings : building_id (number) , building_short_name (text) , building_full_name (text) , building_description (text) , building_address (text) , building_manager (text) , building_phone (text) | apartments : apt_id (number) , building_id (number) , apt_type_code (text) , apt_number (text) , bathroom_count (number) , bedroom_count (number) , room_count (text) | apartment_facilities : apt_id (number) , facility_code (text) | guests : guest_id (number) , gender_code (text) , guest_first_name (text) , guest_last_name (text) , date_of_birth (time) | apartment_bookings : apt_booking_id (number) , apt_id (number) , guest_id (number) , booking_status_code (text) , booking_start_date (time) , booking_end_date (time) | view_unit_status : apt_id (number) , apt_booking_id (number) , status_date (time) , available_yn (others)

apartments : room_count (text) , apt_id (number) , apt_id (number) | apartment_facilities : apt_id (number) , apt_id (number) | apartment_bookings : apt_id (number) , booking_status_code (text) , apt_booking_id (number) | view_unit_status : apt_id (number) , status_date (number)


Question: Show the guest first names, start dates, and end dates of all the apartment bookings.

apartment_buildings : building_id (number) , building_short_name (text) , building_full_name (text) , building_description (text) , building_address (text) , building_manager (text) , building_phone (text) | apartments : apt_id (number) , building_id (number) , apt_type_code (text) , apt_number (text) , bathroom_count (number) , bedroom_count (number) , room_count (text) | apartment_facilities : apt_id (number) , facility_code (text) | guests : guest_id (number) , gender_code (text) , guest_first_name (text) , guest_last_name (text) , date_of_birth (time) | apartment_bookings : apt_booking_id (number) , apt_id (number) , guest_id (number) , booking_status_code (text) , booking_start_date (time) , booking_end_date (time) | view_unit_status : apt_id (number) , apt_booking_id (number) , status_date (time) , available_yn (others)

guests : guest_first_name (text) , guest_id (number) , guest_id (number) | apartment_bookings : booking_start_date (time) , guest_id (number) , apt_booking_id (number)


Question: What are the guest first name, start date, and end date of each apartment booking?

apartment_buildings : building_id (number) , building_short_name (text) , building_full_name (text) , building_description (text) , building_address (text) , building_manager (text) , building_phone (text) | apartments : apt_id (number) , building_id (number) , apt_type_code (text) , apt_number (text) , bathroom_count (number) , bedroom_count (number) , room_count (text) | apartment_facilities : apt_id (number) , facility_code (text) | guests : guest_id (number) , gender_code (text) , guest_first_name (text) , guest_last_name (text) , date_of_birth (time) | apartment_bookings : apt_booking_id (number) , apt_id (number) , guest_id (number) , booking_status_code (text) , booking_start_date (time) , booking_end_date (time) | view_unit_status : apt_id (number) , apt_booking_id (number) , status_date (time) , available_yn (others)

guests : guest_first_name (text) , guest_id (number) , guest_id (number) | apartment_bookings : booking_start_date (time) , guest_id (number) , apt_booking_id (number)


Question: Show the start dates and end dates of all the apartment bookings made by guests with gender code "Female".

apartment_buildings : building_id (number) , building_short_name (text) , building_full_name (text) , building_description (text) , building_address (text) , building_manager (text) , building_phone (text) | apartments : apt_id (number) , building_id (number) , apt_type_code (text) , apt_number (text) , bathroom_count (number) , bedroom_count (number) , room_count (text) | apartment_facilities : apt_id (number) , facility_code (text) | guests : guest_id (number) , gender_code (text) , guest_first_name (text) , guest_last_name (text) , date_of_birth (time) | apartment_bookings : apt_booking_id (number) , apt_id (number) , guest_id (number) , booking_status_code (text) , booking_start_date (time) , booking_end_date (time) | view_unit_status : apt_id (number) , apt_booking_id (number) , status_date (time) , available_yn (others)

apartment_bookings : booking_start_date (time) , guest_id (number) , apt_booking_id (number) | guests : guest_id (number) , gender_code (text) , guest_id (number)


Question: What are the start date and end date of the apartment bookings made by female guests (gender code "Female")?

apartment_buildings : building_id (number) , building_short_name (text) , building_full_name (text) , building_description (text) , building_address (text) , building_manager (text) , building_phone (text) | apartments : apt_id (number) , building_id (number) , apt_type_code (text) , apt_number (text) , bathroom_count (number) , bedroom_count (number) , room_count (text) | apartment_facilities : apt_id (number) , facility_code (text) | guests : guest_id (number) , gender_code (text) , guest_first_name (text) , guest_last_name (text) , date_of_birth (time) | apartment_bookings : apt_booking_id (number) , apt_id (number) , guest_id (number) , booking_status_code (text) , booking_start_date (time) , booking_end_date (time) | view_unit_status : apt_id (number) , apt_booking_id (number) , status_date (time) , available_yn (others)

apartment_bookings : booking_start_date (time) , guest_id (number) , apt_booking_id (number) | guests : guest_id (number) , gender_code (text) , guest_id (number)


Question: Show the first names and last names of all the guests that have apartment bookings with status code "Confirmed".

apartment_buildings : building_id (number) , building_short_name (text) , building_full_name (text) , building_description (text) , building_address (text) , building_manager (text) , building_phone (text) | apartments : apt_id (number) , building_id (number) , apt_type_code (text) , apt_number (text) , bathroom_count (number) , bedroom_count (number) , room_count (text) | apartment_facilities : apt_id (number) , facility_code (text) | guests : guest_id (number) , gender_code (text) , guest_first_name (text) , guest_last_name (text) , date_of_birth (time) | apartment_bookings : apt_booking_id (number) , apt_id (number) , guest_id (number) , booking_status_code (text) , booking_start_date (time) , booking_end_date (time) | view_unit_status : apt_id (number) , apt_booking_id (number) , status_date (time) , available_yn (others)

guests : guest_first_name (text) , guest_last_name (text) , guest_id (number) , guest_id (number) | apartment_bookings : guest_id (number) , booking_status_code (text) , apt_booking_id (number)


Question: Which guests have apartment bookings with status code "Confirmed"? Return their first names and last names.

apartment_buildings : building_id (number) , building_short_name (text) , building_full_name (text) , building_description (text) , building_address (text) , building_manager (text) , building_phone (text) | apartments : apt_id (number) , building_id (number) , apt_type_code (text) , apt_number (text) , bathroom_count (number) , bedroom_count (number) , room_count (text) | apartment_facilities : apt_id (number) , facility_code (text) | guests : guest_id (number) , gender_code (text) , guest_first_name (text) , guest_last_name (text) , date_of_birth (time) | apartment_bookings : apt_booking_id (number) , apt_id (number) , guest_id (number) , booking_status_code (text) , booking_start_date (time) , booking_end_date (time) | view_unit_status : apt_id (number) , apt_booking_id (number) , status_date (time) , available_yn (others)

guests : guest_first_name (text) , guest_last_name (text) , guest_id (number) , guest_id (number) | apartment_bookings : guest_id (number) , booking_status_code (text) , apt_booking_id (number)


Question: Show the facility codes of apartments with more than 4 bedrooms.

apartment_buildings : building_id (number) , building_short_name (text) , building_full_name (text) , building_description (text) , building_address (text) , building_manager (text) , building_phone (text) | apartments : apt_id (number) , building_id (number) , apt_type_code (text) , apt_number (text) , bathroom_count (number) , bedroom_count (number) , room_count (text) | apartment_facilities : apt_id (number) , facility_code (text) | guests : guest_id (number) , gender_code (text) , guest_first_name (text) , guest_last_name (text) , date_of_birth (time) | apartment_bookings : apt_booking_id (number) , apt_id (number) , guest_id (number) , booking_status_code (text) , booking_start_date (time) , booking_end_date (time) | view_unit_status : apt_id (number) , apt_booking_id (number) , status_date (time) , available_yn (others)

apartment_facilities : facility_code (text) , apt_id (number) , apt_id (number) | apartments : apt_id (number) , bedroom_count (number) , apt_id (number) | apartment_bookings : apt_id (number) , apt_booking_id (number) | view_unit_status : apt_id (number) , status_date (number)


Question: What are the facility codes of the apartments with more than four bedrooms?

apartment_buildings : building_id (number) , building_short_name (text) , building_full_name (text) , building_description (text) , building_address (text) , building_manager (text) , building_phone (text) | apartments : apt_id (number) , building_id (number) , apt_type_code (text) , apt_number (text) , bathroom_count (number) , bedroom_count (number) , room_count (text) | apartment_facilities : apt_id (number) , facility_code (text) | guests : guest_id (number) , gender_code (text) , guest_first_name (text) , guest_last_name (text) , date_of_birth (time) | apartment_bookings : apt_booking_id (number) , apt_id (number) , guest_id (number) , booking_status_code (text) , booking_start_date (time) , booking_end_date (time) | view_unit_status : apt_id (number) , apt_booking_id (number) , status_date (time) , available_yn (others)

apartment_facilities : facility_code (text) , apt_id (number) , apt_id (number) | apartments : apt_id (number) , bedroom_count (number) , apt_id (number) | apartment_bookings : apt_id (number) , apt_booking_id (number) | view_unit_status : apt_id (number) , status_date (number)


Question: Show the total number of rooms of all apartments with facility code "Gym".

apartment_buildings : building_id (number) , building_short_name (text) , building_full_name (text) , building_description (text) , building_address (text) , building_manager (text) , building_phone (text) | apartments : apt_id (number) , building_id (number) , apt_type_code (text) , apt_number (text) , bathroom_count (number) , bedroom_count (number) , room_count (text) | apartment_facilities : apt_id (number) , facility_code (text) | guests : guest_id (number) , gender_code (text) , guest_first_name (text) , guest_last_name (text) , date_of_birth (time) | apartment_bookings : apt_booking_id (number) , apt_id (number) , guest_id (number) , booking_status_code (text) , booking_start_date (time) , booking_end_date (time) | view_unit_status : apt_id (number) , apt_booking_id (number) , status_date (time) , available_yn (others)

apartments : room_count (text) , apt_id (number) , apt_id (number) | apartment_facilities : apt_id (number) , facility_code (text) , apt_id (number) | apartment_bookings : apt_id (number) , apt_booking_id (number) | view_unit_status : apt_id (number) , status_date (number)


Question: Find the total number of rooms in the apartments that have facility code "Gym".

apartment_buildings : building_id (number) , building_short_name (text) , building_full_name (text) , building_description (text) , building_address (text) , building_manager (text) , building_phone (text) | apartments : apt_id (number) , building_id (number) , apt_type_code (text) , apt_number (text) , bathroom_count (number) , bedroom_count (number) , room_count (text) | apartment_facilities : apt_id (number) , facility_code (text) | guests : guest_id (number) , gender_code (text) , guest_first_name (text) , guest_last_name (text) , date_of_birth (time) | apartment_bookings : apt_booking_id (number) , apt_id (number) , guest_id (number) , booking_status_code (text) , booking_start_date (time) , booking_end_date (time) | view_unit_status : apt_id (number) , apt_booking_id (number) , status_date (time) , available_yn (others)

apartments : room_count (text) , apt_id (number) , apt_id (number) | apartment_facilities : apt_id (number) , facility_code (text) , apt_id (number) | apartment_bookings : apt_id (number) , apt_booking_id (number) | view_unit_status : apt_id (number) , status_date (number)


Question: Show the total number of rooms of the apartments in the building with short name "Columbus Square".

apartment_buildings : building_id (number) , building_short_name (text) , building_full_name (text) , building_description (text) , building_address (text) , building_manager (text) , building_phone (text) | apartments : apt_id (number) , building_id (number) , apt_type_code (text) , apt_number (text) , bathroom_count (number) , bedroom_count (number) , room_count (text) | apartment_facilities : apt_id (number) , facility_code (text) | guests : guest_id (number) , gender_code (text) , guest_first_name (text) , guest_last_name (text) , date_of_birth (time) | apartment_bookings : apt_booking_id (number) , apt_id (number) , guest_id (number) , booking_status_code (text) , booking_start_date (time) , booking_end_date (time) | view_unit_status : apt_id (number) , apt_booking_id (number) , status_date (time) , available_yn (others)

apartments : room_count (text) , building_id (number) , apt_id (number) | apartment_buildings : building_id (number) , building_short_name (text) , building_id (number)


Question: How many rooms in total are there in the apartments in the building with short name "Columbus Square"?

apartment_buildings : building_id (number) , building_short_name (text) , building_full_name (text) , building_description (text) , building_address (text) , building_manager (text) , building_phone (text) | apartments : apt_id (number) , building_id (number) , apt_type_code (text) , apt_number (text) , bathroom_count (number) , bedroom_count (number) , room_count (text) | apartment_facilities : apt_id (number) , facility_code (text) | guests : guest_id (number) , gender_code (text) , guest_first_name (text) , guest_last_name (text) , date_of_birth (time) | apartment_bookings : apt_booking_id (number) , apt_id (number) , guest_id (number) , booking_status_code (text) , booking_start_date (time) , booking_end_date (time) | view_unit_status : apt_id (number) , apt_booking_id (number) , status_date (time) , available_yn (others)

apartments : room_count (text) , building_id (number) , apt_id (number) | apartment_buildings : building_id (number) , building_short_name (text) , building_id (number)


Question: Show the addresses of the buildings that have apartments with more than 2 bathrooms.

apartment_buildings : building_id (number) , building_short_name (text) , building_full_name (text) , building_description (text) , building_address (text) , building_manager (text) , building_phone (text) | apartments : apt_id (number) , building_id (number) , apt_type_code (text) , apt_number (text) , bathroom_count (number) , bedroom_count (number) , room_count (text) | apartment_facilities : apt_id (number) , facility_code (text) | guests : guest_id (number) , gender_code (text) , guest_first_name (text) , guest_last_name (text) , date_of_birth (time) | apartment_bookings : apt_booking_id (number) , apt_id (number) , guest_id (number) , booking_status_code (text) , booking_start_date (time) , booking_end_date (time) | view_unit_status : apt_id (number) , apt_booking_id (number) , status_date (time) , available_yn (others)

apartment_buildings : building_address (text) , building_id (number) , building_id (number) | apartments : building_id (number) , bathroom_count (number) , apt_id (number)


Question: Which buildings have apartments that have more than two bathrooms? Give me the addresses of the buildings.

apartment_buildings : building_id (number) , building_short_name (text) , building_full_name (text) , building_description (text) , building_address (text) , building_manager (text) , building_phone (text) | apartments : apt_id (number) , building_id (number) , apt_type_code (text) , apt_number (text) , bathroom_count (number) , bedroom_count (number) , room_count (text) | apartment_facilities : apt_id (number) , facility_code (text) | guests : guest_id (number) , gender_code (text) , guest_first_name (text) , guest_last_name (text) , date_of_birth (time) | apartment_bookings : apt_booking_id (number) , apt_id (number) , guest_id (number) , booking_status_code (text) , booking_start_date (time) , booking_end_date (time) | view_unit_status : apt_id (number) , apt_booking_id (number) , status_date (time) , available_yn (others)

apartment_buildings : building_address (text) , building_id (number) , building_id (number) | apartments : building_id (number) , bathroom_count (number) , apt_id (number)


Question: Show the apartment type codes and apartment numbers in the buildings managed by "Kyle".

apartment_buildings : building_id (number) , building_short_name (text) , building_full_name (text) , building_description (text) , building_address (text) , building_manager (text) , building_phone (text) | apartments : apt_id (number) , building_id (number) , apt_type_code (text) , apt_number (text) , bathroom_count (number) , bedroom_count (number) , room_count (text) | apartment_facilities : apt_id (number) , facility_code (text) | guests : guest_id (number) , gender_code (text) , guest_first_name (text) , guest_last_name (text) , date_of_birth (time) | apartment_bookings : apt_booking_id (number) , apt_id (number) , guest_id (number) , booking_status_code (text) , booking_start_date (time) , booking_end_date (time) | view_unit_status : apt_id (number) , apt_booking_id (number) , status_date (time) , available_yn (others)

apartments : apt_type_code (text) , apt_number (text) , building_id (number) , apt_id (number) | apartment_buildings : building_id (number) , building_manager (text) , building_id (number)