db_id
stringclasses 140
values | question
stringlengths 16
224
| schema
stringclasses 140
values | summarized-schema
stringlengths 18
304
| shrink-score
float64 0
1
|
---|---|---|---|---|
school_finance
|
Show each school name, its budgeted amount, and invested amount in year 2002 or after.
|
school : school_id (text) , school_name (text) , location (text) , mascot (text) , enrollment (number) , ihsaa_class (text) , ihsaa_football_class (text) , county (text) | budget : school_id (number) , year (number) , budgeted (number) , total_budget_percent_budgeted (number) , invested (number) , total_budget_percent_invested (number) , budget_invested_percent (text) | endowment : endowment_id (number) , school_id (number) , donator_name (text) , amount (number)
|
school : school_name (text) , school_id (text) | budget : budgeted (number) , invested (number) , school_id (number) , year (number)
| 0.684211 |
school_finance
|
Show all donor names.
|
school : school_id (text) , school_name (text) , location (text) , mascot (text) , enrollment (number) , ihsaa_class (text) , ihsaa_football_class (text) , county (text) | budget : school_id (number) , year (number) , budgeted (number) , total_budget_percent_budgeted (number) , invested (number) , total_budget_percent_invested (number) , budget_invested_percent (text) | endowment : endowment_id (number) , school_id (number) , donator_name (text) , amount (number)
|
endowment : donator_name (text)
| 0.947368 |
school_finance
|
How many budget record has a budget amount smaller than the invested amount?
|
school : school_id (text) , school_name (text) , location (text) , mascot (text) , enrollment (number) , ihsaa_class (text) , ihsaa_football_class (text) , county (text) | budget : school_id (number) , year (number) , budgeted (number) , total_budget_percent_budgeted (number) , invested (number) , total_budget_percent_invested (number) , budget_invested_percent (text) | endowment : endowment_id (number) , school_id (number) , donator_name (text) , amount (number)
|
budget : budgeted (number) , invested (number) , school_id (text)
| 0.842105 |
school_finance
|
What is the total budget amount for school "Glenn" in all years?
|
school : school_id (text) , school_name (text) , location (text) , mascot (text) , enrollment (number) , ihsaa_class (text) , ihsaa_football_class (text) , county (text) | budget : school_id (number) , year (number) , budgeted (number) , total_budget_percent_budgeted (number) , invested (number) , total_budget_percent_invested (number) , budget_invested_percent (text) | endowment : endowment_id (number) , school_id (number) , donator_name (text) , amount (number)
|
budget : budgeted (number) , school_id (number) | school : school_id (text) , school_name (text)
| 0.789474 |
school_finance
|
Show the names of schools with a total budget amount greater than 100 or a total endowment greater than 10.
|
school : school_id (text) , school_name (text) , location (text) , mascot (text) , enrollment (number) , ihsaa_class (text) , ihsaa_football_class (text) , county (text) | budget : school_id (number) , year (number) , budgeted (number) , total_budget_percent_budgeted (number) , invested (number) , total_budget_percent_invested (number) , budget_invested_percent (text) | endowment : endowment_id (number) , school_id (number) , donator_name (text) , amount (number)
|
school : school_name (text) , school_id (text) | budget : school_id (number) , budgeted (number) | endowment : school_id (number) , amount (number)
| 0.684211 |
school_finance
|
Find the names of schools that have more than one donator with donation amount above 8.5.
|
school : school_id (text) , school_name (text) , location (text) , mascot (text) , enrollment (number) , ihsaa_class (text) , ihsaa_football_class (text) , county (text) | budget : school_id (number) , year (number) , budgeted (number) , total_budget_percent_budgeted (number) , invested (number) , total_budget_percent_invested (number) , budget_invested_percent (text) | endowment : endowment_id (number) , school_id (number) , donator_name (text) , amount (number)
|
school : school_name (text) , school_id (text) | endowment : school_id (number) , amount (number) , endowment_id (number)
| 0.736842 |
school_finance
|
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)
| 0.842105 |
school_finance
|
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)
| 0.526316 |
protein_institute
|
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)
|
building : building_id (text)
| 0.954545 |
protein_institute
|
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)
| 0.863636 |
protein_institute
|
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)
| 0.909091 |
protein_institute
|
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)
| 0.954545 |
protein_institute
|
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)
| 0.863636 |
protein_institute
|
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)
| 0.863636 |
protein_institute
|
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)
| 0.818182 |
protein_institute
|
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)
| 0.818182 |
protein_institute
|
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)
| 0.863636 |
protein_institute
|
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)
| 0.818182 |
protein_institute
|
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)
| 0.818182 |
protein_institute
|
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)
| 0.772727 |
protein_institute
|
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)
| 0.772727 |
protein_institute
|
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)
| 0.681818 |
protein_institute
|
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)
| 0.909091 |
protein_institute
|
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)
| 0.818182 |
protein_institute
|
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)
| 0.727273 |
protein_institute
|
Show the protein name and the institution name.
|
building : building_id (text) , name (text) , street_address (text) , years_as_tallest (text) , height_feet (number) , floors (number) | institution : institution_id (text) , institution (text) , location (text) , founded (number) , type (text) , enrollment (number) , team (text) , primary_conference (text) , building_id (text) | protein : common_name (text) , protein_name (text) , divergence_from_human_lineage (number) , accession_number (text) , sequence_length (number) , sequence_identity_to_human_protein (text) , institution_id (text)
|
protein : protein_name (text) , institution_id (text) | institution : institution (text) , institution_id (text)
| 0.818182 |
protein_institute
|
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)
| 0.681818 |
protein_institute
|
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)
| 0.818182 |
cinema
|
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)
| 0.882353 |
cinema
|
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)
| 0.882353 |
cinema
|
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)
|
cinema : cinema_id (number)
| 0.941176 |
cinema
|
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)
|
cinema : cinema_id (number)
| 0.941176 |
cinema
|
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)
| 0.823529 |
cinema
|
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)
| 0.823529 |
cinema
|
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)
| 0.941176 |
cinema
|
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)
| 0.941176 |
cinema
|
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)
| 0.882353 |
cinema
|
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)
| 0.823529 |
cinema
|
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)
| 0.882353 |
cinema
|
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)
| 0.882353 |
cinema
|
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)
| 0.823529 |
cinema
|
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)
| 0.823529 |
cinema
|
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)
| 0.823529 |
cinema
|
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)
| 0.882353 |
cinema
|
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)
| 0.882353 |
cinema
|
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)
| 0.941176 |
cinema
|
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)
| 0.941176 |
cinema
|
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)
| 0.882353 |
cinema
|
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)
| 0.764706 |
cinema
|
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)
| 0.764706 |
cinema
|
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)
| 0.764706 |
cinema
|
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)
| 0.529412 |
cinema
|
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)
| 0.764706 |
cinema
|
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)
| 0.764706 |
cinema
|
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)
| 0.823529 |
cinema
|
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)
| 0.823529 |
cinema
|
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)
|
film : title (text) , film_id (number)
| 0.882353 |
cinema
|
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)
|
film : title (text) , film_id (number)
| 0.882353 |
products_for_hire
|
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) | discount_coupons : coupon_id (number) , coupon_amount (number)
| 0.911111 |
products_for_hire
|
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)
| 0.911111 |
products_for_hire
|
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)
| 0.955556 |
products_for_hire
|
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)
| 0.911111 |
products_for_hire
|
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)
| 0.955556 |
products_for_hire
|
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)
| 0.911111 |
products_for_hire
|
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)
| 0.844444 |
products_for_hire
|
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)
| 0.911111 |
products_for_hire
|
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)
| 0.977778 |
products_for_hire
|
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)
| 0.911111 |
products_for_hire
|
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)
| 0.977778 |
products_for_hire
|
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)
| 0.977778 |
products_for_hire
|
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)
| 0.977778 |
products_for_hire
|
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)
| 0.955556 |
products_for_hire
|
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)
| 0.911111 |
products_for_hire
|
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)
| 0.911111 |
products_for_hire
|
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)
| 0.933333 |
products_for_hire
|
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)
| 0.911111 |
phone_market
|
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)
|
phone : phone_id (number)
| 0.923077 |
phone_market
|
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)
| 0.846154 |
phone_market
|
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)
| 0.846154 |
phone_market
|
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)
| 0.846154 |
phone_market
|
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)
| 0.846154 |
phone_market
|
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)
| 0.846154 |
phone_market
|
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)
| 0.846154 |
phone_market
|
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)
| 0.846154 |
phone_market
|
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)
| 0.846154 |
phone_market
|
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)
| 0.538462 |
phone_market
|
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)
| 0.461538 |
phone_market
|
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)
| 0.538462 |
phone_market
|
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)
| 0.692308 |
phone_market
|
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)
| 0.692308 |
phone_market
|
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)
| 0.769231 |
gas_company
|
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)
| 0.888889 |
gas_company
|
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)
| 0.888889 |
gas_company
|
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)
| 0.833333 |
gas_company
|
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)
| 0.833333 |
gas_company
|
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)
| 0.833333 |
gas_company
|
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)
| 0.833333 |
gas_company
|
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)
| 0.833333 |
gas_company
|
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)
| 0.833333 |
gas_company
|
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)
| 0.888889 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.