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

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

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


Question: List the name, IHSAA Football Class, and Mascot of the schools that have more than 6000 of budgeted amount or were founded before 2003, in the order of percent of total invested budget and total budgeted budget.

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

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


Question: How many buildings are there?

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


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

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

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


Question: What is the name of the tallest building?

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

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


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

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

building : floors (number) , building_id (text)


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

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

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


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

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

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


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

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

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


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

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

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


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

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

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


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

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

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


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

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

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


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

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

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


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

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

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


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

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

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


Question: Show all the distinct institution types.

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

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


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

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

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


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

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

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


Question: Show the protein name and the institution name.

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

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


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

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

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


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

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

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


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

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

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


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

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

cinema : location (text) , openning_year (number) , cinema_id (number)


Question: How many cinema do we have?

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


Question: Count the number of cinemas.

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


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

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

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


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

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

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


Question: What are all the locations with a cinema?

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

cinema : location (text) , cinema_id (number)


Question: Find the distinct locations that has a cinema.

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

cinema : location (text) , cinema_id (number)


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

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

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


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

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

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


Question: Show the average, minimum, and maximum capacity for all the cinemas opened in year 2011 or later.

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

cinema : capacity (number) , openning_year (number) , cinema_id (number)


Question: Show each location and the number of cinemas there.

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

cinema : location (text) , cinema_id (number)


Question: What is the location with the most cinemas opened in year 2010 or later?

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

cinema : location (text) , openning_year (number) , cinema_id (number)


Question: Show all the locations with at least two cinemas with capacity above 300.

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

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


Question: Which locations have 2 or more cinemas with capacity over 300?

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

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


Question: Show the title and director for all films.

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

film : title (text) , directed_by (text) , film_id (number)


Question: What are the title and director of each film?

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

film : title (text) , directed_by (text) , film_id (number)


Question: Show all directors.

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

film : directed_by (text) , film_id (number)


Question: Who are all the directors?

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

film : directed_by (text) , film_id (number)


Question: List all directors along with the number of films directed by each director.

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

film : directed_by (text) , film_id (number)


Question: What is total number of show times per dat for each cinema?

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

cinema : name (text) , cinema_id (number) | schedule : show_times_per_day (number) , cinema_id (number)


Question: What are the title and maximum price of each film?

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

film : title (text) , film_id (number) | schedule : price (number) , film_id (number) , cinema_id (number)


Question: Give me the title and highest price for each film.

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

film : title (text) , film_id (number) | schedule : price (number) , film_id (number) , cinema_id (number)


Question: Show cinema name, film title, date, and price for each record in schedule.

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

cinema : name (text) , cinema_id (number) | film : title (text) , film_id (number) | schedule : date (text) , price (number) , film_id (number) , cinema_id (number)


Question: What are the title and director of the films without any schedule?

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

film : title (text) , directed_by (text) , film_id (number) | schedule : film_id (number) , cinema_id (number)


Question: Show director with the largest number of show times in total.

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

film : directed_by (text) , film_id (number) | schedule : film_id (number) , show_times_per_day (number) , cinema_id (number)


Question: Find the locations that have more than one movie theater with capacity above 300.

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

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


Question: In which locations are there more than one movie theater with capacity above 300?

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

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


Question: How many films have the word 'Dummy' in their titles?

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


Question: Count the number of films whose title contains the word 'Dummy'.

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


Question: Are the customers holding coupons with amount 500 bad or good?

discount_coupons : coupon_id (number) , date_issued (time) , coupon_amount (number) | customers : customer_id (number) , coupon_id (number) , good_or_bad_customer (text) , first_name (text) , last_name (text) , gender_mf (text) , date_became_customer (time) , date_last_hire (time) | bookings : booking_id (number) , customer_id (number) , booking_status_code (text) , returned_damaged_yn (text) , booking_start_date (time) , booking_end_date (time) , count_hired (text) , amount_payable (number) , amount_of_discount (number) , amount_outstanding (number) , amount_of_refund (number) | products_for_hire : product_id (number) , product_type_code (text) , daily_hire_cost (number) , product_name (text) , product_description (text) | payments : payment_id (number) , booking_id (number) , customer_id (number) , payment_type_code (text) , amount_paid_in_full_yn (text) , payment_date (time) , amount_due (number) , amount_paid (number) | products_booked : booking_id (number) , product_id (number) , returned_yn (text) , returned_late_yn (text) , booked_count (number) , booked_amount (number) | view_product_availability : product_id (number) , booking_id (number) , status_date (time) , available_yn (text)

customers : good_or_bad_customer (text) , coupon_id (number) , customer_id (number) | discount_coupons : coupon_id (number) , coupon_amount (number)


Question: How many bookings did each customer make? List the customer id, first name, and the count.

discount_coupons : coupon_id (number) , date_issued (time) , coupon_amount (number) | customers : customer_id (number) , coupon_id (number) , good_or_bad_customer (text) , first_name (text) , last_name (text) , gender_mf (text) , date_became_customer (time) , date_last_hire (time) | bookings : booking_id (number) , customer_id (number) , booking_status_code (text) , returned_damaged_yn (text) , booking_start_date (time) , booking_end_date (time) , count_hired (text) , amount_payable (number) , amount_of_discount (number) , amount_outstanding (number) , amount_of_refund (number) | products_for_hire : product_id (number) , product_type_code (text) , daily_hire_cost (number) , product_name (text) , product_description (text) | payments : payment_id (number) , booking_id (number) , customer_id (number) , payment_type_code (text) , amount_paid_in_full_yn (text) , payment_date (time) , amount_due (number) , amount_paid (number) | products_booked : booking_id (number) , product_id (number) , returned_yn (text) , returned_late_yn (text) , booked_count (number) , booked_amount (number) | view_product_availability : product_id (number) , booking_id (number) , status_date (time) , available_yn (text)

customers : customer_id (number) , first_name (text) | bookings : customer_id (number) , booking_id (number)


Question: What is the maximum total amount paid by a customer? List the customer id and amount.

discount_coupons : coupon_id (number) , date_issued (time) , coupon_amount (number) | customers : customer_id (number) , coupon_id (number) , good_or_bad_customer (text) , first_name (text) , last_name (text) , gender_mf (text) , date_became_customer (time) , date_last_hire (time) | bookings : booking_id (number) , customer_id (number) , booking_status_code (text) , returned_damaged_yn (text) , booking_start_date (time) , booking_end_date (time) , count_hired (text) , amount_payable (number) , amount_of_discount (number) , amount_outstanding (number) , amount_of_refund (number) | products_for_hire : product_id (number) , product_type_code (text) , daily_hire_cost (number) , product_name (text) , product_description (text) | payments : payment_id (number) , booking_id (number) , customer_id (number) , payment_type_code (text) , amount_paid_in_full_yn (text) , payment_date (time) , amount_due (number) , amount_paid (number) | products_booked : booking_id (number) , product_id (number) , returned_yn (text) , returned_late_yn (text) , booked_count (number) , booked_amount (number) | view_product_availability : product_id (number) , booking_id (number) , status_date (time) , available_yn (text)

payments : customer_id (number) , amount_paid (number) , payment_id (number)


Question: What are the id and the amount of refund of the booking that incurred the most times of payments?

discount_coupons : coupon_id (number) , date_issued (time) , coupon_amount (number) | customers : customer_id (number) , coupon_id (number) , good_or_bad_customer (text) , first_name (text) , last_name (text) , gender_mf (text) , date_became_customer (time) , date_last_hire (time) | bookings : booking_id (number) , customer_id (number) , booking_status_code (text) , returned_damaged_yn (text) , booking_start_date (time) , booking_end_date (time) , count_hired (text) , amount_payable (number) , amount_of_discount (number) , amount_outstanding (number) , amount_of_refund (number) | products_for_hire : product_id (number) , product_type_code (text) , daily_hire_cost (number) , product_name (text) , product_description (text) | payments : payment_id (number) , booking_id (number) , customer_id (number) , payment_type_code (text) , amount_paid_in_full_yn (text) , payment_date (time) , amount_due (number) , amount_paid (number) | products_booked : booking_id (number) , product_id (number) , returned_yn (text) , returned_late_yn (text) , booked_count (number) , booked_amount (number) | view_product_availability : product_id (number) , booking_id (number) , status_date (time) , available_yn (text)

bookings : booking_id (number) , amount_of_refund (number) | payments : booking_id (number) , payment_id (number)


Question: What is the id of the product that is booked for 3 times?

discount_coupons : coupon_id (number) , date_issued (time) , coupon_amount (number) | customers : customer_id (number) , coupon_id (number) , good_or_bad_customer (text) , first_name (text) , last_name (text) , gender_mf (text) , date_became_customer (time) , date_last_hire (time) | bookings : booking_id (number) , customer_id (number) , booking_status_code (text) , returned_damaged_yn (text) , booking_start_date (time) , booking_end_date (time) , count_hired (text) , amount_payable (number) , amount_of_discount (number) , amount_outstanding (number) , amount_of_refund (number) | products_for_hire : product_id (number) , product_type_code (text) , daily_hire_cost (number) , product_name (text) , product_description (text) | payments : payment_id (number) , booking_id (number) , customer_id (number) , payment_type_code (text) , amount_paid_in_full_yn (text) , payment_date (time) , amount_due (number) , amount_paid (number) | products_booked : booking_id (number) , product_id (number) , returned_yn (text) , returned_late_yn (text) , booked_count (number) , booked_amount (number) | view_product_availability : product_id (number) , booking_id (number) , status_date (time) , available_yn (text)

products_booked : product_id (number) , booking_id (number)


Question: What is the product description of the product booked with an amount of 102.76?

discount_coupons : coupon_id (number) , date_issued (time) , coupon_amount (number) | customers : customer_id (number) , coupon_id (number) , good_or_bad_customer (text) , first_name (text) , last_name (text) , gender_mf (text) , date_became_customer (time) , date_last_hire (time) | bookings : booking_id (number) , customer_id (number) , booking_status_code (text) , returned_damaged_yn (text) , booking_start_date (time) , booking_end_date (time) , count_hired (text) , amount_payable (number) , amount_of_discount (number) , amount_outstanding (number) , amount_of_refund (number) | products_for_hire : product_id (number) , product_type_code (text) , daily_hire_cost (number) , product_name (text) , product_description (text) | payments : payment_id (number) , booking_id (number) , customer_id (number) , payment_type_code (text) , amount_paid_in_full_yn (text) , payment_date (time) , amount_due (number) , amount_paid (number) | products_booked : booking_id (number) , product_id (number) , returned_yn (text) , returned_late_yn (text) , booked_count (number) , booked_amount (number) | view_product_availability : product_id (number) , booking_id (number) , status_date (time) , available_yn (text)

products_for_hire : product_description (text) , product_id (number) | products_booked : product_id (number) , booked_amount (number) , booking_id (number)


Question: What are the start date and end date of the booking that has booked the product named 'Book collection A'?

discount_coupons : coupon_id (number) , date_issued (time) , coupon_amount (number) | customers : customer_id (number) , coupon_id (number) , good_or_bad_customer (text) , first_name (text) , last_name (text) , gender_mf (text) , date_became_customer (time) , date_last_hire (time) | bookings : booking_id (number) , customer_id (number) , booking_status_code (text) , returned_damaged_yn (text) , booking_start_date (time) , booking_end_date (time) , count_hired (text) , amount_payable (number) , amount_of_discount (number) , amount_outstanding (number) , amount_of_refund (number) | products_for_hire : product_id (number) , product_type_code (text) , daily_hire_cost (number) , product_name (text) , product_description (text) | payments : payment_id (number) , booking_id (number) , customer_id (number) , payment_type_code (text) , amount_paid_in_full_yn (text) , payment_date (time) , amount_due (number) , amount_paid (number) | products_booked : booking_id (number) , product_id (number) , returned_yn (text) , returned_late_yn (text) , booked_count (number) , booked_amount (number) | view_product_availability : product_id (number) , booking_id (number) , status_date (time) , available_yn (text)

bookings : booking_start_date (time) , booking_end_date (time) , booking_id (number) | products_for_hire : product_id (number) , product_name (text) | products_booked : product_id (number) , booking_id (number)


Question: What are the names of products whose availability equals to 1?

discount_coupons : coupon_id (number) , date_issued (time) , coupon_amount (number) | customers : customer_id (number) , coupon_id (number) , good_or_bad_customer (text) , first_name (text) , last_name (text) , gender_mf (text) , date_became_customer (time) , date_last_hire (time) | bookings : booking_id (number) , customer_id (number) , booking_status_code (text) , returned_damaged_yn (text) , booking_start_date (time) , booking_end_date (time) , count_hired (text) , amount_payable (number) , amount_of_discount (number) , amount_outstanding (number) , amount_of_refund (number) | products_for_hire : product_id (number) , product_type_code (text) , daily_hire_cost (number) , product_name (text) , product_description (text) | payments : payment_id (number) , booking_id (number) , customer_id (number) , payment_type_code (text) , amount_paid_in_full_yn (text) , payment_date (time) , amount_due (number) , amount_paid (number) | products_booked : booking_id (number) , product_id (number) , returned_yn (text) , returned_late_yn (text) , booked_count (number) , booked_amount (number) | view_product_availability : product_id (number) , booking_id (number) , status_date (time) , available_yn (text)

products_for_hire : product_name (text) , product_id (number) | view_product_availability : product_id (number) , available_yn (text) , status_date (time)


Question: How many different product types are there?

discount_coupons : coupon_id (number) , date_issued (time) , coupon_amount (number) | customers : customer_id (number) , coupon_id (number) , good_or_bad_customer (text) , first_name (text) , last_name (text) , gender_mf (text) , date_became_customer (time) , date_last_hire (time) | bookings : booking_id (number) , customer_id (number) , booking_status_code (text) , returned_damaged_yn (text) , booking_start_date (time) , booking_end_date (time) , count_hired (text) , amount_payable (number) , amount_of_discount (number) , amount_outstanding (number) , amount_of_refund (number) | products_for_hire : product_id (number) , product_type_code (text) , daily_hire_cost (number) , product_name (text) , product_description (text) | payments : payment_id (number) , booking_id (number) , customer_id (number) , payment_type_code (text) , amount_paid_in_full_yn (text) , payment_date (time) , amount_due (number) , amount_paid (number) | products_booked : booking_id (number) , product_id (number) , returned_yn (text) , returned_late_yn (text) , booked_count (number) , booked_amount (number) | view_product_availability : product_id (number) , booking_id (number) , status_date (time) , available_yn (text)

products_for_hire : product_type_code (text) , product_id (number)


Question: What are the first name, last name, and gender of all the good customers? Order by their last name.

discount_coupons : coupon_id (number) , date_issued (time) , coupon_amount (number) | customers : customer_id (number) , coupon_id (number) , good_or_bad_customer (text) , first_name (text) , last_name (text) , gender_mf (text) , date_became_customer (time) , date_last_hire (time) | bookings : booking_id (number) , customer_id (number) , booking_status_code (text) , returned_damaged_yn (text) , booking_start_date (time) , booking_end_date (time) , count_hired (text) , amount_payable (number) , amount_of_discount (number) , amount_outstanding (number) , amount_of_refund (number) | products_for_hire : product_id (number) , product_type_code (text) , daily_hire_cost (number) , product_name (text) , product_description (text) | payments : payment_id (number) , booking_id (number) , customer_id (number) , payment_type_code (text) , amount_paid_in_full_yn (text) , payment_date (time) , amount_due (number) , amount_paid (number) | products_booked : booking_id (number) , product_id (number) , returned_yn (text) , returned_late_yn (text) , booked_count (number) , booked_amount (number) | view_product_availability : product_id (number) , booking_id (number) , status_date (time) , available_yn (text)

customers : first_name (text) , last_name (text) , gender_mf (text) , good_or_bad_customer (text) , customer_id (number)


Question: What is the average amount due for all the payments?

discount_coupons : coupon_id (number) , date_issued (time) , coupon_amount (number) | customers : customer_id (number) , coupon_id (number) , good_or_bad_customer (text) , first_name (text) , last_name (text) , gender_mf (text) , date_became_customer (time) , date_last_hire (time) | bookings : booking_id (number) , customer_id (number) , booking_status_code (text) , returned_damaged_yn (text) , booking_start_date (time) , booking_end_date (time) , count_hired (text) , amount_payable (number) , amount_of_discount (number) , amount_outstanding (number) , amount_of_refund (number) | products_for_hire : product_id (number) , product_type_code (text) , daily_hire_cost (number) , product_name (text) , product_description (text) | payments : payment_id (number) , booking_id (number) , customer_id (number) , payment_type_code (text) , amount_paid_in_full_yn (text) , payment_date (time) , amount_due (number) , amount_paid (number) | products_booked : booking_id (number) , product_id (number) , returned_yn (text) , returned_late_yn (text) , booked_count (number) , booked_amount (number) | view_product_availability : product_id (number) , booking_id (number) , status_date (time) , available_yn (text)

payments : amount_due (number) , payment_id (number)


Question: What are the maximum, minimum, and average booked count for the products booked?

discount_coupons : coupon_id (number) , date_issued (time) , coupon_amount (number) | customers : customer_id (number) , coupon_id (number) , good_or_bad_customer (text) , first_name (text) , last_name (text) , gender_mf (text) , date_became_customer (time) , date_last_hire (time) | bookings : booking_id (number) , customer_id (number) , booking_status_code (text) , returned_damaged_yn (text) , booking_start_date (time) , booking_end_date (time) , count_hired (text) , amount_payable (number) , amount_of_discount (number) , amount_outstanding (number) , amount_of_refund (number) | products_for_hire : product_id (number) , product_type_code (text) , daily_hire_cost (number) , product_name (text) , product_description (text) | payments : payment_id (number) , booking_id (number) , customer_id (number) , payment_type_code (text) , amount_paid_in_full_yn (text) , payment_date (time) , amount_due (number) , amount_paid (number) | products_booked : booking_id (number) , product_id (number) , returned_yn (text) , returned_late_yn (text) , booked_count (number) , booked_amount (number) | view_product_availability : product_id (number) , booking_id (number) , status_date (time) , available_yn (text)

products_booked : booked_count (number) , booking_id (number)


Question: What are all the distinct payment types?

discount_coupons : coupon_id (number) , date_issued (time) , coupon_amount (number) | customers : customer_id (number) , coupon_id (number) , good_or_bad_customer (text) , first_name (text) , last_name (text) , gender_mf (text) , date_became_customer (time) , date_last_hire (time) | bookings : booking_id (number) , customer_id (number) , booking_status_code (text) , returned_damaged_yn (text) , booking_start_date (time) , booking_end_date (time) , count_hired (text) , amount_payable (number) , amount_of_discount (number) , amount_outstanding (number) , amount_of_refund (number) | products_for_hire : product_id (number) , product_type_code (text) , daily_hire_cost (number) , product_name (text) , product_description (text) | payments : payment_id (number) , booking_id (number) , customer_id (number) , payment_type_code (text) , amount_paid_in_full_yn (text) , payment_date (time) , amount_due (number) , amount_paid (number) | products_booked : booking_id (number) , product_id (number) , returned_yn (text) , returned_late_yn (text) , booked_count (number) , booked_amount (number) | view_product_availability : product_id (number) , booking_id (number) , status_date (time) , available_yn (text)

payments : payment_type_code (text) , payment_id (number)


Question: What are the daily hire costs for the products with substring 'Book' in its name?

discount_coupons : coupon_id (number) , date_issued (time) , coupon_amount (number) | customers : customer_id (number) , coupon_id (number) , good_or_bad_customer (text) , first_name (text) , last_name (text) , gender_mf (text) , date_became_customer (time) , date_last_hire (time) | bookings : booking_id (number) , customer_id (number) , booking_status_code (text) , returned_damaged_yn (text) , booking_start_date (time) , booking_end_date (time) , count_hired (text) , amount_payable (number) , amount_of_discount (number) , amount_outstanding (number) , amount_of_refund (number) | products_for_hire : product_id (number) , product_type_code (text) , daily_hire_cost (number) , product_name (text) , product_description (text) | payments : payment_id (number) , booking_id (number) , customer_id (number) , payment_type_code (text) , amount_paid_in_full_yn (text) , payment_date (time) , amount_due (number) , amount_paid (number) | products_booked : booking_id (number) , product_id (number) , returned_yn (text) , returned_late_yn (text) , booked_count (number) , booked_amount (number) | view_product_availability : product_id (number) , booking_id (number) , status_date (time) , available_yn (text)

products_for_hire : daily_hire_cost (number) , product_name (text) , product_id (number)


Question: How many products are never booked with amount higher than 200?

discount_coupons : coupon_id (number) , date_issued (time) , coupon_amount (number) | customers : customer_id (number) , coupon_id (number) , good_or_bad_customer (text) , first_name (text) , last_name (text) , gender_mf (text) , date_became_customer (time) , date_last_hire (time) | bookings : booking_id (number) , customer_id (number) , booking_status_code (text) , returned_damaged_yn (text) , booking_start_date (time) , booking_end_date (time) , count_hired (text) , amount_payable (number) , amount_of_discount (number) , amount_outstanding (number) , amount_of_refund (number) | products_for_hire : product_id (number) , product_type_code (text) , daily_hire_cost (number) , product_name (text) , product_description (text) | payments : payment_id (number) , booking_id (number) , customer_id (number) , payment_type_code (text) , amount_paid_in_full_yn (text) , payment_date (time) , amount_due (number) , amount_paid (number) | products_booked : booking_id (number) , product_id (number) , returned_yn (text) , returned_late_yn (text) , booked_count (number) , booked_amount (number) | view_product_availability : product_id (number) , booking_id (number) , status_date (time) , available_yn (text)

products_for_hire : product_id (number) | products_booked : product_id (number) , booked_amount (number) , booking_id (number)


Question: What are the coupon amount of the coupons owned by both good and bad customers?

discount_coupons : coupon_id (number) , date_issued (time) , coupon_amount (number) | customers : customer_id (number) , coupon_id (number) , good_or_bad_customer (text) , first_name (text) , last_name (text) , gender_mf (text) , date_became_customer (time) , date_last_hire (time) | bookings : booking_id (number) , customer_id (number) , booking_status_code (text) , returned_damaged_yn (text) , booking_start_date (time) , booking_end_date (time) , count_hired (text) , amount_payable (number) , amount_of_discount (number) , amount_outstanding (number) , amount_of_refund (number) | products_for_hire : product_id (number) , product_type_code (text) , daily_hire_cost (number) , product_name (text) , product_description (text) | payments : payment_id (number) , booking_id (number) , customer_id (number) , payment_type_code (text) , amount_paid_in_full_yn (text) , payment_date (time) , amount_due (number) , amount_paid (number) | products_booked : booking_id (number) , product_id (number) , returned_yn (text) , returned_late_yn (text) , booked_count (number) , booked_amount (number) | view_product_availability : product_id (number) , booking_id (number) , status_date (time) , available_yn (text)

discount_coupons : coupon_amount (number) , coupon_id (number) | customers : coupon_id (number) , good_or_bad_customer (text) , customer_id (number)


Question: What are the payment date of the payment with amount paid higher than 300 or with payment type is 'Check'

discount_coupons : coupon_id (number) , date_issued (time) , coupon_amount (number) | customers : customer_id (number) , coupon_id (number) , good_or_bad_customer (text) , first_name (text) , last_name (text) , gender_mf (text) , date_became_customer (time) , date_last_hire (time) | bookings : booking_id (number) , customer_id (number) , booking_status_code (text) , returned_damaged_yn (text) , booking_start_date (time) , booking_end_date (time) , count_hired (text) , amount_payable (number) , amount_of_discount (number) , amount_outstanding (number) , amount_of_refund (number) | products_for_hire : product_id (number) , product_type_code (text) , daily_hire_cost (number) , product_name (text) , product_description (text) | payments : payment_id (number) , booking_id (number) , customer_id (number) , payment_type_code (text) , amount_paid_in_full_yn (text) , payment_date (time) , amount_due (number) , amount_paid (number) | products_booked : booking_id (number) , product_id (number) , returned_yn (text) , returned_late_yn (text) , booked_count (number) , booked_amount (number) | view_product_availability : product_id (number) , booking_id (number) , status_date (time) , available_yn (text)

payments : payment_date (time) , amount_paid (number) , payment_type_code (text) , payment_id (number)


Question: What are the names and descriptions of the products that are of 'Cutlery' type and have daily hire cost lower than 20?

discount_coupons : coupon_id (number) , date_issued (time) , coupon_amount (number) | customers : customer_id (number) , coupon_id (number) , good_or_bad_customer (text) , first_name (text) , last_name (text) , gender_mf (text) , date_became_customer (time) , date_last_hire (time) | bookings : booking_id (number) , customer_id (number) , booking_status_code (text) , returned_damaged_yn (text) , booking_start_date (time) , booking_end_date (time) , count_hired (text) , amount_payable (number) , amount_of_discount (number) , amount_outstanding (number) , amount_of_refund (number) | products_for_hire : product_id (number) , product_type_code (text) , daily_hire_cost (number) , product_name (text) , product_description (text) | payments : payment_id (number) , booking_id (number) , customer_id (number) , payment_type_code (text) , amount_paid_in_full_yn (text) , payment_date (time) , amount_due (number) , amount_paid (number) | products_booked : booking_id (number) , product_id (number) , returned_yn (text) , returned_late_yn (text) , booked_count (number) , booked_amount (number) | view_product_availability : product_id (number) , booking_id (number) , status_date (time) , available_yn (text)

products_for_hire : product_name (text) , product_description (text) , product_type_code (text) , daily_hire_cost (number) , product_id (number)


Question: How many phones are there?

phone : name (text) , phone_id (number) , memory_in_g (number) , carrier (text) , price (number) | market : market_id (number) , district (text) , num_of_employees (number) , num_of_shops (number) , ranking (number) | phone_market : market_id (number) , phone_id (text) , num_of_stock (number)


Question: List the names of phones in ascending order of price.

phone : name (text) , phone_id (number) , memory_in_g (number) , carrier (text) , price (number) | market : market_id (number) , district (text) , num_of_employees (number) , num_of_shops (number) , ranking (number) | phone_market : market_id (number) , phone_id (text) , num_of_stock (number)

phone : name (text) , price (number) , phone_id (number)


Question: What are the memories and carriers of phones?

phone : name (text) , phone_id (number) , memory_in_g (number) , carrier (text) , price (number) | market : market_id (number) , district (text) , num_of_employees (number) , num_of_shops (number) , ranking (number) | phone_market : market_id (number) , phone_id (text) , num_of_stock (number)

phone : memory_in_g (number) , carrier (text) , phone_id (number)


Question: List the distinct carriers of phones with memories bigger than 32.

phone : name (text) , phone_id (number) , memory_in_g (number) , carrier (text) , price (number) | market : market_id (number) , district (text) , num_of_employees (number) , num_of_shops (number) , ranking (number) | phone_market : market_id (number) , phone_id (text) , num_of_stock (number)

phone : carrier (text) , memory_in_g (number) , phone_id (number)


Question: Show the names of phones with carrier either "Sprint" or "TMobile".

phone : name (text) , phone_id (number) , memory_in_g (number) , carrier (text) , price (number) | market : market_id (number) , district (text) , num_of_employees (number) , num_of_shops (number) , ranking (number) | phone_market : market_id (number) , phone_id (text) , num_of_stock (number)

phone : name (text) , carrier (text) , phone_id (number)


Question: What is the carrier of the most expensive phone?

phone : name (text) , phone_id (number) , memory_in_g (number) , carrier (text) , price (number) | market : market_id (number) , district (text) , num_of_employees (number) , num_of_shops (number) , ranking (number) | phone_market : market_id (number) , phone_id (text) , num_of_stock (number)

phone : carrier (text) , price (number) , phone_id (number)


Question: Show different carriers of phones together with the number of phones with each carrier.

phone : name (text) , phone_id (number) , memory_in_g (number) , carrier (text) , price (number) | market : market_id (number) , district (text) , num_of_employees (number) , num_of_shops (number) , ranking (number) | phone_market : market_id (number) , phone_id (text) , num_of_stock (number)

phone : carrier (text) , phone_id (number)


Question: Show the most frequently used carrier of the phones.

phone : name (text) , phone_id (number) , memory_in_g (number) , carrier (text) , price (number) | market : market_id (number) , district (text) , num_of_employees (number) , num_of_shops (number) , ranking (number) | phone_market : market_id (number) , phone_id (text) , num_of_stock (number)

phone : carrier (text) , phone_id (number)


Question: Show the carriers that have both phones with memory smaller than 32 and phones with memory bigger than 64.

phone : name (text) , phone_id (number) , memory_in_g (number) , carrier (text) , price (number) | market : market_id (number) , district (text) , num_of_employees (number) , num_of_shops (number) , ranking (number) | phone_market : market_id (number) , phone_id (text) , num_of_stock (number)

phone : carrier (text) , memory_in_g (number) , phone_id (number)


Question: Show the names of phones and the districts of markets they are on.

phone : name (text) , phone_id (number) , memory_in_g (number) , carrier (text) , price (number) | market : market_id (number) , district (text) , num_of_employees (number) , num_of_shops (number) , ranking (number) | phone_market : market_id (number) , phone_id (text) , num_of_stock (number)

phone : name (text) , phone_id (number) | market : district (text) , market_id (number) | phone_market : market_id (number) , phone_id (text)


Question: Show the names of phones and the districts of markets they are on, in ascending order of the ranking of the market.

phone : name (text) , phone_id (number) , memory_in_g (number) , carrier (text) , price (number) | market : market_id (number) , district (text) , num_of_employees (number) , num_of_shops (number) , ranking (number) | phone_market : market_id (number) , phone_id (text) , num_of_stock (number)

phone : name (text) , phone_id (number) | market : district (text) , market_id (number) , ranking (number) | phone_market : market_id (number) , phone_id (text)


Question: Show the names of phones that are on market with number of shops greater than 50.

phone : name (text) , phone_id (number) , memory_in_g (number) , carrier (text) , price (number) | market : market_id (number) , district (text) , num_of_employees (number) , num_of_shops (number) , ranking (number) | phone_market : market_id (number) , phone_id (text) , num_of_stock (number)

phone : name (text) , phone_id (number) | market : market_id (number) , num_of_shops (number) | phone_market : market_id (number) , phone_id (text)


Question: For each phone, show its names and total number of stocks.

phone : name (text) , phone_id (number) , memory_in_g (number) , carrier (text) , price (number) | market : market_id (number) , district (text) , num_of_employees (number) , num_of_shops (number) , ranking (number) | phone_market : market_id (number) , phone_id (text) , num_of_stock (number)

phone : name (text) , phone_id (number) | phone_market : num_of_stock (number) , phone_id (text) , market_id (number)


Question: Show the names of phones that have total number of stocks bigger than 2000, in descending order of the total number of stocks.

phone : name (text) , phone_id (number) , memory_in_g (number) , carrier (text) , price (number) | market : market_id (number) , district (text) , num_of_employees (number) , num_of_shops (number) , ranking (number) | phone_market : market_id (number) , phone_id (text) , num_of_stock (number)

phone : name (text) , phone_id (number) | phone_market : phone_id (text) , num_of_stock (number) , market_id (number)


Question: List the names of phones that are not on any market.

phone : name (text) , phone_id (number) , memory_in_g (number) , carrier (text) , price (number) | market : market_id (number) , district (text) , num_of_employees (number) , num_of_shops (number) , ranking (number) | phone_market : market_id (number) , phone_id (text) , num_of_stock (number)

phone : name (text) , phone_id (number) | phone_market : phone_id (text) , market_id (number)


Question: How many gas companies are there?

company : company_id (number) , rank (number) , company (text) , headquarters (text) , main_industry (text) , sales_billion (number) , profits_billion (number) , assets_billion (number) , market_value (number) | gas_station : station_id (number) , open_year (number) , location (text) , manager_name (text) , vice_manager_name (text) , representative_name (text) | station_company : station_id (number) , company_id (number) , rank_of_the_year (number)

company : company (text) , company_id (number)


Question: What is the total number of companies?

company : company_id (number) , rank (number) , company (text) , headquarters (text) , main_industry (text) , sales_billion (number) , profits_billion (number) , assets_billion (number) , market_value (number) | gas_station : station_id (number) , open_year (number) , location (text) , manager_name (text) , vice_manager_name (text) , representative_name (text) | station_company : station_id (number) , company_id (number) , rank_of_the_year (number)

company : company (text) , company_id (number)


Question: List the company name and rank for all companies in the decreasing order of their sales.

company : company_id (number) , rank (number) , company (text) , headquarters (text) , main_industry (text) , sales_billion (number) , profits_billion (number) , assets_billion (number) , market_value (number) | gas_station : station_id (number) , open_year (number) , location (text) , manager_name (text) , vice_manager_name (text) , representative_name (text) | station_company : station_id (number) , company_id (number) , rank_of_the_year (number)

company : company (text) , rank (number) , sales_billion (number) , company_id (number)


Question: What is the name and rank of every company ordered by descending number of sales?

company : company_id (number) , rank (number) , company (text) , headquarters (text) , main_industry (text) , sales_billion (number) , profits_billion (number) , assets_billion (number) , market_value (number) | gas_station : station_id (number) , open_year (number) , location (text) , manager_name (text) , vice_manager_name (text) , representative_name (text) | station_company : station_id (number) , company_id (number) , rank_of_the_year (number)

company : company (text) , rank (number) , sales_billion (number) , company_id (number)


Question: Show the company name and the main industry for all companies whose headquarters are not from USA.

company : company_id (number) , rank (number) , company (text) , headquarters (text) , main_industry (text) , sales_billion (number) , profits_billion (number) , assets_billion (number) , market_value (number) | gas_station : station_id (number) , open_year (number) , location (text) , manager_name (text) , vice_manager_name (text) , representative_name (text) | station_company : station_id (number) , company_id (number) , rank_of_the_year (number)

company : company (text) , main_industry (text) , headquarters (text) , company_id (number)


Question: What are the companies and main industries of all companies that are not headquartered in the United States?

company : company_id (number) , rank (number) , company (text) , headquarters (text) , main_industry (text) , sales_billion (number) , profits_billion (number) , assets_billion (number) , market_value (number) | gas_station : station_id (number) , open_year (number) , location (text) , manager_name (text) , vice_manager_name (text) , representative_name (text) | station_company : station_id (number) , company_id (number) , rank_of_the_year (number)

company : company (text) , main_industry (text) , headquarters (text) , company_id (number)


Question: Show all company names and headquarters in the descending order of market value.

company : company_id (number) , rank (number) , company (text) , headquarters (text) , main_industry (text) , sales_billion (number) , profits_billion (number) , assets_billion (number) , market_value (number) | gas_station : station_id (number) , open_year (number) , location (text) , manager_name (text) , vice_manager_name (text) , representative_name (text) | station_company : station_id (number) , company_id (number) , rank_of_the_year (number)

company : company (text) , headquarters (text) , market_value (number) , company_id (number)


Question: What are the names and headquarters of all companies ordered by descending market value?

company : company_id (number) , rank (number) , company (text) , headquarters (text) , main_industry (text) , sales_billion (number) , profits_billion (number) , assets_billion (number) , market_value (number) | gas_station : station_id (number) , open_year (number) , location (text) , manager_name (text) , vice_manager_name (text) , representative_name (text) | station_company : station_id (number) , company_id (number) , rank_of_the_year (number)

company : company (text) , headquarters (text) , market_value (number) , company_id (number)


Question: Show minimum, maximum, and average market value for all companies.

company : company_id (number) , rank (number) , company (text) , headquarters (text) , main_industry (text) , sales_billion (number) , profits_billion (number) , assets_billion (number) , market_value (number) | gas_station : station_id (number) , open_year (number) , location (text) , manager_name (text) , vice_manager_name (text) , representative_name (text) | station_company : station_id (number) , company_id (number) , rank_of_the_year (number)

company : market_value (number) , company (text) , company_id (number)


Question: What is the minimum, maximum, and average market value for every company?

company : company_id (number) , rank (number) , company (text) , headquarters (text) , main_industry (text) , sales_billion (number) , profits_billion (number) , assets_billion (number) , market_value (number) | gas_station : station_id (number) , open_year (number) , location (text) , manager_name (text) , vice_manager_name (text) , representative_name (text) | station_company : station_id (number) , company_id (number) , rank_of_the_year (number)

company : market_value (number) , company (text) , company_id (number)


Question: Show all main industry for all companies.

company : company_id (number) , rank (number) , company (text) , headquarters (text) , main_industry (text) , sales_billion (number) , profits_billion (number) , assets_billion (number) , market_value (number) | gas_station : station_id (number) , open_year (number) , location (text) , manager_name (text) , vice_manager_name (text) , representative_name (text) | station_company : station_id (number) , company_id (number) , rank_of_the_year (number)

company : main_industry (text) , company (text) , company_id (number)


Question: What are the different main industries for all companies?

company : company_id (number) , rank (number) , company (text) , headquarters (text) , main_industry (text) , sales_billion (number) , profits_billion (number) , assets_billion (number) , market_value (number) | gas_station : station_id (number) , open_year (number) , location (text) , manager_name (text) , vice_manager_name (text) , representative_name (text) | station_company : station_id (number) , company_id (number) , rank_of_the_year (number)

company : main_industry (text) , company (text) , company_id (number)


Question: List all headquarters and the number of companies in each headquarter.

company : company_id (number) , rank (number) , company (text) , headquarters (text) , main_industry (text) , sales_billion (number) , profits_billion (number) , assets_billion (number) , market_value (number) | gas_station : station_id (number) , open_year (number) , location (text) , manager_name (text) , vice_manager_name (text) , representative_name (text) | station_company : station_id (number) , company_id (number) , rank_of_the_year (number)

company : headquarters (text) , company (text) , company_id (number)


Question: For each headquarter, what are the headquarter and how many companies are centered there?

company : company_id (number) , rank (number) , company (text) , headquarters (text) , main_industry (text) , sales_billion (number) , profits_billion (number) , assets_billion (number) , market_value (number) | gas_station : station_id (number) , open_year (number) , location (text) , manager_name (text) , vice_manager_name (text) , representative_name (text) | station_company : station_id (number) , company_id (number) , rank_of_the_year (number)

company : headquarters (text) , company (text) , company_id (number)


Question: Show all main industry and total market value in each industry.

company : company_id (number) , rank (number) , company (text) , headquarters (text) , main_industry (text) , sales_billion (number) , profits_billion (number) , assets_billion (number) , market_value (number) | gas_station : station_id (number) , open_year (number) , location (text) , manager_name (text) , vice_manager_name (text) , representative_name (text) | station_company : station_id (number) , company_id (number) , rank_of_the_year (number)

company : main_industry (text) , market_value (number) , company (text) , company_id (number)


Question: What are the main indstries and total market value for each industry?

company : company_id (number) , rank (number) , company (text) , headquarters (text) , main_industry (text) , sales_billion (number) , profits_billion (number) , assets_billion (number) , market_value (number) | gas_station : station_id (number) , open_year (number) , location (text) , manager_name (text) , vice_manager_name (text) , representative_name (text) | station_company : station_id (number) , company_id (number) , rank_of_the_year (number)

company : main_industry (text) , market_value (number) , company (text) , company_id (number)


Question: List the main industry with highest total market value and its number of companies.

company : company_id (number) , rank (number) , company (text) , headquarters (text) , main_industry (text) , sales_billion (number) , profits_billion (number) , assets_billion (number) , market_value (number) | gas_station : station_id (number) , open_year (number) , location (text) , manager_name (text) , vice_manager_name (text) , representative_name (text) | station_company : station_id (number) , company_id (number) , rank_of_the_year (number)

company : main_industry (text) , company (text) , market_value (number) , company_id (number)


Question: For each main industry, what is the total number of companies for the industry with the highest total market value?

company : company_id (number) , rank (number) , company (text) , headquarters (text) , main_industry (text) , sales_billion (number) , profits_billion (number) , assets_billion (number) , market_value (number) | gas_station : station_id (number) , open_year (number) , location (text) , manager_name (text) , vice_manager_name (text) , representative_name (text) | station_company : station_id (number) , company_id (number) , rank_of_the_year (number)

company : main_industry (text) , company (text) , market_value (number) , company_id (number)


Question: Show headquarters with at least two companies in the banking industry.

company : company_id (number) , rank (number) , company (text) , headquarters (text) , main_industry (text) , sales_billion (number) , profits_billion (number) , assets_billion (number) , market_value (number) | gas_station : station_id (number) , open_year (number) , location (text) , manager_name (text) , vice_manager_name (text) , representative_name (text) | station_company : station_id (number) , company_id (number) , rank_of_the_year (number)

company : headquarters (text) , company (text) , main_industry (text) , company_id (number)


Question: What are the headquarters with at least two companies in the banking industry?

company : company_id (number) , rank (number) , company (text) , headquarters (text) , main_industry (text) , sales_billion (number) , profits_billion (number) , assets_billion (number) , market_value (number) | gas_station : station_id (number) , open_year (number) , location (text) , manager_name (text) , vice_manager_name (text) , representative_name (text) | station_company : station_id (number) , company_id (number) , rank_of_the_year (number)

company : headquarters (text) , company (text) , main_industry (text) , company_id (number)


Question: Show gas station id, location, and manager_name for all gas stations ordered by open year.

company : company_id (number) , rank (number) , company (text) , headquarters (text) , main_industry (text) , sales_billion (number) , profits_billion (number) , assets_billion (number) , market_value (number) | gas_station : station_id (number) , open_year (number) , location (text) , manager_name (text) , vice_manager_name (text) , representative_name (text) | station_company : station_id (number) , company_id (number) , rank_of_the_year (number)

gas_station : station_id (number) , location (text) , manager_name (text) , open_year (number)


Question: What are the gas station ids, locations, and manager names for the gas stations ordered by opening year?

company : company_id (number) , rank (number) , company (text) , headquarters (text) , main_industry (text) , sales_billion (number) , profits_billion (number) , assets_billion (number) , market_value (number) | gas_station : station_id (number) , open_year (number) , location (text) , manager_name (text) , vice_manager_name (text) , representative_name (text) | station_company : station_id (number) , company_id (number) , rank_of_the_year (number)

gas_station : station_id (number) , location (text) , manager_name (text) , open_year (number)


Question: How many gas station are opened between 2000 and 2005?

company : company_id (number) , rank (number) , company (text) , headquarters (text) , main_industry (text) , sales_billion (number) , profits_billion (number) , assets_billion (number) , market_value (number) | gas_station : station_id (number) , open_year (number) , location (text) , manager_name (text) , vice_manager_name (text) , representative_name (text) | station_company : station_id (number) , company_id (number) , rank_of_the_year (number)

gas_station : open_year (number) , station_id (number)


Question: What is the total number of gas stations that opened between 2000 and 2005?

company : company_id (number) , rank (number) , company (text) , headquarters (text) , main_industry (text) , sales_billion (number) , profits_billion (number) , assets_billion (number) , market_value (number) | gas_station : station_id (number) , open_year (number) , location (text) , manager_name (text) , vice_manager_name (text) , representative_name (text) | station_company : station_id (number) , company_id (number) , rank_of_the_year (number)

gas_station : open_year (number) , station_id (number)


Question: Show all locations and the number of gas stations in each location ordered by the count.

company : company_id (number) , rank (number) , company (text) , headquarters (text) , main_industry (text) , sales_billion (number) , profits_billion (number) , assets_billion (number) , market_value (number) | gas_station : station_id (number) , open_year (number) , location (text) , manager_name (text) , vice_manager_name (text) , representative_name (text) | station_company : station_id (number) , company_id (number) , rank_of_the_year (number)

gas_station : location (text) , station_id (number)


Question: For each location, how many gas stations are there in order?

company : company_id (number) , rank (number) , company (text) , headquarters (text) , main_industry (text) , sales_billion (number) , profits_billion (number) , assets_billion (number) , market_value (number) | gas_station : station_id (number) , open_year (number) , location (text) , manager_name (text) , vice_manager_name (text) , representative_name (text) | station_company : station_id (number) , company_id (number) , rank_of_the_year (number)

gas_station : location (text) , station_id (number)


Question: Show all headquarters with both a company in banking industry and a company in Oil and gas.

company : company_id (number) , rank (number) , company (text) , headquarters (text) , main_industry (text) , sales_billion (number) , profits_billion (number) , assets_billion (number) , market_value (number) | gas_station : station_id (number) , open_year (number) , location (text) , manager_name (text) , vice_manager_name (text) , representative_name (text) | station_company : station_id (number) , company_id (number) , rank_of_the_year (number)

company : headquarters (text) , company (text) , main_industry (text) , company_id (number)


Question: What are the headquarters that have both a company in the banking and 'oil and gas' industries?

company : company_id (number) , rank (number) , company (text) , headquarters (text) , main_industry (text) , sales_billion (number) , profits_billion (number) , assets_billion (number) , market_value (number) | gas_station : station_id (number) , open_year (number) , location (text) , manager_name (text) , vice_manager_name (text) , representative_name (text) | station_company : station_id (number) , company_id (number) , rank_of_the_year (number)

company : headquarters (text) , company (text) , main_industry (text) , company_id (number)


Question: Show all headquarters without a company in banking industry.

company : company_id (number) , rank (number) , company (text) , headquarters (text) , main_industry (text) , sales_billion (number) , profits_billion (number) , assets_billion (number) , market_value (number) | gas_station : station_id (number) , open_year (number) , location (text) , manager_name (text) , vice_manager_name (text) , representative_name (text) | station_company : station_id (number) , company_id (number) , rank_of_the_year (number)

company : headquarters (text) , company (text) , main_industry (text) , company_id (number)


Question: What are the headquarters without companies that are in the banking industry?

company : company_id (number) , rank (number) , company (text) , headquarters (text) , main_industry (text) , sales_billion (number) , profits_billion (number) , assets_billion (number) , market_value (number) | gas_station : station_id (number) , open_year (number) , location (text) , manager_name (text) , vice_manager_name (text) , representative_name (text) | station_company : station_id (number) , company_id (number) , rank_of_the_year (number)

company : headquarters (text) , company (text) , main_industry (text) , company_id (number)


Question: Show the company name with the number of gas station.

company : company_id (number) , rank (number) , company (text) , headquarters (text) , main_industry (text) , sales_billion (number) , profits_billion (number) , assets_billion (number) , market_value (number) | gas_station : station_id (number) , open_year (number) , location (text) , manager_name (text) , vice_manager_name (text) , representative_name (text) | station_company : station_id (number) , company_id (number) , rank_of_the_year (number)

company : company (text) , company_id (number) | station_company : company_id (number) , station_id (number)


Question: For each company id, what are the companies and how many gas stations does each one operate?

company : company_id (number) , rank (number) , company (text) , headquarters (text) , main_industry (text) , sales_billion (number) , profits_billion (number) , assets_billion (number) , market_value (number) | gas_station : station_id (number) , open_year (number) , location (text) , manager_name (text) , vice_manager_name (text) , representative_name (text) | station_company : station_id (number) , company_id (number) , rank_of_the_year (number)

company : company (text) , company_id (number) | station_company : company_id (number) , station_id (number)


Question: Show company name and main industry without a gas station.

company : company_id (number) , rank (number) , company (text) , headquarters (text) , main_industry (text) , sales_billion (number) , profits_billion (number) , assets_billion (number) , market_value (number) | gas_station : station_id (number) , open_year (number) , location (text) , manager_name (text) , vice_manager_name (text) , representative_name (text) | station_company : station_id (number) , company_id (number) , rank_of_the_year (number)

company : company (text) , main_industry (text) , company_id (number) | station_company : company_id (number) , station_id (number)


Question: What are the main industries of the companies without gas stations and what are the companies?

company : company_id (number) , rank (number) , company (text) , headquarters (text) , main_industry (text) , sales_billion (number) , profits_billion (number) , assets_billion (number) , market_value (number) | gas_station : station_id (number) , open_year (number) , location (text) , manager_name (text) , vice_manager_name (text) , representative_name (text) | station_company : station_id (number) , company_id (number) , rank_of_the_year (number)

company : company (text) , main_industry (text) , company_id (number) | station_company : company_id (number) , station_id (number)


Question: Show the manager name for gas stations belonging to the ExxonMobil company.

company : company_id (number) , rank (number) , company (text) , headquarters (text) , main_industry (text) , sales_billion (number) , profits_billion (number) , assets_billion (number) , market_value (number) | gas_station : station_id (number) , open_year (number) , location (text) , manager_name (text) , vice_manager_name (text) , representative_name (text) | station_company : station_id (number) , company_id (number) , rank_of_the_year (number)

gas_station : manager_name (text) , station_id (number) | company : company (text) , company_id (number) | station_company : company_id (number) , station_id (number)


Question: What are the names of the managers for gas stations that are operated by the ExxonMobil company?

company : company_id (number) , rank (number) , company (text) , headquarters (text) , main_industry (text) , sales_billion (number) , profits_billion (number) , assets_billion (number) , market_value (number) | gas_station : station_id (number) , open_year (number) , location (text) , manager_name (text) , vice_manager_name (text) , representative_name (text) | station_company : station_id (number) , company_id (number) , rank_of_the_year (number)

gas_station : manager_name (text) , station_id (number) | company : company (text) , company_id (number) | station_company : company_id (number) , station_id (number)


Question: Show all locations where a gas station for company with market value greater than 100 is located.

company : company_id (number) , rank (number) , company (text) , headquarters (text) , main_industry (text) , sales_billion (number) , profits_billion (number) , assets_billion (number) , market_value (number) | gas_station : station_id (number) , open_year (number) , location (text) , manager_name (text) , vice_manager_name (text) , representative_name (text) | station_company : station_id (number) , company_id (number) , rank_of_the_year (number)

gas_station : location (text) , station_id (number) | company : company (text) , company_id (number) , market_value (number) | station_company : company_id (number) , station_id (number)


Question: What are the locations that have gas stations owned by a company with a market value greater than 100?

company : company_id (number) , rank (number) , company (text) , headquarters (text) , main_industry (text) , sales_billion (number) , profits_billion (number) , assets_billion (number) , market_value (number) | gas_station : station_id (number) , open_year (number) , location (text) , manager_name (text) , vice_manager_name (text) , representative_name (text) | station_company : station_id (number) , company_id (number) , rank_of_the_year (number)

gas_station : location (text) , station_id (number) | company : company (text) , company_id (number) , market_value (number) | station_company : company_id (number) , station_id (number)


Question: Show the manager name with most number of gas stations opened after 2000.

company : company_id (number) , rank (number) , company (text) , headquarters (text) , main_industry (text) , sales_billion (number) , profits_billion (number) , assets_billion (number) , market_value (number) | gas_station : station_id (number) , open_year (number) , location (text) , manager_name (text) , vice_manager_name (text) , representative_name (text) | station_company : station_id (number) , company_id (number) , rank_of_the_year (number)

gas_station : manager_name (text) , open_year (number) , station_id (number)


Question: What is the name of the manager with the most gas stations that opened after 2000?

company : company_id (number) , rank (number) , company (text) , headquarters (text) , main_industry (text) , sales_billion (number) , profits_billion (number) , assets_billion (number) , market_value (number) | gas_station : station_id (number) , open_year (number) , location (text) , manager_name (text) , vice_manager_name (text) , representative_name (text) | station_company : station_id (number) , company_id (number) , rank_of_the_year (number)

gas_station : manager_name (text) , open_year (number) , station_id (number)


Question: order all gas station locations by the opening year.

company : company_id (number) , rank (number) , company (text) , headquarters (text) , main_industry (text) , sales_billion (number) , profits_billion (number) , assets_billion (number) , market_value (number) | gas_station : station_id (number) , open_year (number) , location (text) , manager_name (text) , vice_manager_name (text) , representative_name (text) | station_company : station_id (number) , company_id (number) , rank_of_the_year (number)

gas_station : location (text) , open_year (number) , station_id (number)


Question: What are the locations of all the gas stations ordered by opening year?

company : company_id (number) , rank (number) , company (text) , headquarters (text) , main_industry (text) , sales_billion (number) , profits_billion (number) , assets_billion (number) , market_value (number) | gas_station : station_id (number) , open_year (number) , location (text) , manager_name (text) , vice_manager_name (text) , representative_name (text) | station_company : station_id (number) , company_id (number) , rank_of_the_year (number)

gas_station : location (text) , open_year (number) , station_id (number)


Question: find the rank, company names, market values of the companies in the banking industry order by their sales and profits in billion.

company : company_id (number) , rank (number) , company (text) , headquarters (text) , main_industry (text) , sales_billion (number) , profits_billion (number) , assets_billion (number) , market_value (number) | gas_station : station_id (number) , open_year (number) , location (text) , manager_name (text) , vice_manager_name (text) , representative_name (text) | station_company : station_id (number) , company_id (number) , rank_of_the_year (number)

company : rank (number) , company (text) , market_value (number) , main_industry (text) , sales_billion (number) , profits_billion (number) , company_id (number)


Question: What is the rank, company, and market value of every comapny in the banking industry ordered by sales and profits?

company : company_id (number) , rank (number) , company (text) , headquarters (text) , main_industry (text) , sales_billion (number) , profits_billion (number) , assets_billion (number) , market_value (number) | gas_station : station_id (number) , open_year (number) , location (text) , manager_name (text) , vice_manager_name (text) , representative_name (text) | station_company : station_id (number) , company_id (number) , rank_of_the_year (number)

company : rank (number) , company (text) , market_value (number) , main_industry (text) , sales_billion (number) , profits_billion (number) , company_id (number)


Question: find the location and Representative name of the gas stations owned by the companies with top 3 Asset amounts.

company : company_id (number) , rank (number) , company (text) , headquarters (text) , main_industry (text) , sales_billion (number) , profits_billion (number) , assets_billion (number) , market_value (number) | gas_station : station_id (number) , open_year (number) , location (text) , manager_name (text) , vice_manager_name (text) , representative_name (text) | station_company : station_id (number) , company_id (number) , rank_of_the_year (number)

gas_station : location (text) , representative_name (text) , station_id (number) | company : company (text) , company_id (number) , assets_billion (number) | station_company : company_id (number) , station_id (number)


Question: What are the locations and representatives' names of the gas stations owned by the companies with the 3 largest amounts of assets?

company : company_id (number) , rank (number) , company (text) , headquarters (text) , main_industry (text) , sales_billion (number) , profits_billion (number) , assets_billion (number) , market_value (number) | gas_station : station_id (number) , open_year (number) , location (text) , manager_name (text) , vice_manager_name (text) , representative_name (text) | station_company : station_id (number) , company_id (number) , rank_of_the_year (number)

gas_station : location (text) , representative_name (text) , station_id (number) | company : company (text) , company_id (number) , assets_billion (number) | station_company : company_id (number) , station_id (number)


Question: How many regions do we have?

region : region_id (number) , region_name (text) , date (text) , label (text) , format (text) , catalogue (text) | party : party_id (number) , minister (text) , took_office (text) , left_office (text) , region_id (number) , party_name (text) | member : member_id (number) , member_name (text) , party_id (text) , in_office (text) | party_events : event_id (number) , event_name (text) , party_id (number) , member_in_charge_id (number)


Question: Count the number of regions.

region : region_id (number) , region_name (text) , date (text) , label (text) , format (text) , catalogue (text) | party : party_id (number) , minister (text) , took_office (text) , left_office (text) , region_id (number) , party_name (text) | member : member_id (number) , member_name (text) , party_id (text) , in_office (text) | party_events : event_id (number) , event_name (text) , party_id (number) , member_in_charge_id (number)


Question: Show all distinct region names ordered by their labels.

region : region_id (number) , region_name (text) , date (text) , label (text) , format (text) , catalogue (text) | party : party_id (number) , minister (text) , took_office (text) , left_office (text) , region_id (number) , party_name (text) | member : member_id (number) , member_name (text) , party_id (text) , in_office (text) | party_events : event_id (number) , event_name (text) , party_id (number) , member_in_charge_id (number)

region : region_name (text) , label (text) , region_id (number)


Question: What are the different region names, ordered by labels?

region : region_id (number) , region_name (text) , date (text) , label (text) , format (text) , catalogue (text) | party : party_id (number) , minister (text) , took_office (text) , left_office (text) , region_id (number) , party_name (text) | member : member_id (number) , member_name (text) , party_id (text) , in_office (text) | party_events : event_id (number) , event_name (text) , party_id (number) , member_in_charge_id (number)

region : region_name (text) , label (text) , region_id (number)


Question: How many parties do we have?

region : region_id (number) , region_name (text) , date (text) , label (text) , format (text) , catalogue (text) | party : party_id (number) , minister (text) , took_office (text) , left_office (text) , region_id (number) , party_name (text) | member : member_id (number) , member_name (text) , party_id (text) , in_office (text) | party_events : event_id (number) , event_name (text) , party_id (number) , member_in_charge_id (number)

party : party_name (text) , party_id (number)


Question: Count the number of different parties.

region : region_id (number) , region_name (text) , date (text) , label (text) , format (text) , catalogue (text) | party : party_id (number) , minister (text) , took_office (text) , left_office (text) , region_id (number) , party_name (text) | member : member_id (number) , member_name (text) , party_id (text) , in_office (text) | party_events : event_id (number) , event_name (text) , party_id (number) , member_in_charge_id (number)

party : party_name (text) , party_id (number)


Question: Show the ministers and the time they took and left office, listed by the time they left office.

region : region_id (number) , region_name (text) , date (text) , label (text) , format (text) , catalogue (text) | party : party_id (number) , minister (text) , took_office (text) , left_office (text) , region_id (number) , party_name (text) | member : member_id (number) , member_name (text) , party_id (text) , in_office (text) | party_events : event_id (number) , event_name (text) , party_id (number) , member_in_charge_id (number)

party : minister (text) , took_office (text) , left_office (text) , party_id (number)


Question: Who are the ministers, when did they take office, and when did they leave office, ordered by when they left office?

region : region_id (number) , region_name (text) , date (text) , label (text) , format (text) , catalogue (text) | party : party_id (number) , minister (text) , took_office (text) , left_office (text) , region_id (number) , party_name (text) | member : member_id (number) , member_name (text) , party_id (text) , in_office (text) | party_events : event_id (number) , event_name (text) , party_id (number) , member_in_charge_id (number)

party : minister (text) , took_office (text) , left_office (text) , party_id (number)


Question: Show the minister who took office after 1961 or before 1959.

region : region_id (number) , region_name (text) , date (text) , label (text) , format (text) , catalogue (text) | party : party_id (number) , minister (text) , took_office (text) , left_office (text) , region_id (number) , party_name (text) | member : member_id (number) , member_name (text) , party_id (text) , in_office (text) | party_events : event_id (number) , event_name (text) , party_id (number) , member_in_charge_id (number)

party : minister (text) , took_office (text) , party_id (number)