Question: List the names of states that have more than 2 parks.

all_star : player_id (text) , year (number) , game_num (number) , game_id (text) , team_id (text) , league_id (text) , gp (number) , starting_pos (number) | appearances : year (number) , team_id (text) , league_id (text) , player_id (text) , g_all (number) , gs (number) , g_batting (number) , g_defense (number) , g_p (number) , g_c (number) , g_1b (number) , g_2b (number) , g_3b (number) , g_ss (number) , g_lf (number) , g_cf (number) , g_rf (number) , g_of (number) , g_dh (number) , g_ph (number) , g_pr (number) | manager_award : player_id (text) , award_id (text) , year (number) , league_id (text) , tie (text) , notes (number) | player_award : player_id (text) , award_id (text) , year (number) , league_id (text) , tie (text) , notes (text) | manager_award_vote : award_id (text) , year (number) , league_id (text) , player_id (text) , points_won (number) , points_max (number) , votes_first (number) | player_award_vote : award_id (text) , year (number) , league_id (text) , player_id (text) , points_won (number) , points_max (number) , votes_first (number) | batting : player_id (text) , year (number) , stint (number) , team_id (text) , league_id (text) , g (number) , ab (number) , r (number) , h (number) , double (number) , triple (number) , hr (number) , rbi (number) , sb (number) , cs (number) , bb (number) , so (number) , ibb (number) , hbp (number) , sh (number) , sf (number) , g_idp (number) | batting_postseason : year (number) , round (text) , player_id (text) , team_id (text) , league_id (text) , g (number) , ab (number) , r (number) , h (number) , double (number) , triple (number) , hr (number) , rbi (number) , sb (number) , cs (number) , bb (number) , so (number) , ibb (number) , hbp (number) , sh (number) , sf (number) , g_idp (number) | player_college : player_id (text) , college_id (text) , year (number) | fielding : player_id (text) , year (number) , stint (number) , team_id (text) , league_id (text) , pos (text) , g (number) , gs (number) , inn_outs (number) , po (number) , a (number) , e (number) , dp (number) , pb (number) , wp (number) , sb (number) , cs (number) , zr (number) | fielding_outfield : player_id (text) , year (number) , stint (number) , glf (number) , gcf (number) , grf (number) | fielding_postseason : player_id (text) , year (number) , team_id (text) , league_id (text) , round (text) , pos (text) , g (number) , gs (number) , inn_outs (number) , po (number) , a (number) , e (number) , dp (number) , tp (number) , pb (number) , sb (number) , cs (number) | hall_of_fame : player_id (text) , yearid (number) , votedby (text) , ballots (number) , needed (number) , votes (number) , inducted (text) , category (text) , needed_note (text) | home_game : year (number) , league_id (text) , team_id (text) , park_id (text) , span_first (text) , span_last (text) , games (number) , openings (number) , attendance (number) | manager : player_id (text) , year (number) , team_id (text) , league_id (text) , inseason (number) , g (number) , w (number) , l (number) , rank (number) , plyr_mgr (text) | manager_half : player_id (text) , year (number) , team_id (text) , league_id (text) , inseason (number) , half (number) , g (number) , w (number) , l (number) , rank (number) | player : player_id (text) , birth_year (number) , birth_month (number) , birth_day (number) , birth_country (text) , birth_state (text) , birth_city (text) , death_year (number) , death_month (number) , death_day (number) , death_country (text) , death_state (text) , death_city (text) , name_first (text) , name_last (text) , name_given (text) , weight (number) , height (number) , bats (text) , throws (text) , debut (text) , final_game (text) , retro_id (text) , bbref_id (text) | park : park_id (text) , park_name (text) , park_alias (text) , city (text) , state (text) , country (text) | pitching : player_id (text) , year (number) , stint (number) , team_id (text) , league_id (text) , w (number) , l (number) , g (number) , gs (number) , cg (number) , sho (number) , sv (number) , ipouts (number) , h (number) , er (number) , hr (number) , bb (number) , so (number) , baopp (number) , era (number) , ibb (number) , wp (number) , hbp (number) , bk (number) , bfp (number) , gf (number) , r (number) , sh (number) , sf (number) , g_idp (number) | pitching_postseason : player_id (text) , year (number) , round (text) , team_id (text) , league_id (text) , w (number) , l (number) , g (number) , gs (number) , cg (number) , sho (number) , sv (number) , ipouts (number) , h (number) , er (number) , hr (number) , bb (number) , so (number) , baopp (text) , era (number) , ibb (number) , wp (number) , hbp (number) , bk (number) , bfp (number) , gf (number) , r (number) , sh (number) , sf (number) , g_idp (number) | salary : year (number) , team_id (text) , league_id (text) , player_id (text) , salary (number) | college : college_id (text) , name_full (text) , city (text) , state (text) , country (text) | postseason : year (number) , round (text) , team_id_winner (text) , league_id_winner (text) , team_id_loser (text) , league_id_loser (text) , wins (number) , losses (number) , ties (number) | team : year (number) , league_id (text) , team_id (text) , franchise_id (text) , div_id (text) , rank (number) , g (number) , ghome (number) , w (number) , l (number) , div_win (text) , wc_win (text) , lg_win (text) , ws_win (text) , r (number) , ab (number) , h (number) , double (number) , triple (number) , hr (number) , bb (number) , so (number) , sb (number) , cs (number) , hbp (number) , sf (number) , ra (number) , er (number) , era (number) , cg (number) , sho (number) , sv (number) , ipouts (number) , ha (number) , hra (number) , bba (number) , soa (number) , e (number) , dp (number) , fp (number) , name (text) , park (text) , attendance (number) , bpf (number) , ppf (number) , team_id_br (text) , team_id_lahman45 (text) , team_id_retro (text) | team_franchise : franchise_id (text) , franchise_name (text) , active (text) , na_assoc (text) | team_half : year (number) , league_id (text) , team_id (text) , half (number) , div_id (text) , div_win (text) , rank (number) , g (number) , w (number) , l (number)

park : state (text) , park_id (number) | college : state (text) , college_id (number) | team : park (text) , team_id (number)


Question: Which states have more than 2 parks?

all_star : player_id (text) , year (number) , game_num (number) , game_id (text) , team_id (text) , league_id (text) , gp (number) , starting_pos (number) | appearances : year (number) , team_id (text) , league_id (text) , player_id (text) , g_all (number) , gs (number) , g_batting (number) , g_defense (number) , g_p (number) , g_c (number) , g_1b (number) , g_2b (number) , g_3b (number) , g_ss (number) , g_lf (number) , g_cf (number) , g_rf (number) , g_of (number) , g_dh (number) , g_ph (number) , g_pr (number) | manager_award : player_id (text) , award_id (text) , year (number) , league_id (text) , tie (text) , notes (number) | player_award : player_id (text) , award_id (text) , year (number) , league_id (text) , tie (text) , notes (text) | manager_award_vote : award_id (text) , year (number) , league_id (text) , player_id (text) , points_won (number) , points_max (number) , votes_first (number) | player_award_vote : award_id (text) , year (number) , league_id (text) , player_id (text) , points_won (number) , points_max (number) , votes_first (number) | batting : player_id (text) , year (number) , stint (number) , team_id (text) , league_id (text) , g (number) , ab (number) , r (number) , h (number) , double (number) , triple (number) , hr (number) , rbi (number) , sb (number) , cs (number) , bb (number) , so (number) , ibb (number) , hbp (number) , sh (number) , sf (number) , g_idp (number) | batting_postseason : year (number) , round (text) , player_id (text) , team_id (text) , league_id (text) , g (number) , ab (number) , r (number) , h (number) , double (number) , triple (number) , hr (number) , rbi (number) , sb (number) , cs (number) , bb (number) , so (number) , ibb (number) , hbp (number) , sh (number) , sf (number) , g_idp (number) | player_college : player_id (text) , college_id (text) , year (number) | fielding : player_id (text) , year (number) , stint (number) , team_id (text) , league_id (text) , pos (text) , g (number) , gs (number) , inn_outs (number) , po (number) , a (number) , e (number) , dp (number) , pb (number) , wp (number) , sb (number) , cs (number) , zr (number) | fielding_outfield : player_id (text) , year (number) , stint (number) , glf (number) , gcf (number) , grf (number) | fielding_postseason : player_id (text) , year (number) , team_id (text) , league_id (text) , round (text) , pos (text) , g (number) , gs (number) , inn_outs (number) , po (number) , a (number) , e (number) , dp (number) , tp (number) , pb (number) , sb (number) , cs (number) | hall_of_fame : player_id (text) , yearid (number) , votedby (text) , ballots (number) , needed (number) , votes (number) , inducted (text) , category (text) , needed_note (text) | home_game : year (number) , league_id (text) , team_id (text) , park_id (text) , span_first (text) , span_last (text) , games (number) , openings (number) , attendance (number) | manager : player_id (text) , year (number) , team_id (text) , league_id (text) , inseason (number) , g (number) , w (number) , l (number) , rank (number) , plyr_mgr (text) | manager_half : player_id (text) , year (number) , team_id (text) , league_id (text) , inseason (number) , half (number) , g (number) , w (number) , l (number) , rank (number) | player : player_id (text) , birth_year (number) , birth_month (number) , birth_day (number) , birth_country (text) , birth_state (text) , birth_city (text) , death_year (number) , death_month (number) , death_day (number) , death_country (text) , death_state (text) , death_city (text) , name_first (text) , name_last (text) , name_given (text) , weight (number) , height (number) , bats (text) , throws (text) , debut (text) , final_game (text) , retro_id (text) , bbref_id (text) | park : park_id (text) , park_name (text) , park_alias (text) , city (text) , state (text) , country (text) | pitching : player_id (text) , year (number) , stint (number) , team_id (text) , league_id (text) , w (number) , l (number) , g (number) , gs (number) , cg (number) , sho (number) , sv (number) , ipouts (number) , h (number) , er (number) , hr (number) , bb (number) , so (number) , baopp (number) , era (number) , ibb (number) , wp (number) , hbp (number) , bk (number) , bfp (number) , gf (number) , r (number) , sh (number) , sf (number) , g_idp (number) | pitching_postseason : player_id (text) , year (number) , round (text) , team_id (text) , league_id (text) , w (number) , l (number) , g (number) , gs (number) , cg (number) , sho (number) , sv (number) , ipouts (number) , h (number) , er (number) , hr (number) , bb (number) , so (number) , baopp (text) , era (number) , ibb (number) , wp (number) , hbp (number) , bk (number) , bfp (number) , gf (number) , r (number) , sh (number) , sf (number) , g_idp (number) | salary : year (number) , team_id (text) , league_id (text) , player_id (text) , salary (number) | college : college_id (text) , name_full (text) , city (text) , state (text) , country (text) | postseason : year (number) , round (text) , team_id_winner (text) , league_id_winner (text) , team_id_loser (text) , league_id_loser (text) , wins (number) , losses (number) , ties (number) | team : year (number) , league_id (text) , team_id (text) , franchise_id (text) , div_id (text) , rank (number) , g (number) , ghome (number) , w (number) , l (number) , div_win (text) , wc_win (text) , lg_win (text) , ws_win (text) , r (number) , ab (number) , h (number) , double (number) , triple (number) , hr (number) , bb (number) , so (number) , sb (number) , cs (number) , hbp (number) , sf (number) , ra (number) , er (number) , era (number) , cg (number) , sho (number) , sv (number) , ipouts (number) , ha (number) , hra (number) , bba (number) , soa (number) , e (number) , dp (number) , fp (number) , name (text) , park (text) , attendance (number) , bpf (number) , ppf (number) , team_id_br (text) , team_id_lahman45 (text) , team_id_retro (text) | team_franchise : franchise_id (text) , franchise_name (text) , active (text) , na_assoc (text) | team_half : year (number) , league_id (text) , team_id (text) , half (number) , div_id (text) , div_win (text) , rank (number) , g (number) , w (number) , l (number)

park : state (text) , park_id (number) | college : state (text) , college_id (number) | team : park (text) , team_id (number)


Question: How many team franchises are active, with active value 'Y'?

all_star : player_id (text) , year (number) , game_num (number) , game_id (text) , team_id (text) , league_id (text) , gp (number) , starting_pos (number) | appearances : year (number) , team_id (text) , league_id (text) , player_id (text) , g_all (number) , gs (number) , g_batting (number) , g_defense (number) , g_p (number) , g_c (number) , g_1b (number) , g_2b (number) , g_3b (number) , g_ss (number) , g_lf (number) , g_cf (number) , g_rf (number) , g_of (number) , g_dh (number) , g_ph (number) , g_pr (number) | manager_award : player_id (text) , award_id (text) , year (number) , league_id (text) , tie (text) , notes (number) | player_award : player_id (text) , award_id (text) , year (number) , league_id (text) , tie (text) , notes (text) | manager_award_vote : award_id (text) , year (number) , league_id (text) , player_id (text) , points_won (number) , points_max (number) , votes_first (number) | player_award_vote : award_id (text) , year (number) , league_id (text) , player_id (text) , points_won (number) , points_max (number) , votes_first (number) | batting : player_id (text) , year (number) , stint (number) , team_id (text) , league_id (text) , g (number) , ab (number) , r (number) , h (number) , double (number) , triple (number) , hr (number) , rbi (number) , sb (number) , cs (number) , bb (number) , so (number) , ibb (number) , hbp (number) , sh (number) , sf (number) , g_idp (number) | batting_postseason : year (number) , round (text) , player_id (text) , team_id (text) , league_id (text) , g (number) , ab (number) , r (number) , h (number) , double (number) , triple (number) , hr (number) , rbi (number) , sb (number) , cs (number) , bb (number) , so (number) , ibb (number) , hbp (number) , sh (number) , sf (number) , g_idp (number) | player_college : player_id (text) , college_id (text) , year (number) | fielding : player_id (text) , year (number) , stint (number) , team_id (text) , league_id (text) , pos (text) , g (number) , gs (number) , inn_outs (number) , po (number) , a (number) , e (number) , dp (number) , pb (number) , wp (number) , sb (number) , cs (number) , zr (number) | fielding_outfield : player_id (text) , year (number) , stint (number) , glf (number) , gcf (number) , grf (number) | fielding_postseason : player_id (text) , year (number) , team_id (text) , league_id (text) , round (text) , pos (text) , g (number) , gs (number) , inn_outs (number) , po (number) , a (number) , e (number) , dp (number) , tp (number) , pb (number) , sb (number) , cs (number) | hall_of_fame : player_id (text) , yearid (number) , votedby (text) , ballots (number) , needed (number) , votes (number) , inducted (text) , category (text) , needed_note (text) | home_game : year (number) , league_id (text) , team_id (text) , park_id (text) , span_first (text) , span_last (text) , games (number) , openings (number) , attendance (number) | manager : player_id (text) , year (number) , team_id (text) , league_id (text) , inseason (number) , g (number) , w (number) , l (number) , rank (number) , plyr_mgr (text) | manager_half : player_id (text) , year (number) , team_id (text) , league_id (text) , inseason (number) , half (number) , g (number) , w (number) , l (number) , rank (number) | player : player_id (text) , birth_year (number) , birth_month (number) , birth_day (number) , birth_country (text) , birth_state (text) , birth_city (text) , death_year (number) , death_month (number) , death_day (number) , death_country (text) , death_state (text) , death_city (text) , name_first (text) , name_last (text) , name_given (text) , weight (number) , height (number) , bats (text) , throws (text) , debut (text) , final_game (text) , retro_id (text) , bbref_id (text) | park : park_id (text) , park_name (text) , park_alias (text) , city (text) , state (text) , country (text) | pitching : player_id (text) , year (number) , stint (number) , team_id (text) , league_id (text) , w (number) , l (number) , g (number) , gs (number) , cg (number) , sho (number) , sv (number) , ipouts (number) , h (number) , er (number) , hr (number) , bb (number) , so (number) , baopp (number) , era (number) , ibb (number) , wp (number) , hbp (number) , bk (number) , bfp (number) , gf (number) , r (number) , sh (number) , sf (number) , g_idp (number) | pitching_postseason : player_id (text) , year (number) , round (text) , team_id (text) , league_id (text) , w (number) , l (number) , g (number) , gs (number) , cg (number) , sho (number) , sv (number) , ipouts (number) , h (number) , er (number) , hr (number) , bb (number) , so (number) , baopp (text) , era (number) , ibb (number) , wp (number) , hbp (number) , bk (number) , bfp (number) , gf (number) , r (number) , sh (number) , sf (number) , g_idp (number) | salary : year (number) , team_id (text) , league_id (text) , player_id (text) , salary (number) | college : college_id (text) , name_full (text) , city (text) , state (text) , country (text) | postseason : year (number) , round (text) , team_id_winner (text) , league_id_winner (text) , team_id_loser (text) , league_id_loser (text) , wins (number) , losses (number) , ties (number) | team : year (number) , league_id (text) , team_id (text) , franchise_id (text) , div_id (text) , rank (number) , g (number) , ghome (number) , w (number) , l (number) , div_win (text) , wc_win (text) , lg_win (text) , ws_win (text) , r (number) , ab (number) , h (number) , double (number) , triple (number) , hr (number) , bb (number) , so (number) , sb (number) , cs (number) , hbp (number) , sf (number) , ra (number) , er (number) , era (number) , cg (number) , sho (number) , sv (number) , ipouts (number) , ha (number) , hra (number) , bba (number) , soa (number) , e (number) , dp (number) , fp (number) , name (text) , park (text) , attendance (number) , bpf (number) , ppf (number) , team_id_br (text) , team_id_lahman45 (text) , team_id_retro (text) | team_franchise : franchise_id (text) , franchise_name (text) , active (text) , na_assoc (text) | team_half : year (number) , league_id (text) , team_id (text) , half (number) , div_id (text) , div_win (text) , rank (number) , g (number) , w (number) , l (number)


Question: Find the number of team franchises that are active (have 'Y' as "active" information).

all_star : player_id (text) , year (number) , game_num (number) , game_id (text) , team_id (text) , league_id (text) , gp (number) , starting_pos (number) | appearances : year (number) , team_id (text) , league_id (text) , player_id (text) , g_all (number) , gs (number) , g_batting (number) , g_defense (number) , g_p (number) , g_c (number) , g_1b (number) , g_2b (number) , g_3b (number) , g_ss (number) , g_lf (number) , g_cf (number) , g_rf (number) , g_of (number) , g_dh (number) , g_ph (number) , g_pr (number) | manager_award : player_id (text) , award_id (text) , year (number) , league_id (text) , tie (text) , notes (number) | player_award : player_id (text) , award_id (text) , year (number) , league_id (text) , tie (text) , notes (text) | manager_award_vote : award_id (text) , year (number) , league_id (text) , player_id (text) , points_won (number) , points_max (number) , votes_first (number) | player_award_vote : award_id (text) , year (number) , league_id (text) , player_id (text) , points_won (number) , points_max (number) , votes_first (number) | batting : player_id (text) , year (number) , stint (number) , team_id (text) , league_id (text) , g (number) , ab (number) , r (number) , h (number) , double (number) , triple (number) , hr (number) , rbi (number) , sb (number) , cs (number) , bb (number) , so (number) , ibb (number) , hbp (number) , sh (number) , sf (number) , g_idp (number) | batting_postseason : year (number) , round (text) , player_id (text) , team_id (text) , league_id (text) , g (number) , ab (number) , r (number) , h (number) , double (number) , triple (number) , hr (number) , rbi (number) , sb (number) , cs (number) , bb (number) , so (number) , ibb (number) , hbp (number) , sh (number) , sf (number) , g_idp (number) | player_college : player_id (text) , college_id (text) , year (number) | fielding : player_id (text) , year (number) , stint (number) , team_id (text) , league_id (text) , pos (text) , g (number) , gs (number) , inn_outs (number) , po (number) , a (number) , e (number) , dp (number) , pb (number) , wp (number) , sb (number) , cs (number) , zr (number) | fielding_outfield : player_id (text) , year (number) , stint (number) , glf (number) , gcf (number) , grf (number) | fielding_postseason : player_id (text) , year (number) , team_id (text) , league_id (text) , round (text) , pos (text) , g (number) , gs (number) , inn_outs (number) , po (number) , a (number) , e (number) , dp (number) , tp (number) , pb (number) , sb (number) , cs (number) | hall_of_fame : player_id (text) , yearid (number) , votedby (text) , ballots (number) , needed (number) , votes (number) , inducted (text) , category (text) , needed_note (text) | home_game : year (number) , league_id (text) , team_id (text) , park_id (text) , span_first (text) , span_last (text) , games (number) , openings (number) , attendance (number) | manager : player_id (text) , year (number) , team_id (text) , league_id (text) , inseason (number) , g (number) , w (number) , l (number) , rank (number) , plyr_mgr (text) | manager_half : player_id (text) , year (number) , team_id (text) , league_id (text) , inseason (number) , half (number) , g (number) , w (number) , l (number) , rank (number) | player : player_id (text) , birth_year (number) , birth_month (number) , birth_day (number) , birth_country (text) , birth_state (text) , birth_city (text) , death_year (number) , death_month (number) , death_day (number) , death_country (text) , death_state (text) , death_city (text) , name_first (text) , name_last (text) , name_given (text) , weight (number) , height (number) , bats (text) , throws (text) , debut (text) , final_game (text) , retro_id (text) , bbref_id (text) | park : park_id (text) , park_name (text) , park_alias (text) , city (text) , state (text) , country (text) | pitching : player_id (text) , year (number) , stint (number) , team_id (text) , league_id (text) , w (number) , l (number) , g (number) , gs (number) , cg (number) , sho (number) , sv (number) , ipouts (number) , h (number) , er (number) , hr (number) , bb (number) , so (number) , baopp (number) , era (number) , ibb (number) , wp (number) , hbp (number) , bk (number) , bfp (number) , gf (number) , r (number) , sh (number) , sf (number) , g_idp (number) | pitching_postseason : player_id (text) , year (number) , round (text) , team_id (text) , league_id (text) , w (number) , l (number) , g (number) , gs (number) , cg (number) , sho (number) , sv (number) , ipouts (number) , h (number) , er (number) , hr (number) , bb (number) , so (number) , baopp (text) , era (number) , ibb (number) , wp (number) , hbp (number) , bk (number) , bfp (number) , gf (number) , r (number) , sh (number) , sf (number) , g_idp (number) | salary : year (number) , team_id (text) , league_id (text) , player_id (text) , salary (number) | college : college_id (text) , name_full (text) , city (text) , state (text) , country (text) | postseason : year (number) , round (text) , team_id_winner (text) , league_id_winner (text) , team_id_loser (text) , league_id_loser (text) , wins (number) , losses (number) , ties (number) | team : year (number) , league_id (text) , team_id (text) , franchise_id (text) , div_id (text) , rank (number) , g (number) , ghome (number) , w (number) , l (number) , div_win (text) , wc_win (text) , lg_win (text) , ws_win (text) , r (number) , ab (number) , h (number) , double (number) , triple (number) , hr (number) , bb (number) , so (number) , sb (number) , cs (number) , hbp (number) , sf (number) , ra (number) , er (number) , era (number) , cg (number) , sho (number) , sv (number) , ipouts (number) , ha (number) , hra (number) , bba (number) , soa (number) , e (number) , dp (number) , fp (number) , name (text) , park (text) , attendance (number) , bpf (number) , ppf (number) , team_id_br (text) , team_id_lahman45 (text) , team_id_retro (text) | team_franchise : franchise_id (text) , franchise_name (text) , active (text) , na_assoc (text) | team_half : year (number) , league_id (text) , team_id (text) , half (number) , div_id (text) , div_win (text) , rank (number) , g (number) , w (number) , l (number)


Question: Which cities have 2 to 4 parks?

all_star : player_id (text) , year (number) , game_num (number) , game_id (text) , team_id (text) , league_id (text) , gp (number) , starting_pos (number) | appearances : year (number) , team_id (text) , league_id (text) , player_id (text) , g_all (number) , gs (number) , g_batting (number) , g_defense (number) , g_p (number) , g_c (number) , g_1b (number) , g_2b (number) , g_3b (number) , g_ss (number) , g_lf (number) , g_cf (number) , g_rf (number) , g_of (number) , g_dh (number) , g_ph (number) , g_pr (number) | manager_award : player_id (text) , award_id (text) , year (number) , league_id (text) , tie (text) , notes (number) | player_award : player_id (text) , award_id (text) , year (number) , league_id (text) , tie (text) , notes (text) | manager_award_vote : award_id (text) , year (number) , league_id (text) , player_id (text) , points_won (number) , points_max (number) , votes_first (number) | player_award_vote : award_id (text) , year (number) , league_id (text) , player_id (text) , points_won (number) , points_max (number) , votes_first (number) | batting : player_id (text) , year (number) , stint (number) , team_id (text) , league_id (text) , g (number) , ab (number) , r (number) , h (number) , double (number) , triple (number) , hr (number) , rbi (number) , sb (number) , cs (number) , bb (number) , so (number) , ibb (number) , hbp (number) , sh (number) , sf (number) , g_idp (number) | batting_postseason : year (number) , round (text) , player_id (text) , team_id (text) , league_id (text) , g (number) , ab (number) , r (number) , h (number) , double (number) , triple (number) , hr (number) , rbi (number) , sb (number) , cs (number) , bb (number) , so (number) , ibb (number) , hbp (number) , sh (number) , sf (number) , g_idp (number) | player_college : player_id (text) , college_id (text) , year (number) | fielding : player_id (text) , year (number) , stint (number) , team_id (text) , league_id (text) , pos (text) , g (number) , gs (number) , inn_outs (number) , po (number) , a (number) , e (number) , dp (number) , pb (number) , wp (number) , sb (number) , cs (number) , zr (number) | fielding_outfield : player_id (text) , year (number) , stint (number) , glf (number) , gcf (number) , grf (number) | fielding_postseason : player_id (text) , year (number) , team_id (text) , league_id (text) , round (text) , pos (text) , g (number) , gs (number) , inn_outs (number) , po (number) , a (number) , e (number) , dp (number) , tp (number) , pb (number) , sb (number) , cs (number) | hall_of_fame : player_id (text) , yearid (number) , votedby (text) , ballots (number) , needed (number) , votes (number) , inducted (text) , category (text) , needed_note (text) | home_game : year (number) , league_id (text) , team_id (text) , park_id (text) , span_first (text) , span_last (text) , games (number) , openings (number) , attendance (number) | manager : player_id (text) , year (number) , team_id (text) , league_id (text) , inseason (number) , g (number) , w (number) , l (number) , rank (number) , plyr_mgr (text) | manager_half : player_id (text) , year (number) , team_id (text) , league_id (text) , inseason (number) , half (number) , g (number) , w (number) , l (number) , rank (number) | player : player_id (text) , birth_year (number) , birth_month (number) , birth_day (number) , birth_country (text) , birth_state (text) , birth_city (text) , death_year (number) , death_month (number) , death_day (number) , death_country (text) , death_state (text) , death_city (text) , name_first (text) , name_last (text) , name_given (text) , weight (number) , height (number) , bats (text) , throws (text) , debut (text) , final_game (text) , retro_id (text) , bbref_id (text) | park : park_id (text) , park_name (text) , park_alias (text) , city (text) , state (text) , country (text) | pitching : player_id (text) , year (number) , stint (number) , team_id (text) , league_id (text) , w (number) , l (number) , g (number) , gs (number) , cg (number) , sho (number) , sv (number) , ipouts (number) , h (number) , er (number) , hr (number) , bb (number) , so (number) , baopp (number) , era (number) , ibb (number) , wp (number) , hbp (number) , bk (number) , bfp (number) , gf (number) , r (number) , sh (number) , sf (number) , g_idp (number) | pitching_postseason : player_id (text) , year (number) , round (text) , team_id (text) , league_id (text) , w (number) , l (number) , g (number) , gs (number) , cg (number) , sho (number) , sv (number) , ipouts (number) , h (number) , er (number) , hr (number) , bb (number) , so (number) , baopp (text) , era (number) , ibb (number) , wp (number) , hbp (number) , bk (number) , bfp (number) , gf (number) , r (number) , sh (number) , sf (number) , g_idp (number) | salary : year (number) , team_id (text) , league_id (text) , player_id (text) , salary (number) | college : college_id (text) , name_full (text) , city (text) , state (text) , country (text) | postseason : year (number) , round (text) , team_id_winner (text) , league_id_winner (text) , team_id_loser (text) , league_id_loser (text) , wins (number) , losses (number) , ties (number) | team : year (number) , league_id (text) , team_id (text) , franchise_id (text) , div_id (text) , rank (number) , g (number) , ghome (number) , w (number) , l (number) , div_win (text) , wc_win (text) , lg_win (text) , ws_win (text) , r (number) , ab (number) , h (number) , double (number) , triple (number) , hr (number) , bb (number) , so (number) , sb (number) , cs (number) , hbp (number) , sf (number) , ra (number) , er (number) , era (number) , cg (number) , sho (number) , sv (number) , ipouts (number) , ha (number) , hra (number) , bba (number) , soa (number) , e (number) , dp (number) , fp (number) , name (text) , park (text) , attendance (number) , bpf (number) , ppf (number) , team_id_br (text) , team_id_lahman45 (text) , team_id_retro (text) | team_franchise : franchise_id (text) , franchise_name (text) , active (text) , na_assoc (text) | team_half : year (number) , league_id (text) , team_id (text) , half (number) , div_id (text) , div_win (text) , rank (number) , g (number) , w (number) , l (number)

park : city (text) , park_id (number) | college : city (text) , college_id (number) | team : park (text) , team_id (number)


Question: Find all the cities that have 2 to 4 parks.

all_star : player_id (text) , year (number) , game_num (number) , game_id (text) , team_id (text) , league_id (text) , gp (number) , starting_pos (number) | appearances : year (number) , team_id (text) , league_id (text) , player_id (text) , g_all (number) , gs (number) , g_batting (number) , g_defense (number) , g_p (number) , g_c (number) , g_1b (number) , g_2b (number) , g_3b (number) , g_ss (number) , g_lf (number) , g_cf (number) , g_rf (number) , g_of (number) , g_dh (number) , g_ph (number) , g_pr (number) | manager_award : player_id (text) , award_id (text) , year (number) , league_id (text) , tie (text) , notes (number) | player_award : player_id (text) , award_id (text) , year (number) , league_id (text) , tie (text) , notes (text) | manager_award_vote : award_id (text) , year (number) , league_id (text) , player_id (text) , points_won (number) , points_max (number) , votes_first (number) | player_award_vote : award_id (text) , year (number) , league_id (text) , player_id (text) , points_won (number) , points_max (number) , votes_first (number) | batting : player_id (text) , year (number) , stint (number) , team_id (text) , league_id (text) , g (number) , ab (number) , r (number) , h (number) , double (number) , triple (number) , hr (number) , rbi (number) , sb (number) , cs (number) , bb (number) , so (number) , ibb (number) , hbp (number) , sh (number) , sf (number) , g_idp (number) | batting_postseason : year (number) , round (text) , player_id (text) , team_id (text) , league_id (text) , g (number) , ab (number) , r (number) , h (number) , double (number) , triple (number) , hr (number) , rbi (number) , sb (number) , cs (number) , bb (number) , so (number) , ibb (number) , hbp (number) , sh (number) , sf (number) , g_idp (number) | player_college : player_id (text) , college_id (text) , year (number) | fielding : player_id (text) , year (number) , stint (number) , team_id (text) , league_id (text) , pos (text) , g (number) , gs (number) , inn_outs (number) , po (number) , a (number) , e (number) , dp (number) , pb (number) , wp (number) , sb (number) , cs (number) , zr (number) | fielding_outfield : player_id (text) , year (number) , stint (number) , glf (number) , gcf (number) , grf (number) | fielding_postseason : player_id (text) , year (number) , team_id (text) , league_id (text) , round (text) , pos (text) , g (number) , gs (number) , inn_outs (number) , po (number) , a (number) , e (number) , dp (number) , tp (number) , pb (number) , sb (number) , cs (number) | hall_of_fame : player_id (text) , yearid (number) , votedby (text) , ballots (number) , needed (number) , votes (number) , inducted (text) , category (text) , needed_note (text) | home_game : year (number) , league_id (text) , team_id (text) , park_id (text) , span_first (text) , span_last (text) , games (number) , openings (number) , attendance (number) | manager : player_id (text) , year (number) , team_id (text) , league_id (text) , inseason (number) , g (number) , w (number) , l (number) , rank (number) , plyr_mgr (text) | manager_half : player_id (text) , year (number) , team_id (text) , league_id (text) , inseason (number) , half (number) , g (number) , w (number) , l (number) , rank (number) | player : player_id (text) , birth_year (number) , birth_month (number) , birth_day (number) , birth_country (text) , birth_state (text) , birth_city (text) , death_year (number) , death_month (number) , death_day (number) , death_country (text) , death_state (text) , death_city (text) , name_first (text) , name_last (text) , name_given (text) , weight (number) , height (number) , bats (text) , throws (text) , debut (text) , final_game (text) , retro_id (text) , bbref_id (text) | park : park_id (text) , park_name (text) , park_alias (text) , city (text) , state (text) , country (text) | pitching : player_id (text) , year (number) , stint (number) , team_id (text) , league_id (text) , w (number) , l (number) , g (number) , gs (number) , cg (number) , sho (number) , sv (number) , ipouts (number) , h (number) , er (number) , hr (number) , bb (number) , so (number) , baopp (number) , era (number) , ibb (number) , wp (number) , hbp (number) , bk (number) , bfp (number) , gf (number) , r (number) , sh (number) , sf (number) , g_idp (number) | pitching_postseason : player_id (text) , year (number) , round (text) , team_id (text) , league_id (text) , w (number) , l (number) , g (number) , gs (number) , cg (number) , sho (number) , sv (number) , ipouts (number) , h (number) , er (number) , hr (number) , bb (number) , so (number) , baopp (text) , era (number) , ibb (number) , wp (number) , hbp (number) , bk (number) , bfp (number) , gf (number) , r (number) , sh (number) , sf (number) , g_idp (number) | salary : year (number) , team_id (text) , league_id (text) , player_id (text) , salary (number) | college : college_id (text) , name_full (text) , city (text) , state (text) , country (text) | postseason : year (number) , round (text) , team_id_winner (text) , league_id_winner (text) , team_id_loser (text) , league_id_loser (text) , wins (number) , losses (number) , ties (number) | team : year (number) , league_id (text) , team_id (text) , franchise_id (text) , div_id (text) , rank (number) , g (number) , ghome (number) , w (number) , l (number) , div_win (text) , wc_win (text) , lg_win (text) , ws_win (text) , r (number) , ab (number) , h (number) , double (number) , triple (number) , hr (number) , bb (number) , so (number) , sb (number) , cs (number) , hbp (number) , sf (number) , ra (number) , er (number) , era (number) , cg (number) , sho (number) , sv (number) , ipouts (number) , ha (number) , hra (number) , bba (number) , soa (number) , e (number) , dp (number) , fp (number) , name (text) , park (text) , attendance (number) , bpf (number) , ppf (number) , team_id_br (text) , team_id_lahman45 (text) , team_id_retro (text) | team_franchise : franchise_id (text) , franchise_name (text) , active (text) , na_assoc (text) | team_half : year (number) , league_id (text) , team_id (text) , half (number) , div_id (text) , div_win (text) , rank (number) , g (number) , w (number) , l (number)

park : city (text) , park_id (number) | college : city (text) , college_id (number) | team : park (text) , team_id (number)


Question: Which park had most attendances in 2008?

all_star : player_id (text) , year (number) , game_num (number) , game_id (text) , team_id (text) , league_id (text) , gp (number) , starting_pos (number) | appearances : year (number) , team_id (text) , league_id (text) , player_id (text) , g_all (number) , gs (number) , g_batting (number) , g_defense (number) , g_p (number) , g_c (number) , g_1b (number) , g_2b (number) , g_3b (number) , g_ss (number) , g_lf (number) , g_cf (number) , g_rf (number) , g_of (number) , g_dh (number) , g_ph (number) , g_pr (number) | manager_award : player_id (text) , award_id (text) , year (number) , league_id (text) , tie (text) , notes (number) | player_award : player_id (text) , award_id (text) , year (number) , league_id (text) , tie (text) , notes (text) | manager_award_vote : award_id (text) , year (number) , league_id (text) , player_id (text) , points_won (number) , points_max (number) , votes_first (number) | player_award_vote : award_id (text) , year (number) , league_id (text) , player_id (text) , points_won (number) , points_max (number) , votes_first (number) | batting : player_id (text) , year (number) , stint (number) , team_id (text) , league_id (text) , g (number) , ab (number) , r (number) , h (number) , double (number) , triple (number) , hr (number) , rbi (number) , sb (number) , cs (number) , bb (number) , so (number) , ibb (number) , hbp (number) , sh (number) , sf (number) , g_idp (number) | batting_postseason : year (number) , round (text) , player_id (text) , team_id (text) , league_id (text) , g (number) , ab (number) , r (number) , h (number) , double (number) , triple (number) , hr (number) , rbi (number) , sb (number) , cs (number) , bb (number) , so (number) , ibb (number) , hbp (number) , sh (number) , sf (number) , g_idp (number) | player_college : player_id (text) , college_id (text) , year (number) | fielding : player_id (text) , year (number) , stint (number) , team_id (text) , league_id (text) , pos (text) , g (number) , gs (number) , inn_outs (number) , po (number) , a (number) , e (number) , dp (number) , pb (number) , wp (number) , sb (number) , cs (number) , zr (number) | fielding_outfield : player_id (text) , year (number) , stint (number) , glf (number) , gcf (number) , grf (number) | fielding_postseason : player_id (text) , year (number) , team_id (text) , league_id (text) , round (text) , pos (text) , g (number) , gs (number) , inn_outs (number) , po (number) , a (number) , e (number) , dp (number) , tp (number) , pb (number) , sb (number) , cs (number) | hall_of_fame : player_id (text) , yearid (number) , votedby (text) , ballots (number) , needed (number) , votes (number) , inducted (text) , category (text) , needed_note (text) | home_game : year (number) , league_id (text) , team_id (text) , park_id (text) , span_first (text) , span_last (text) , games (number) , openings (number) , attendance (number) | manager : player_id (text) , year (number) , team_id (text) , league_id (text) , inseason (number) , g (number) , w (number) , l (number) , rank (number) , plyr_mgr (text) | manager_half : player_id (text) , year (number) , team_id (text) , league_id (text) , inseason (number) , half (number) , g (number) , w (number) , l (number) , rank (number) | player : player_id (text) , birth_year (number) , birth_month (number) , birth_day (number) , birth_country (text) , birth_state (text) , birth_city (text) , death_year (number) , death_month (number) , death_day (number) , death_country (text) , death_state (text) , death_city (text) , name_first (text) , name_last (text) , name_given (text) , weight (number) , height (number) , bats (text) , throws (text) , debut (text) , final_game (text) , retro_id (text) , bbref_id (text) | park : park_id (text) , park_name (text) , park_alias (text) , city (text) , state (text) , country (text) | pitching : player_id (text) , year (number) , stint (number) , team_id (text) , league_id (text) , w (number) , l (number) , g (number) , gs (number) , cg (number) , sho (number) , sv (number) , ipouts (number) , h (number) , er (number) , hr (number) , bb (number) , so (number) , baopp (number) , era (number) , ibb (number) , wp (number) , hbp (number) , bk (number) , bfp (number) , gf (number) , r (number) , sh (number) , sf (number) , g_idp (number) | pitching_postseason : player_id (text) , year (number) , round (text) , team_id (text) , league_id (text) , w (number) , l (number) , g (number) , gs (number) , cg (number) , sho (number) , sv (number) , ipouts (number) , h (number) , er (number) , hr (number) , bb (number) , so (number) , baopp (text) , era (number) , ibb (number) , wp (number) , hbp (number) , bk (number) , bfp (number) , gf (number) , r (number) , sh (number) , sf (number) , g_idp (number) | salary : year (number) , team_id (text) , league_id (text) , player_id (text) , salary (number) | college : college_id (text) , name_full (text) , city (text) , state (text) , country (text) | postseason : year (number) , round (text) , team_id_winner (text) , league_id_winner (text) , team_id_loser (text) , league_id_loser (text) , wins (number) , losses (number) , ties (number) | team : year (number) , league_id (text) , team_id (text) , franchise_id (text) , div_id (text) , rank (number) , g (number) , ghome (number) , w (number) , l (number) , div_win (text) , wc_win (text) , lg_win (text) , ws_win (text) , r (number) , ab (number) , h (number) , double (number) , triple (number) , hr (number) , bb (number) , so (number) , sb (number) , cs (number) , hbp (number) , sf (number) , ra (number) , er (number) , era (number) , cg (number) , sho (number) , sv (number) , ipouts (number) , ha (number) , hra (number) , bba (number) , soa (number) , e (number) , dp (number) , fp (number) , name (text) , park (text) , attendance (number) , bpf (number) , ppf (number) , team_id_br (text) , team_id_lahman45 (text) , team_id_retro (text) | team_franchise : franchise_id (text) , franchise_name (text) , active (text) , na_assoc (text) | team_half : year (number) , league_id (text) , team_id (text) , half (number) , div_id (text) , div_win (text) , rank (number) , g (number) , w (number) , l (number)

park : park_name (text) , park_id (text) , park_id (number) | team : park (text) , year (number) , attendance (number) , team_id (number) | home_game : park_id (text) , year (number) , attendance (number) , team_id (number) | all_star : year (number) , player_id (number) | appearances : year (number) , team_id (number) | manager_award : year (number) , player_id (number) | player_award : year (number) , player_id (number) | manager_award_vote : year (number) | player_award_vote : year (number) , player_id (number) | batting : year (number) , player_id (number) | batting_postseason : year (number) , player_id (number) | player_college : year (number) , player_id (number) | fielding : year (number) , player_id (number) | fielding_outfield : year (number) , player_id (number) | fielding_postseason : year (number) , player_id (number) | manager : year (number) , team_id (number) | manager_half : year (number) , team_id (number) | pitching : year (number) | pitching_postseason : year (number) | salary : year (number) | postseason : year (number) | team_half : year (number)


Question: Which park did the most people attend in 2008?

all_star : player_id (text) , year (number) , game_num (number) , game_id (text) , team_id (text) , league_id (text) , gp (number) , starting_pos (number) | appearances : year (number) , team_id (text) , league_id (text) , player_id (text) , g_all (number) , gs (number) , g_batting (number) , g_defense (number) , g_p (number) , g_c (number) , g_1b (number) , g_2b (number) , g_3b (number) , g_ss (number) , g_lf (number) , g_cf (number) , g_rf (number) , g_of (number) , g_dh (number) , g_ph (number) , g_pr (number) | manager_award : player_id (text) , award_id (text) , year (number) , league_id (text) , tie (text) , notes (number) | player_award : player_id (text) , award_id (text) , year (number) , league_id (text) , tie (text) , notes (text) | manager_award_vote : award_id (text) , year (number) , league_id (text) , player_id (text) , points_won (number) , points_max (number) , votes_first (number) | player_award_vote : award_id (text) , year (number) , league_id (text) , player_id (text) , points_won (number) , points_max (number) , votes_first (number) | batting : player_id (text) , year (number) , stint (number) , team_id (text) , league_id (text) , g (number) , ab (number) , r (number) , h (number) , double (number) , triple (number) , hr (number) , rbi (number) , sb (number) , cs (number) , bb (number) , so (number) , ibb (number) , hbp (number) , sh (number) , sf (number) , g_idp (number) | batting_postseason : year (number) , round (text) , player_id (text) , team_id (text) , league_id (text) , g (number) , ab (number) , r (number) , h (number) , double (number) , triple (number) , hr (number) , rbi (number) , sb (number) , cs (number) , bb (number) , so (number) , ibb (number) , hbp (number) , sh (number) , sf (number) , g_idp (number) | player_college : player_id (text) , college_id (text) , year (number) | fielding : player_id (text) , year (number) , stint (number) , team_id (text) , league_id (text) , pos (text) , g (number) , gs (number) , inn_outs (number) , po (number) , a (number) , e (number) , dp (number) , pb (number) , wp (number) , sb (number) , cs (number) , zr (number) | fielding_outfield : player_id (text) , year (number) , stint (number) , glf (number) , gcf (number) , grf (number) | fielding_postseason : player_id (text) , year (number) , team_id (text) , league_id (text) , round (text) , pos (text) , g (number) , gs (number) , inn_outs (number) , po (number) , a (number) , e (number) , dp (number) , tp (number) , pb (number) , sb (number) , cs (number) | hall_of_fame : player_id (text) , yearid (number) , votedby (text) , ballots (number) , needed (number) , votes (number) , inducted (text) , category (text) , needed_note (text) | home_game : year (number) , league_id (text) , team_id (text) , park_id (text) , span_first (text) , span_last (text) , games (number) , openings (number) , attendance (number) | manager : player_id (text) , year (number) , team_id (text) , league_id (text) , inseason (number) , g (number) , w (number) , l (number) , rank (number) , plyr_mgr (text) | manager_half : player_id (text) , year (number) , team_id (text) , league_id (text) , inseason (number) , half (number) , g (number) , w (number) , l (number) , rank (number) | player : player_id (text) , birth_year (number) , birth_month (number) , birth_day (number) , birth_country (text) , birth_state (text) , birth_city (text) , death_year (number) , death_month (number) , death_day (number) , death_country (text) , death_state (text) , death_city (text) , name_first (text) , name_last (text) , name_given (text) , weight (number) , height (number) , bats (text) , throws (text) , debut (text) , final_game (text) , retro_id (text) , bbref_id (text) | park : park_id (text) , park_name (text) , park_alias (text) , city (text) , state (text) , country (text) | pitching : player_id (text) , year (number) , stint (number) , team_id (text) , league_id (text) , w (number) , l (number) , g (number) , gs (number) , cg (number) , sho (number) , sv (number) , ipouts (number) , h (number) , er (number) , hr (number) , bb (number) , so (number) , baopp (number) , era (number) , ibb (number) , wp (number) , hbp (number) , bk (number) , bfp (number) , gf (number) , r (number) , sh (number) , sf (number) , g_idp (number) | pitching_postseason : player_id (text) , year (number) , round (text) , team_id (text) , league_id (text) , w (number) , l (number) , g (number) , gs (number) , cg (number) , sho (number) , sv (number) , ipouts (number) , h (number) , er (number) , hr (number) , bb (number) , so (number) , baopp (text) , era (number) , ibb (number) , wp (number) , hbp (number) , bk (number) , bfp (number) , gf (number) , r (number) , sh (number) , sf (number) , g_idp (number) | salary : year (number) , team_id (text) , league_id (text) , player_id (text) , salary (number) | college : college_id (text) , name_full (text) , city (text) , state (text) , country (text) | postseason : year (number) , round (text) , team_id_winner (text) , league_id_winner (text) , team_id_loser (text) , league_id_loser (text) , wins (number) , losses (number) , ties (number) | team : year (number) , league_id (text) , team_id (text) , franchise_id (text) , div_id (text) , rank (number) , g (number) , ghome (number) , w (number) , l (number) , div_win (text) , wc_win (text) , lg_win (text) , ws_win (text) , r (number) , ab (number) , h (number) , double (number) , triple (number) , hr (number) , bb (number) , so (number) , sb (number) , cs (number) , hbp (number) , sf (number) , ra (number) , er (number) , era (number) , cg (number) , sho (number) , sv (number) , ipouts (number) , ha (number) , hra (number) , bba (number) , soa (number) , e (number) , dp (number) , fp (number) , name (text) , park (text) , attendance (number) , bpf (number) , ppf (number) , team_id_br (text) , team_id_lahman45 (text) , team_id_retro (text) | team_franchise : franchise_id (text) , franchise_name (text) , active (text) , na_assoc (text) | team_half : year (number) , league_id (text) , team_id (text) , half (number) , div_id (text) , div_win (text) , rank (number) , g (number) , w (number) , l (number)

park : park_name (text) , park_id (text) , park_id (number) | team : park (text) , year (number) , attendance (number) , team_id (number) | home_game : park_id (text) , year (number) , attendance (number) , team_id (number) | all_star : year (number) , player_id (number) | appearances : year (number) , team_id (number) | manager_award : year (number) , player_id (number) | player_award : year (number) , player_id (number) | manager_award_vote : year (number) | player_award_vote : year (number) , player_id (number) | batting : year (number) , player_id (number) | batting_postseason : year (number) , player_id (number) | player_college : year (number) , player_id (number) | fielding : year (number) , player_id (number) | fielding_outfield : year (number) , player_id (number) | fielding_postseason : year (number) , player_id (number) | manager : year (number) , team_id (number) | manager_half : year (number) , team_id (number) | pitching : year (number) | pitching_postseason : year (number) | salary : year (number) | postseason : year (number) | team_half : year (number)


Question: How many camera lenses have a focal length longer than 15 mm?

mountain : id (number) , name (text) , height (number) , prominence (number) , range (text) , country (text) | camera_lens : id (number) , brand (text) , name (text) , focal_length_mm (number) , max_aperture (number) | photos : id (number) , camera_lens_id (number) , mountain_id (number) , color (text) , name (text)

camera_lens : focal_length_mm (number) , id (number)


Question: Find the brand and name for each camera lens, and sort in descending order of maximum aperture.

mountain : id (number) , name (text) , height (number) , prominence (number) , range (text) , country (text) | camera_lens : id (number) , brand (text) , name (text) , focal_length_mm (number) , max_aperture (number) | photos : id (number) , camera_lens_id (number) , mountain_id (number) , color (text) , name (text)

camera_lens : brand (text) , name (text) , max_aperture (number) , id (number) | mountain : name (text) , id (number) | photos : name (text) , id (number)


Question: List the id, color scheme, and name for all the photos.

mountain : id (number) , name (text) , height (number) , prominence (number) , range (text) , country (text) | camera_lens : id (number) , brand (text) , name (text) , focal_length_mm (number) , max_aperture (number) | photos : id (number) , camera_lens_id (number) , mountain_id (number) , color (text) , name (text)

mountain : id (number) , name (text) , id (number) | camera_lens : id (number) , name (text) , id (number) | photos : id (number) , color (text) , name (text) , id (number)


Question: What are the maximum and average height of the mountains?

mountain : id (number) , name (text) , height (number) , prominence (number) , range (text) , country (text) | camera_lens : id (number) , brand (text) , name (text) , focal_length_mm (number) , max_aperture (number) | photos : id (number) , camera_lens_id (number) , mountain_id (number) , color (text) , name (text)

mountain : height (number) , id (number)


Question: What are the average prominence of the mountains in country 'Morocco'?

mountain : id (number) , name (text) , height (number) , prominence (number) , range (text) , country (text) | camera_lens : id (number) , brand (text) , name (text) , focal_length_mm (number) , max_aperture (number) | photos : id (number) , camera_lens_id (number) , mountain_id (number) , color (text) , name (text)

mountain : prominence (number) , country (text) , id (number)


Question: What are the name, height and prominence of mountains which do not belong to the range 'Aberdare Range'?

mountain : id (number) , name (text) , height (number) , prominence (number) , range (text) , country (text) | camera_lens : id (number) , brand (text) , name (text) , focal_length_mm (number) , max_aperture (number) | photos : id (number) , camera_lens_id (number) , mountain_id (number) , color (text) , name (text)

mountain : name (text) , height (number) , prominence (number) , range (text) , id (number) | camera_lens : name (text) , id (number) | photos : name (text) , id (number)


Question: What are the id and name of the photos for mountains?

mountain : id (number) , name (text) , height (number) , prominence (number) , range (text) , country (text) | camera_lens : id (number) , brand (text) , name (text) , focal_length_mm (number) , max_aperture (number) | photos : id (number) , camera_lens_id (number) , mountain_id (number) , color (text) , name (text)

mountain : id (number) , name (text) , height (number) , id (number) | camera_lens : id (number) , name (text) , id (number) | photos : id (number) , name (text) , mountain_id (number) , id (number)


Question: What are the id and name of the mountains that have at least 2 photos?

mountain : id (number) , name (text) , height (number) , prominence (number) , range (text) , country (text) | camera_lens : id (number) , brand (text) , name (text) , focal_length_mm (number) , max_aperture (number) | photos : id (number) , camera_lens_id (number) , mountain_id (number) , color (text) , name (text)

mountain : id (number) , name (text) , id (number) | camera_lens : id (number) , name (text) , id (number) | photos : id (number) , name (text) , mountain_id (number) , id (number)


Question: What are the names of the cameras that have taken picture of the most mountains?

mountain : id (number) , name (text) , height (number) , prominence (number) , range (text) , country (text) | camera_lens : id (number) , brand (text) , name (text) , focal_length_mm (number) , max_aperture (number) | photos : id (number) , camera_lens_id (number) , mountain_id (number) , color (text) , name (text)

mountain : name (text) , id (number) , id (number) | camera_lens : name (text) , id (number) , id (number) | photos : name (text) , camera_lens_id (number) , id (number) , id (number)


Question: What are the names of photos taken with the lens brand 'Sigma' or 'Olympus'?

mountain : id (number) , name (text) , height (number) , prominence (number) , range (text) , country (text) | camera_lens : id (number) , brand (text) , name (text) , focal_length_mm (number) , max_aperture (number) | photos : id (number) , camera_lens_id (number) , mountain_id (number) , color (text) , name (text)

mountain : name (text) , id (number) , id (number) | camera_lens : name (text) , id (number) , brand (text) , id (number) | photos : name (text) , camera_lens_id (number) , id (number) , id (number)


Question: How many different kinds of lens brands are there?

mountain : id (number) , name (text) , height (number) , prominence (number) , range (text) , country (text) | camera_lens : id (number) , brand (text) , name (text) , focal_length_mm (number) , max_aperture (number) | photos : id (number) , camera_lens_id (number) , mountain_id (number) , color (text) , name (text)

camera_lens : brand (text) , id (number)


Question: How many camera lenses are not used in taking any photos?

mountain : id (number) , name (text) , height (number) , prominence (number) , range (text) , country (text) | camera_lens : id (number) , brand (text) , name (text) , focal_length_mm (number) , max_aperture (number) | photos : id (number) , camera_lens_id (number) , mountain_id (number) , color (text) , name (text)

mountain : id (number) , id (number) | camera_lens : id (number) , id (number) | photos : id (number) , camera_lens_id (number) , id (number)


Question: How many distinct kinds of camera lenses are used to take photos of mountains in the country 'Ethiopia'?

mountain : id (number) , name (text) , height (number) , prominence (number) , range (text) , country (text) | camera_lens : id (number) , brand (text) , name (text) , focal_length_mm (number) , max_aperture (number) | photos : id (number) , camera_lens_id (number) , mountain_id (number) , color (text) , name (text)

photos : camera_lens_id (number) , id (number) , mountain_id (number) , id (number) | mountain : id (number) , country (text) , id (number) | camera_lens : id (number) , id (number)


Question: List the brands of lenses that took both a picture of mountains with range 'Toubkal Atlas' and a picture of mountains with range 'Lasta Massif'

mountain : id (number) , name (text) , height (number) , prominence (number) , range (text) , country (text) | camera_lens : id (number) , brand (text) , name (text) , focal_length_mm (number) , max_aperture (number) | photos : id (number) , camera_lens_id (number) , mountain_id (number) , color (text) , name (text)

camera_lens : brand (text) , id (number) , id (number) | mountain : id (number) , range (text) , id (number) | photos : id (number) , mountain_id (number) , camera_lens_id (number) , id (number)


Question: Show the name and prominence of the mountains whose picture is not taken by a lens of brand 'Sigma'.

mountain : id (number) , name (text) , height (number) , prominence (number) , range (text) , country (text) | camera_lens : id (number) , brand (text) , name (text) , focal_length_mm (number) , max_aperture (number) | photos : id (number) , camera_lens_id (number) , mountain_id (number) , color (text) , name (text)

mountain : name (text) , prominence (number) , id (number) , id (number) | camera_lens : name (text) , id (number) , brand (text) , id (number) | photos : name (text) , id (number) , mountain_id (number) , camera_lens_id (number) , id (number)


Question: List the camera lens names containing substring "Digital".

mountain : id (number) , name (text) , height (number) , prominence (number) , range (text) , country (text) | camera_lens : id (number) , brand (text) , name (text) , focal_length_mm (number) , max_aperture (number) | photos : id (number) , camera_lens_id (number) , mountain_id (number) , color (text) , name (text)

mountain : name (text) , id (number) | camera_lens : name (text) , id (number) | photos : name (text) , id (number)


Question: What is the name of each camera lens and the number of photos taken by it? Order the result by the count of photos.

mountain : id (number) , name (text) , height (number) , prominence (number) , range (text) , country (text) | camera_lens : id (number) , brand (text) , name (text) , focal_length_mm (number) , max_aperture (number) | photos : id (number) , camera_lens_id (number) , mountain_id (number) , color (text) , name (text)

mountain : name (text) , id (number) , id (number) | camera_lens : name (text) , id (number) , id (number) | photos : name (text) , id (number) , camera_lens_id (number) , id (number)


Question: Find the names of channels that are not owned by CCTV.

program : program_id (number) , name (text) , origin (text) , launch (number) , owner (text) | channel : channel_id (number) , name (text) , owner (text) , share_in_percent (number) , rating_in_percent (number) | broadcast : channel_id (number) , program_id (number) , time_of_day (text) | broadcast_share : channel_id (number) , program_id (number) , date (text) , share_in_percent (number)

program : name (text) , owner (text) , program_id (number) | channel : name (text) , owner (text) , channel_id (number)


Question: Which channels are not owned by CCTV? Give me the channel names.

program : program_id (number) , name (text) , origin (text) , launch (number) , owner (text) | channel : channel_id (number) , name (text) , owner (text) , share_in_percent (number) , rating_in_percent (number) | broadcast : channel_id (number) , program_id (number) , time_of_day (text) | broadcast_share : channel_id (number) , program_id (number) , date (text) , share_in_percent (number)

program : name (text) , owner (text) , program_id (number) | channel : name (text) , owner (text) , channel_id (number)


Question: List all channel names ordered by their rating in percent from big to small.

program : program_id (number) , name (text) , origin (text) , launch (number) , owner (text) | channel : channel_id (number) , name (text) , owner (text) , share_in_percent (number) , rating_in_percent (number) | broadcast : channel_id (number) , program_id (number) , time_of_day (text) | broadcast_share : channel_id (number) , program_id (number) , date (text) , share_in_percent (number)

program : name (text) , program_id (number) | channel : name (text) , rating_in_percent (number) , channel_id (number)


Question: Give me a list of all the channel names sorted by the channel rating in descending order.

program : program_id (number) , name (text) , origin (text) , launch (number) , owner (text) | channel : channel_id (number) , name (text) , owner (text) , share_in_percent (number) , rating_in_percent (number) | broadcast : channel_id (number) , program_id (number) , time_of_day (text) | broadcast_share : channel_id (number) , program_id (number) , date (text) , share_in_percent (number)

program : name (text) , program_id (number) | channel : name (text) , rating_in_percent (number) , channel_id (number)


Question: What is the owner of the channel that has the highest rating ratio?

program : program_id (number) , name (text) , origin (text) , launch (number) , owner (text) | channel : channel_id (number) , name (text) , owner (text) , share_in_percent (number) , rating_in_percent (number) | broadcast : channel_id (number) , program_id (number) , time_of_day (text) | broadcast_share : channel_id (number) , program_id (number) , date (text) , share_in_percent (number)

program : owner (text) , program_id (number) | channel : owner (text) , rating_in_percent (number) , channel_id (number)


Question: Show me the owner of the channel with the highest rating.

program : program_id (number) , name (text) , origin (text) , launch (number) , owner (text) | channel : channel_id (number) , name (text) , owner (text) , share_in_percent (number) , rating_in_percent (number) | broadcast : channel_id (number) , program_id (number) , time_of_day (text) | broadcast_share : channel_id (number) , program_id (number) , date (text) , share_in_percent (number)

program : owner (text) , program_id (number) | channel : owner (text) , rating_in_percent (number) , channel_id (number)


Question: how many programs are there?

program : program_id (number) , name (text) , origin (text) , launch (number) , owner (text) | channel : channel_id (number) , name (text) , owner (text) , share_in_percent (number) , rating_in_percent (number) | broadcast : channel_id (number) , program_id (number) , time_of_day (text) | broadcast_share : channel_id (number) , program_id (number) , date (text) , share_in_percent (number)


Question: Count the number of programs.

program : program_id (number) , name (text) , origin (text) , launch (number) , owner (text) | channel : channel_id (number) , name (text) , owner (text) , share_in_percent (number) , rating_in_percent (number) | broadcast : channel_id (number) , program_id (number) , time_of_day (text) | broadcast_share : channel_id (number) , program_id (number) , date (text) , share_in_percent (number)


Question: list all the names of programs, ordering by launch time.

program : program_id (number) , name (text) , origin (text) , launch (number) , owner (text) | channel : channel_id (number) , name (text) , owner (text) , share_in_percent (number) , rating_in_percent (number) | broadcast : channel_id (number) , program_id (number) , time_of_day (text) | broadcast_share : channel_id (number) , program_id (number) , date (text) , share_in_percent (number)

program : name (text) , launch (number) , program_id (number) | channel : name (text) , channel_id (number)


Question: What is the list of program names, sorted by the order of launch date?

program : program_id (number) , name (text) , origin (text) , launch (number) , owner (text) | channel : channel_id (number) , name (text) , owner (text) , share_in_percent (number) , rating_in_percent (number) | broadcast : channel_id (number) , program_id (number) , time_of_day (text) | broadcast_share : channel_id (number) , program_id (number) , date (text) , share_in_percent (number)

program : name (text) , launch (number) , program_id (number) | channel : name (text) , channel_id (number)


Question: List the name, origin and owner of each program.

program : program_id (number) , name (text) , origin (text) , launch (number) , owner (text) | channel : channel_id (number) , name (text) , owner (text) , share_in_percent (number) , rating_in_percent (number) | broadcast : channel_id (number) , program_id (number) , time_of_day (text) | broadcast_share : channel_id (number) , program_id (number) , date (text) , share_in_percent (number)

program : name (text) , origin (text) , owner (text) , program_id (number) | channel : name (text) , owner (text) , channel_id (number)


Question: What are the name, origin and owner of each program?

program : program_id (number) , name (text) , origin (text) , launch (number) , owner (text) | channel : channel_id (number) , name (text) , owner (text) , share_in_percent (number) , rating_in_percent (number) | broadcast : channel_id (number) , program_id (number) , time_of_day (text) | broadcast_share : channel_id (number) , program_id (number) , date (text) , share_in_percent (number)

program : name (text) , origin (text) , owner (text) , program_id (number) | channel : name (text) , owner (text) , channel_id (number)


Question: find the name of the program that was launched most recently.

program : program_id (number) , name (text) , origin (text) , launch (number) , owner (text) | channel : channel_id (number) , name (text) , owner (text) , share_in_percent (number) , rating_in_percent (number) | broadcast : channel_id (number) , program_id (number) , time_of_day (text) | broadcast_share : channel_id (number) , program_id (number) , date (text) , share_in_percent (number)

program : name (text) , launch (number) , program_id (number) | channel : name (text) , channel_id (number)


Question: Which program was launched most recently? Return the program name.

program : program_id (number) , name (text) , origin (text) , launch (number) , owner (text) | channel : channel_id (number) , name (text) , owner (text) , share_in_percent (number) , rating_in_percent (number) | broadcast : channel_id (number) , program_id (number) , time_of_day (text) | broadcast_share : channel_id (number) , program_id (number) , date (text) , share_in_percent (number)

program : name (text) , launch (number) , program_id (number) | channel : name (text) , channel_id (number)


Question: find the total percentage share of all channels owned by CCTV.

program : program_id (number) , name (text) , origin (text) , launch (number) , owner (text) | channel : channel_id (number) , name (text) , owner (text) , share_in_percent (number) , rating_in_percent (number) | broadcast : channel_id (number) , program_id (number) , time_of_day (text) | broadcast_share : channel_id (number) , program_id (number) , date (text) , share_in_percent (number)

channel : share_in_percent (number) , owner (text) , channel_id (number) | broadcast_share : share_in_percent (number) , channel_id (number) | program : owner (text) , program_id (number)


Question: What is the total share (in percent) of all the channels owned by CCTV?

program : program_id (number) , name (text) , origin (text) , launch (number) , owner (text) | channel : channel_id (number) , name (text) , owner (text) , share_in_percent (number) , rating_in_percent (number) | broadcast : channel_id (number) , program_id (number) , time_of_day (text) | broadcast_share : channel_id (number) , program_id (number) , date (text) , share_in_percent (number)

channel : share_in_percent (number) , owner (text) , channel_id (number) | broadcast_share : share_in_percent (number) , channel_id (number) | program : owner (text) , program_id (number)


Question: Find the names of the channels that are broadcast in the morning.

program : program_id (number) , name (text) , origin (text) , launch (number) , owner (text) | channel : channel_id (number) , name (text) , owner (text) , share_in_percent (number) , rating_in_percent (number) | broadcast : channel_id (number) , program_id (number) , time_of_day (text) | broadcast_share : channel_id (number) , program_id (number) , date (text) , share_in_percent (number)

program : name (text) , program_id (number) | channel : name (text) , channel_id (number) , channel_id (number) | broadcast : channel_id (number) , time_of_day (text) , channel_id (number) | broadcast_share : channel_id (number) , channel_id (number)


Question: Which channels are broadcast in the morning? Give me the channel names.

program : program_id (number) , name (text) , origin (text) , launch (number) , owner (text) | channel : channel_id (number) , name (text) , owner (text) , share_in_percent (number) , rating_in_percent (number) | broadcast : channel_id (number) , program_id (number) , time_of_day (text) | broadcast_share : channel_id (number) , program_id (number) , date (text) , share_in_percent (number)

program : name (text) , program_id (number) | channel : name (text) , channel_id (number) , channel_id (number) | broadcast : channel_id (number) , time_of_day (text) , channel_id (number) | broadcast_share : channel_id (number) , channel_id (number)


Question: what are the names of the channels that broadcast in both morning and night?

program : program_id (number) , name (text) , origin (text) , launch (number) , owner (text) | channel : channel_id (number) , name (text) , owner (text) , share_in_percent (number) , rating_in_percent (number) | broadcast : channel_id (number) , program_id (number) , time_of_day (text) | broadcast_share : channel_id (number) , program_id (number) , date (text) , share_in_percent (number)

program : name (text) , program_id (number) | channel : name (text) , channel_id (number) , channel_id (number) | broadcast : channel_id (number) , time_of_day (text) , channel_id (number) | broadcast_share : channel_id (number) , channel_id (number)


Question: Which channels broadcast both in the morning and at night? Give me the channel names.

program : program_id (number) , name (text) , origin (text) , launch (number) , owner (text) | channel : channel_id (number) , name (text) , owner (text) , share_in_percent (number) , rating_in_percent (number) | broadcast : channel_id (number) , program_id (number) , time_of_day (text) | broadcast_share : channel_id (number) , program_id (number) , date (text) , share_in_percent (number)

program : name (text) , program_id (number) | channel : name (text) , channel_id (number) , channel_id (number) | broadcast : channel_id (number) , time_of_day (text) , channel_id (number) | broadcast_share : channel_id (number) , channel_id (number)


Question: how many programs are broadcast in each time section of the day?

program : program_id (number) , name (text) , origin (text) , launch (number) , owner (text) | channel : channel_id (number) , name (text) , owner (text) , share_in_percent (number) , rating_in_percent (number) | broadcast : channel_id (number) , program_id (number) , time_of_day (text) | broadcast_share : channel_id (number) , program_id (number) , date (text) , share_in_percent (number)

broadcast : time_of_day (text) , channel_id (number)


Question: Count the number of programs broadcast for each time section of a day.

program : program_id (number) , name (text) , origin (text) , launch (number) , owner (text) | channel : channel_id (number) , name (text) , owner (text) , share_in_percent (number) , rating_in_percent (number) | broadcast : channel_id (number) , program_id (number) , time_of_day (text) | broadcast_share : channel_id (number) , program_id (number) , date (text) , share_in_percent (number)

broadcast : time_of_day (text) , channel_id (number)


Question: find the number of different programs that are broadcast during night time.

program : program_id (number) , name (text) , origin (text) , launch (number) , owner (text) | channel : channel_id (number) , name (text) , owner (text) , share_in_percent (number) , rating_in_percent (number) | broadcast : channel_id (number) , program_id (number) , time_of_day (text) | broadcast_share : channel_id (number) , program_id (number) , date (text) , share_in_percent (number)

program : program_id (number) , program_id (number) | broadcast : program_id (number) , time_of_day (text) , channel_id (number) | broadcast_share : program_id (number) , channel_id (number)


Question: How many distinct programs are broadcast at "Night" time?

program : program_id (number) , name (text) , origin (text) , launch (number) , owner (text) | channel : channel_id (number) , name (text) , owner (text) , share_in_percent (number) , rating_in_percent (number) | broadcast : channel_id (number) , program_id (number) , time_of_day (text) | broadcast_share : channel_id (number) , program_id (number) , date (text) , share_in_percent (number)

program : program_id (number) , program_id (number) | broadcast : program_id (number) , time_of_day (text) , channel_id (number) | broadcast_share : program_id (number) , channel_id (number)


Question: Find the names of programs that are never broadcasted in the morning.

program : program_id (number) , name (text) , origin (text) , launch (number) , owner (text) | channel : channel_id (number) , name (text) , owner (text) , share_in_percent (number) , rating_in_percent (number) | broadcast : channel_id (number) , program_id (number) , time_of_day (text) | broadcast_share : channel_id (number) , program_id (number) , date (text) , share_in_percent (number)

program : name (text) , program_id (number) , program_id (number) | channel : name (text) , channel_id (number) | broadcast : program_id (number) , time_of_day (text) , channel_id (number) | broadcast_share : program_id (number) , channel_id (number)


Question: Which programs are never broadcasted in the morning? Give me the names of the programs.

program : program_id (number) , name (text) , origin (text) , launch (number) , owner (text) | channel : channel_id (number) , name (text) , owner (text) , share_in_percent (number) , rating_in_percent (number) | broadcast : channel_id (number) , program_id (number) , time_of_day (text) | broadcast_share : channel_id (number) , program_id (number) , date (text) , share_in_percent (number)

program : name (text) , program_id (number) , program_id (number) | channel : name (text) , channel_id (number) | broadcast : program_id (number) , time_of_day (text) , channel_id (number) | broadcast_share : program_id (number) , channel_id (number)


Question: find the program owners that have some programs in both morning and night time.

program : program_id (number) , name (text) , origin (text) , launch (number) , owner (text) | channel : channel_id (number) , name (text) , owner (text) , share_in_percent (number) , rating_in_percent (number) | broadcast : channel_id (number) , program_id (number) , time_of_day (text) | broadcast_share : channel_id (number) , program_id (number) , date (text) , share_in_percent (number)

program : owner (text) , program_id (number) , program_id (number) | channel : owner (text) , channel_id (number) | broadcast : program_id (number) , time_of_day (text) , channel_id (number) | broadcast_share : program_id (number) , channel_id (number)


Question: Who are the owners of the programs that broadcast both in the morning and at night?

program : program_id (number) , name (text) , origin (text) , launch (number) , owner (text) | channel : channel_id (number) , name (text) , owner (text) , share_in_percent (number) , rating_in_percent (number) | broadcast : channel_id (number) , program_id (number) , time_of_day (text) | broadcast_share : channel_id (number) , program_id (number) , date (text) , share_in_percent (number)

program : owner (text) , program_id (number) , program_id (number) | channel : owner (text) , channel_id (number) | broadcast : program_id (number) , time_of_day (text) , channel_id (number) | broadcast_share : program_id (number) , channel_id (number)


Question: List all program origins in the alphabetical order.

program : program_id (number) , name (text) , origin (text) , launch (number) , owner (text) | channel : channel_id (number) , name (text) , owner (text) , share_in_percent (number) , rating_in_percent (number) | broadcast : channel_id (number) , program_id (number) , time_of_day (text) | broadcast_share : channel_id (number) , program_id (number) , date (text) , share_in_percent (number)

program : origin (text) , program_id (number)


Question: What is the list of program origins ordered alphabetically?

program : program_id (number) , name (text) , origin (text) , launch (number) , owner (text) | channel : channel_id (number) , name (text) , owner (text) , share_in_percent (number) , rating_in_percent (number) | broadcast : channel_id (number) , program_id (number) , time_of_day (text) | broadcast_share : channel_id (number) , program_id (number) , date (text) , share_in_percent (number)

program : origin (text) , program_id (number)


Question: what is the number of different channel owners?

program : program_id (number) , name (text) , origin (text) , launch (number) , owner (text) | channel : channel_id (number) , name (text) , owner (text) , share_in_percent (number) , rating_in_percent (number) | broadcast : channel_id (number) , program_id (number) , time_of_day (text) | broadcast_share : channel_id (number) , program_id (number) , date (text) , share_in_percent (number)

program : owner (text) , program_id (number) | channel : owner (text) , channel_id (number)


Question: Count the number of distinct channel owners.

program : program_id (number) , name (text) , origin (text) , launch (number) , owner (text) | channel : channel_id (number) , name (text) , owner (text) , share_in_percent (number) , rating_in_percent (number) | broadcast : channel_id (number) , program_id (number) , time_of_day (text) | broadcast_share : channel_id (number) , program_id (number) , date (text) , share_in_percent (number)

program : owner (text) , program_id (number) | channel : owner (text) , channel_id (number)


Question: find the names of programs whose origin is not in Beijing.

program : program_id (number) , name (text) , origin (text) , launch (number) , owner (text) | channel : channel_id (number) , name (text) , owner (text) , share_in_percent (number) , rating_in_percent (number) | broadcast : channel_id (number) , program_id (number) , time_of_day (text) | broadcast_share : channel_id (number) , program_id (number) , date (text) , share_in_percent (number)

program : name (text) , origin (text) , program_id (number) | channel : name (text) , channel_id (number)


Question: Which programs' origins are not "Beijing"? Give me the program names.

program : program_id (number) , name (text) , origin (text) , launch (number) , owner (text) | channel : channel_id (number) , name (text) , owner (text) , share_in_percent (number) , rating_in_percent (number) | broadcast : channel_id (number) , program_id (number) , time_of_day (text) | broadcast_share : channel_id (number) , program_id (number) , date (text) , share_in_percent (number)

program : name (text) , origin (text) , program_id (number) | channel : name (text) , channel_id (number)


Question: What are the names of the channels owned by CCTV or HBS?

program : program_id (number) , name (text) , origin (text) , launch (number) , owner (text) | channel : channel_id (number) , name (text) , owner (text) , share_in_percent (number) , rating_in_percent (number) | broadcast : channel_id (number) , program_id (number) , time_of_day (text) | broadcast_share : channel_id (number) , program_id (number) , date (text) , share_in_percent (number)

program : name (text) , owner (text) , program_id (number) | channel : name (text) , owner (text) , channel_id (number)


Question: List the names of all the channels owned by either CCTV or HBS

program : program_id (number) , name (text) , origin (text) , launch (number) , owner (text) | channel : channel_id (number) , name (text) , owner (text) , share_in_percent (number) , rating_in_percent (number) | broadcast : channel_id (number) , program_id (number) , time_of_day (text) | broadcast_share : channel_id (number) , program_id (number) , date (text) , share_in_percent (number)

program : name (text) , owner (text) , program_id (number) | channel : name (text) , owner (text) , channel_id (number)


Question: Find the total rating ratio for each channel owner.

program : program_id (number) , name (text) , origin (text) , launch (number) , owner (text) | channel : channel_id (number) , name (text) , owner (text) , share_in_percent (number) , rating_in_percent (number) | broadcast : channel_id (number) , program_id (number) , time_of_day (text) | broadcast_share : channel_id (number) , program_id (number) , date (text) , share_in_percent (number)

channel : rating_in_percent (number) , owner (text) , channel_id (number) | program : owner (text) , program_id (number)


Question: What is the total rating of channel for each channel owner?

program : program_id (number) , name (text) , origin (text) , launch (number) , owner (text) | channel : channel_id (number) , name (text) , owner (text) , share_in_percent (number) , rating_in_percent (number) | broadcast : channel_id (number) , program_id (number) , time_of_day (text) | broadcast_share : channel_id (number) , program_id (number) , date (text) , share_in_percent (number)

channel : rating_in_percent (number) , owner (text) , channel_id (number) | program : owner (text) , program_id (number)


Question: Find the name of the program that is broadcast most frequently.

program : program_id (number) , name (text) , origin (text) , launch (number) , owner (text) | channel : channel_id (number) , name (text) , owner (text) , share_in_percent (number) , rating_in_percent (number) | broadcast : channel_id (number) , program_id (number) , time_of_day (text) | broadcast_share : channel_id (number) , program_id (number) , date (text) , share_in_percent (number)

program : name (text) , program_id (number) , program_id (number) | channel : name (text) , channel_id (number) | broadcast : program_id (number) , channel_id (number) | broadcast_share : program_id (number) , channel_id (number)


Question: Which program is broadcast most frequently? Give me the program name.

program : program_id (number) , name (text) , origin (text) , launch (number) , owner (text) | channel : channel_id (number) , name (text) , owner (text) , share_in_percent (number) , rating_in_percent (number) | broadcast : channel_id (number) , program_id (number) , time_of_day (text) | broadcast_share : channel_id (number) , program_id (number) , date (text) , share_in_percent (number)

program : name (text) , program_id (number) , program_id (number) | channel : name (text) , channel_id (number) | broadcast : program_id (number) , channel_id (number) | broadcast_share : program_id (number) , channel_id (number)


Question: How many courses are there in total?

course_authors_and_tutors : author_id (number) , author_tutor_atb (text) , login_name (text) , password (text) , personal_name (text) , middle_name (text) , family_name (text) , gender_mf (text) , address_line_1 (text) | students : student_id (number) , date_of_registration (time) , date_of_latest_logon (time) , login_name (text) , password (text) , personal_name (text) , middle_name (text) , family_name (text) | subjects : subject_id (number) , subject_name (text) | courses : course_id (number) , author_id (number) , subject_id (number) , course_name (text) , course_description (text) | student_course_enrolment : registration_id (number) , student_id (number) , course_id (number) , date_of_enrolment (time) , date_of_completion (time) | student_tests_taken : registration_id (number) , date_test_taken (time) , test_result (text)


Question: Find the total number of courses offered.

course_authors_and_tutors : author_id (number) , author_tutor_atb (text) , login_name (text) , password (text) , personal_name (text) , middle_name (text) , family_name (text) , gender_mf (text) , address_line_1 (text) | students : student_id (number) , date_of_registration (time) , date_of_latest_logon (time) , login_name (text) , password (text) , personal_name (text) , middle_name (text) , family_name (text) | subjects : subject_id (number) , subject_name (text) | courses : course_id (number) , author_id (number) , subject_id (number) , course_name (text) , course_description (text) | student_course_enrolment : registration_id (number) , student_id (number) , course_id (number) , date_of_enrolment (time) , date_of_completion (time) | student_tests_taken : registration_id (number) , date_test_taken (time) , test_result (text)


Question: What are the descriptions of the courses with name "database"?

course_authors_and_tutors : author_id (number) , author_tutor_atb (text) , login_name (text) , password (text) , personal_name (text) , middle_name (text) , family_name (text) , gender_mf (text) , address_line_1 (text) | students : student_id (number) , date_of_registration (time) , date_of_latest_logon (time) , login_name (text) , password (text) , personal_name (text) , middle_name (text) , family_name (text) | subjects : subject_id (number) , subject_name (text) | courses : course_id (number) , author_id (number) , subject_id (number) , course_name (text) , course_description (text) | student_course_enrolment : registration_id (number) , student_id (number) , course_id (number) , date_of_enrolment (time) , date_of_completion (time) | student_tests_taken : registration_id (number) , date_test_taken (time) , test_result (text)

courses : course_description (text) , course_name (text) , course_id (number)


Question: Return the description for the courses named "database".

course_authors_and_tutors : author_id (number) , author_tutor_atb (text) , login_name (text) , password (text) , personal_name (text) , middle_name (text) , family_name (text) , gender_mf (text) , address_line_1 (text) | students : student_id (number) , date_of_registration (time) , date_of_latest_logon (time) , login_name (text) , password (text) , personal_name (text) , middle_name (text) , family_name (text) | subjects : subject_id (number) , subject_name (text) | courses : course_id (number) , author_id (number) , subject_id (number) , course_name (text) , course_description (text) | student_course_enrolment : registration_id (number) , student_id (number) , course_id (number) , date_of_enrolment (time) , date_of_completion (time) | student_tests_taken : registration_id (number) , date_test_taken (time) , test_result (text)

courses : course_description (text) , course_name (text) , course_id (number)


Question: What are the addresses of the course authors or tutors with personal name "Cathrine"

course_authors_and_tutors : author_id (number) , author_tutor_atb (text) , login_name (text) , password (text) , personal_name (text) , middle_name (text) , family_name (text) , gender_mf (text) , address_line_1 (text) | students : student_id (number) , date_of_registration (time) , date_of_latest_logon (time) , login_name (text) , password (text) , personal_name (text) , middle_name (text) , family_name (text) | subjects : subject_id (number) , subject_name (text) | courses : course_id (number) , author_id (number) , subject_id (number) , course_name (text) , course_description (text) | student_course_enrolment : registration_id (number) , student_id (number) , course_id (number) , date_of_enrolment (time) , date_of_completion (time) | student_tests_taken : registration_id (number) , date_test_taken (time) , test_result (text)

course_authors_and_tutors : address_line_1 (text) , personal_name (text) , author_id (number) | students : personal_name (text) , student_id (number)


Question: Return the addresses of the course authors or tutors whose personal name is "Cathrine".

course_authors_and_tutors : author_id (number) , author_tutor_atb (text) , login_name (text) , password (text) , personal_name (text) , middle_name (text) , family_name (text) , gender_mf (text) , address_line_1 (text) | students : student_id (number) , date_of_registration (time) , date_of_latest_logon (time) , login_name (text) , password (text) , personal_name (text) , middle_name (text) , family_name (text) | subjects : subject_id (number) , subject_name (text) | courses : course_id (number) , author_id (number) , subject_id (number) , course_name (text) , course_description (text) | student_course_enrolment : registration_id (number) , student_id (number) , course_id (number) , date_of_enrolment (time) , date_of_completion (time) | student_tests_taken : registration_id (number) , date_test_taken (time) , test_result (text)

course_authors_and_tutors : address_line_1 (text) , personal_name (text) , author_id (number) | students : personal_name (text) , student_id (number)


Question: List the addresses of all the course authors or tutors.

course_authors_and_tutors : author_id (number) , author_tutor_atb (text) , login_name (text) , password (text) , personal_name (text) , middle_name (text) , family_name (text) , gender_mf (text) , address_line_1 (text) | students : student_id (number) , date_of_registration (time) , date_of_latest_logon (time) , login_name (text) , password (text) , personal_name (text) , middle_name (text) , family_name (text) | subjects : subject_id (number) , subject_name (text) | courses : course_id (number) , author_id (number) , subject_id (number) , course_name (text) , course_description (text) | student_course_enrolment : registration_id (number) , student_id (number) , course_id (number) , date_of_enrolment (time) , date_of_completion (time) | student_tests_taken : registration_id (number) , date_test_taken (time) , test_result (text)

course_authors_and_tutors : address_line_1 (text) , author_id (number)


Question: What is the address of each course author or tutor?

course_authors_and_tutors : author_id (number) , author_tutor_atb (text) , login_name (text) , password (text) , personal_name (text) , middle_name (text) , family_name (text) , gender_mf (text) , address_line_1 (text) | students : student_id (number) , date_of_registration (time) , date_of_latest_logon (time) , login_name (text) , password (text) , personal_name (text) , middle_name (text) , family_name (text) | subjects : subject_id (number) , subject_name (text) | courses : course_id (number) , author_id (number) , subject_id (number) , course_name (text) , course_description (text) | student_course_enrolment : registration_id (number) , student_id (number) , course_id (number) , date_of_enrolment (time) , date_of_completion (time) | student_tests_taken : registration_id (number) , date_test_taken (time) , test_result (text)

course_authors_and_tutors : address_line_1 (text) , author_id (number)


Question: List all the login names and family names of course author and tutors.

course_authors_and_tutors : author_id (number) , author_tutor_atb (text) , login_name (text) , password (text) , personal_name (text) , middle_name (text) , family_name (text) , gender_mf (text) , address_line_1 (text) | students : student_id (number) , date_of_registration (time) , date_of_latest_logon (time) , login_name (text) , password (text) , personal_name (text) , middle_name (text) , family_name (text) | subjects : subject_id (number) , subject_name (text) | courses : course_id (number) , author_id (number) , subject_id (number) , course_name (text) , course_description (text) | student_course_enrolment : registration_id (number) , student_id (number) , course_id (number) , date_of_enrolment (time) , date_of_completion (time) | student_tests_taken : registration_id (number) , date_test_taken (time) , test_result (text)

course_authors_and_tutors : login_name (text) , family_name (text) , author_id (number) | students : login_name (text) , family_name (text) , student_id (number)


Question: What are the login names and family names of course author and tutors?

course_authors_and_tutors : author_id (number) , author_tutor_atb (text) , login_name (text) , password (text) , personal_name (text) , middle_name (text) , family_name (text) , gender_mf (text) , address_line_1 (text) | students : student_id (number) , date_of_registration (time) , date_of_latest_logon (time) , login_name (text) , password (text) , personal_name (text) , middle_name (text) , family_name (text) | subjects : subject_id (number) , subject_name (text) | courses : course_id (number) , author_id (number) , subject_id (number) , course_name (text) , course_description (text) | student_course_enrolment : registration_id (number) , student_id (number) , course_id (number) , date_of_enrolment (time) , date_of_completion (time) | student_tests_taken : registration_id (number) , date_test_taken (time) , test_result (text)

course_authors_and_tutors : login_name (text) , family_name (text) , author_id (number) | students : login_name (text) , family_name (text) , student_id (number)


Question: List all the dates of enrollment and completion of students.

course_authors_and_tutors : author_id (number) , author_tutor_atb (text) , login_name (text) , password (text) , personal_name (text) , middle_name (text) , family_name (text) , gender_mf (text) , address_line_1 (text) | students : student_id (number) , date_of_registration (time) , date_of_latest_logon (time) , login_name (text) , password (text) , personal_name (text) , middle_name (text) , family_name (text) | subjects : subject_id (number) , subject_name (text) | courses : course_id (number) , author_id (number) , subject_id (number) , course_name (text) , course_description (text) | student_course_enrolment : registration_id (number) , student_id (number) , course_id (number) , date_of_enrolment (time) , date_of_completion (time) | student_tests_taken : registration_id (number) , date_test_taken (time) , test_result (text)

student_course_enrolment : date_of_enrolment (time) , date_of_completion (time) , registration_id (number)


Question: What are all the dates of enrollment and completion in record?

course_authors_and_tutors : author_id (number) , author_tutor_atb (text) , login_name (text) , password (text) , personal_name (text) , middle_name (text) , family_name (text) , gender_mf (text) , address_line_1 (text) | students : student_id (number) , date_of_registration (time) , date_of_latest_logon (time) , login_name (text) , password (text) , personal_name (text) , middle_name (text) , family_name (text) | subjects : subject_id (number) , subject_name (text) | courses : course_id (number) , author_id (number) , subject_id (number) , course_name (text) , course_description (text) | student_course_enrolment : registration_id (number) , student_id (number) , course_id (number) , date_of_enrolment (time) , date_of_completion (time) | student_tests_taken : registration_id (number) , date_test_taken (time) , test_result (text)

student_course_enrolment : date_of_enrolment (time) , date_of_completion (time) , registration_id (number)


Question: How many distinct students are enrolled in courses?

course_authors_and_tutors : author_id (number) , author_tutor_atb (text) , login_name (text) , password (text) , personal_name (text) , middle_name (text) , family_name (text) , gender_mf (text) , address_line_1 (text) | students : student_id (number) , date_of_registration (time) , date_of_latest_logon (time) , login_name (text) , password (text) , personal_name (text) , middle_name (text) , family_name (text) | subjects : subject_id (number) , subject_name (text) | courses : course_id (number) , author_id (number) , subject_id (number) , course_name (text) , course_description (text) | student_course_enrolment : registration_id (number) , student_id (number) , course_id (number) , date_of_enrolment (time) , date_of_completion (time) | student_tests_taken : registration_id (number) , date_test_taken (time) , test_result (text)

students : student_id (number) , student_id (number) | student_course_enrolment : student_id (number) , registration_id (number)