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

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

wrestler : name (text) , location (text) , wrestler_id (number)


Question: Give the names and locations of all wrestlers.

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

wrestler : name (text) , location (text) , wrestler_id (number)


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

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

elimination : elimination_move (text) , team (text) , elimination_id (number)


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

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

elimination : elimination_move (text) , team (text) , elimination_id (number)


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

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

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


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

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

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


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

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

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


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

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

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


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

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

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


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

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

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


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

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

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


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

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

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


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

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

elimination : team (text) , elimination_id (number)


Question: How many eliminations did each team have?

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

elimination : team (text) , elimination_id (number)


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

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

elimination : team (text) , elimination_id (number)


Question: Which teams had more than 3 eliminations?

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

elimination : team (text) , elimination_id (number)


Question: Show the reign and days held of wrestlers.

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

wrestler : reign (text) , days_held (text) , wrestler_id (number)


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

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

wrestler : reign (text) , days_held (text) , wrestler_id (number)


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

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

wrestler : name (text) , days_held (text) , wrestler_id (number)


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

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

wrestler : name (text) , days_held (text) , wrestler_id (number)


Question: Please show the most common reigns of wrestlers.

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

wrestler : reign (text) , wrestler_id (number)


Question: Which reign is the most common among wrestlers?

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

wrestler : reign (text) , wrestler_id (number)


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

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

wrestler : location (text) , wrestler_id (number)


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

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

wrestler : location (text) , wrestler_id (number)


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

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

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


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

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

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


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

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

elimination : team (text) , eliminated_by (text) , elimination_id (number)


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

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

elimination : team (text) , eliminated_by (text) , elimination_id (number)


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

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

elimination : team (text) , elimination_id (number)


Question: How many different teams have had eliminated wrestlers?

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

elimination : team (text) , elimination_id (number)


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

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

elimination : time (text) , eliminated_by (text) , elimination_id (number)


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

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

elimination : time (text) , eliminated_by (text) , elimination_id (number)


Question: How many schools are there?

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


Question: Count the number of schools.

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


Question: Show all school names in alphabetical order.

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

school : school_name (text) , school_id (number)


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

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

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


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

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

school : enrollment (number) , school_id (number)


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

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

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


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

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

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


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

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

school : enrollment (number) , school_id (number)


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

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

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


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

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

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


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

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

endowment : donator_name (text) , amount (number) , endowment_id (number)


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

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

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


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

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

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


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

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

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


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

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

endowment : donator_name (text) , amount (number) , endowment_id (number)


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

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

endowment : amount (number) , donator_name (text) , endowment_id (number)


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

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

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


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

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

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


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

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

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


Question: Show all donor names.

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

endowment : donator_name (text) , endowment_id (number)


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

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

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


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

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

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


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

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

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


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

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

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


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

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

endowment : amount (number) , school_id (number) , endowment_id (number) | school : school_id (text) , school_id (number) | budget : school_id (number) , school_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) , school_id (number) | budget : school_id (number) , budgeted (number) , year (number) , total_budget_percent_invested (number) , total_budget_percent_budgeted (number) , school_id (number) | endowment : school_id (number) , endowment_id (number)


Question: How many buildings are there?

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


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

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

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


Question: What is the name of the tallest building?

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

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


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

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

building : floors (number) , building_id (number)


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 (number)


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 (number)


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

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

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


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 (number)


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 (number)


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 (number)


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

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

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


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) , building_id (number) | institution : institution (text) , building_id (text) , founded (number) , institution_id (number)


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

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

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


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) , building_id (number) | institution : institution (text) , building_id (text) , founded (number) , institution_id (number)


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 (number)


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) , institution_id (number) | protein : institution_id (text) , common_name (number)


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) , institution_id (number) | protein : institution_id (text) , common_name (number)


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 (number) | institution : institution (text) , institution_id (text) , institution_id (number)


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) , institution_id (number) | protein : institution_id (text) , common_name (number) | building : building_id (text) , floors (number) , building_id (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) , institution_id (number) | protein : institution_id (text) , common_name (number)


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) , cinema_id (number) | schedule : show_times_per_day (number) , cinema_id (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) , 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) , 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) , cinema_id (number) | film : title (text) , film_id (number) , film_id (number) | schedule : date (text) , price (number) , film_id (number) , cinema_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) , 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) , 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) , coupon_id (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) , customer_id (number) | bookings : customer_id (number) , booking_id (number) | payments : customer_id (number) , payment_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)

customers : customer_id (number) , customer_id (number) | bookings : customer_id (number) , booking_id (number) | 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) , booking_id (number) | payments : booking_id (number) , payment_id (number) | products_booked : booking_id (number) , booking_id (number) | view_product_availability : booking_id (number) , status_date (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_for_hire : product_id (number) , product_id (number) | products_booked : product_id (number) , booking_id (number) | view_product_availability : product_id (number) , status_date (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) , product_id (number) | products_booked : product_id (number) , booked_amount (number) , booking_id (number) | view_product_availability : product_id (number) , status_date (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) , booking_id (number) | products_for_hire : product_id (number) , product_name (text) , product_id (number) | products_booked : product_id (number) , booking_id (number) , booking_id (number) | view_product_availability : product_id (number) , booking_id (number) , status_date (number) | payments : booking_id (number) , payment_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) , product_id (number) | products_booked : product_id (number) , booking_id (number) | view_product_availability : product_id (number) , available_yn (text) , status_date (number)


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) , product_id (number) | products_booked : product_id (number) , booked_amount (number) , booking_id (number) | view_product_availability : product_id (number) , status_date (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) , 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) , phone_id (number) | market : district (text) , market_id (number) , market_id (number) | phone_market : market_id (number) , phone_id (text) , market_id (number)


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) , phone_id (number) | market : district (text) , market_id (number) , ranking (number) , market_id (number) | phone_market : market_id (number) , phone_id (text) , market_id (number)


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) , phone_id (number) | market : market_id (number) , num_of_shops (number) , market_id (number) | phone_market : market_id (number) , phone_id (text) , market_id (number)


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_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_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_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)