Question: Count the number of tracks.

race : race_id (number) , name (text) , class (text) , date (text) , track_id (text) | track : track_id (number) , name (text) , location (text) , seating (number) , year_opened (number)


Question: Show the name and location for all tracks.

race : race_id (number) , name (text) , class (text) , date (text) , track_id (text) | track : track_id (number) , name (text) , location (text) , seating (number) , year_opened (number)

race : name (text) , race_id (number) | track : name (text) , location (text) , track_id (number)


Question: What are the names and locations of all tracks?

race : race_id (number) , name (text) , class (text) , date (text) , track_id (text) | track : track_id (number) , name (text) , location (text) , seating (number) , year_opened (number)

race : name (text) , race_id (number) | track : name (text) , location (text) , track_id (number)


Question: Show names and seatings, ordered by seating for all tracks opened after 2000.

race : race_id (number) , name (text) , class (text) , date (text) , track_id (text) | track : track_id (number) , name (text) , location (text) , seating (number) , year_opened (number)

race : name (text) , race_id (number) | track : name (text) , seating (number) , year_opened (number) , track_id (number)


Question: What are the names and seatings for all tracks opened after 2000, ordered by seating?

race : race_id (number) , name (text) , class (text) , date (text) , track_id (text) | track : track_id (number) , name (text) , location (text) , seating (number) , year_opened (number)

race : name (text) , race_id (number) | track : name (text) , seating (number) , year_opened (number) , track_id (number)


Question: What is the name, location and seating for the most recently opened track?

race : race_id (number) , name (text) , class (text) , date (text) , track_id (text) | track : track_id (number) , name (text) , location (text) , seating (number) , year_opened (number)

race : name (text) , race_id (number) | track : name (text) , location (text) , seating (number) , year_opened (number) , track_id (number)


Question: Return the name, location, and seating of the track that was opened in the most recent year.

race : race_id (number) , name (text) , class (text) , date (text) , track_id (text) | track : track_id (number) , name (text) , location (text) , seating (number) , year_opened (number)

race : name (text) , race_id (number) | track : name (text) , location (text) , seating (number) , year_opened (number) , track_id (number)


Question: What is the minimum, maximum, and average seating for all tracks.

race : race_id (number) , name (text) , class (text) , date (text) , track_id (text) | track : track_id (number) , name (text) , location (text) , seating (number) , year_opened (number)

track : seating (number) , track_id (number)


Question: Return the minimum, maximum, and average seating across all tracks.

race : race_id (number) , name (text) , class (text) , date (text) , track_id (text) | track : track_id (number) , name (text) , location (text) , seating (number) , year_opened (number)

track : seating (number) , track_id (number)


Question: Show the name, location, open year for all tracks with a seating higher than the average.

race : race_id (number) , name (text) , class (text) , date (text) , track_id (text) | track : track_id (number) , name (text) , location (text) , seating (number) , year_opened (number)

race : name (text) , race_id (number) | track : name (text) , location (text) , year_opened (number) , seating (number) , track_id (number)


Question: What are the names, locations, and years of opening for tracks with seating higher than average?

race : race_id (number) , name (text) , class (text) , date (text) , track_id (text) | track : track_id (number) , name (text) , location (text) , seating (number) , year_opened (number)

race : name (text) , race_id (number) | track : name (text) , location (text) , year_opened (number) , seating (number) , track_id (number)


Question: What are distinct locations where tracks are located?

race : race_id (number) , name (text) , class (text) , date (text) , track_id (text) | track : track_id (number) , name (text) , location (text) , seating (number) , year_opened (number)

track : location (text) , track_id (number)


Question: Give the different locations of tracks.

race : race_id (number) , name (text) , class (text) , date (text) , track_id (text) | track : track_id (number) , name (text) , location (text) , seating (number) , year_opened (number)

track : location (text) , track_id (number)


Question: How many races are there?

race : race_id (number) , name (text) , class (text) , date (text) , track_id (text) | track : track_id (number) , name (text) , location (text) , seating (number) , year_opened (number)


Question: Count the number of races.

race : race_id (number) , name (text) , class (text) , date (text) , track_id (text) | track : track_id (number) , name (text) , location (text) , seating (number) , year_opened (number)


Question: What are the distinct classes that races can have?

race : race_id (number) , name (text) , class (text) , date (text) , track_id (text) | track : track_id (number) , name (text) , location (text) , seating (number) , year_opened (number)


Question: Return the different classes of races.

race : race_id (number) , name (text) , class (text) , date (text) , track_id (text) | track : track_id (number) , name (text) , location (text) , seating (number) , year_opened (number)


Question: Show name, class, and date for all races.

race : race_id (number) , name (text) , class (text) , date (text) , track_id (text) | track : track_id (number) , name (text) , location (text) , seating (number) , year_opened (number)

race : name (text) , class (text) , date (text) , race_id (number) | track : name (text) , track_id (number)


Question: What are the names, classes, and dates for all races?

race : race_id (number) , name (text) , class (text) , date (text) , track_id (text) | track : track_id (number) , name (text) , location (text) , seating (number) , year_opened (number)

race : name (text) , class (text) , date (text) , race_id (number) | track : name (text) , track_id (number)


Question: Show the race class and number of races in each class.

race : race_id (number) , name (text) , class (text) , date (text) , track_id (text) | track : track_id (number) , name (text) , location (text) , seating (number) , year_opened (number)


Question: What are the different classes of races, and how many races correspond to each?

race : race_id (number) , name (text) , class (text) , date (text) , track_id (text) | track : track_id (number) , name (text) , location (text) , seating (number) , year_opened (number)


Question: What is the race class with most number of races.

race : race_id (number) , name (text) , class (text) , date (text) , track_id (text) | track : track_id (number) , name (text) , location (text) , seating (number) , year_opened (number)


Question: Give the class of races that is most common.

race : race_id (number) , name (text) , class (text) , date (text) , track_id (text) | track : track_id (number) , name (text) , location (text) , seating (number) , year_opened (number)


Question: List the race class with at least two races.

race : race_id (number) , name (text) , class (text) , date (text) , track_id (text) | track : track_id (number) , name (text) , location (text) , seating (number) , year_opened (number)


Question: What are the classes of races that have two or more corresponding races?

race : race_id (number) , name (text) , class (text) , date (text) , track_id (text) | track : track_id (number) , name (text) , location (text) , seating (number) , year_opened (number)


Question: What are the names for tracks without a race in class 'GT'.

race : race_id (number) , name (text) , class (text) , date (text) , track_id (text) | track : track_id (number) , name (text) , location (text) , seating (number) , year_opened (number)

race : name (text) , track_id (text) , class (text) , race_id (number) | track : name (text) , track_id (number) , track_id (number)


Question: Give the names of tracks that do not have a race in the class 'GT'.

race : race_id (number) , name (text) , class (text) , date (text) , track_id (text) | track : track_id (number) , name (text) , location (text) , seating (number) , year_opened (number)

race : name (text) , track_id (text) , class (text) , race_id (number) | track : name (text) , track_id (number) , track_id (number)


Question: Show all track names that have had no races.

race : race_id (number) , name (text) , class (text) , date (text) , track_id (text) | track : track_id (number) , name (text) , location (text) , seating (number) , year_opened (number)

race : name (text) , track_id (text) , race_id (number) | track : name (text) , track_id (number) , track_id (number)


Question: Return the names of tracks that have no had any races.

race : race_id (number) , name (text) , class (text) , date (text) , track_id (text) | track : track_id (number) , name (text) , location (text) , seating (number) , year_opened (number)

race : name (text) , track_id (text) , race_id (number) | track : name (text) , track_id (number) , track_id (number)


Question: Show year where a track with a seating at least 5000 opened and a track with seating no more than 4000 opened.

race : race_id (number) , name (text) , class (text) , date (text) , track_id (text) | track : track_id (number) , name (text) , location (text) , seating (number) , year_opened (number)

track : year_opened (number) , seating (number) , track_id (number)


Question: What are the years of opening for tracks with seating between 4000 and 5000?

race : race_id (number) , name (text) , class (text) , date (text) , track_id (text) | track : track_id (number) , name (text) , location (text) , seating (number) , year_opened (number)

track : year_opened (number) , seating (number) , track_id (number)


Question: Show the name of track and the number of races in each track.

race : race_id (number) , name (text) , class (text) , date (text) , track_id (text) | track : track_id (number) , name (text) , location (text) , seating (number) , year_opened (number)

race : name (text) , track_id (text) , race_id (number) | track : name (text) , track_id (number) , track_id (number)


Question: What are the names of different tracks, and how many races has each had?

race : race_id (number) , name (text) , class (text) , date (text) , track_id (text) | track : track_id (number) , name (text) , location (text) , seating (number) , year_opened (number)

race : name (text) , track_id (text) , race_id (number) | track : name (text) , track_id (number) , track_id (number)


Question: Show the name of track with most number of races.

race : race_id (number) , name (text) , class (text) , date (text) , track_id (text) | track : track_id (number) , name (text) , location (text) , seating (number) , year_opened (number)

race : name (text) , track_id (text) , race_id (number) | track : name (text) , track_id (number) , track_id (number)


Question: What is the name of the track that has had the greatest number of races?

race : race_id (number) , name (text) , class (text) , date (text) , track_id (text) | track : track_id (number) , name (text) , location (text) , seating (number) , year_opened (number)

race : name (text) , track_id (text) , race_id (number) | track : name (text) , track_id (number) , track_id (number)


Question: Show the name and date for each race and its track name.

race : race_id (number) , name (text) , class (text) , date (text) , track_id (text) | track : track_id (number) , name (text) , location (text) , seating (number) , year_opened (number)

race : name (text) , date (text) , track_id (text) , race_id (number) | track : name (text) , track_id (number) , track_id (number)


Question: What are the names and dates of races, and the names of the tracks where they are held?

race : race_id (number) , name (text) , class (text) , date (text) , track_id (text) | track : track_id (number) , name (text) , location (text) , seating (number) , year_opened (number)

race : name (text) , date (text) , track_id (text) , race_id (number) | track : name (text) , track_id (number) , track_id (number)


Question: Show the name and location of track with 1 race.

race : race_id (number) , name (text) , class (text) , date (text) , track_id (text) | track : track_id (number) , name (text) , location (text) , seating (number) , year_opened (number)

race : name (text) , track_id (text) , race_id (number) | track : name (text) , location (text) , track_id (number) , track_id (number)


Question: What are the names and locations of tracks that have had exactly 1 race?

race : race_id (number) , name (text) , class (text) , date (text) , track_id (text) | track : track_id (number) , name (text) , location (text) , seating (number) , year_opened (number)

race : name (text) , track_id (text) , race_id (number) | track : name (text) , location (text) , track_id (number) , track_id (number)


Question: Find the locations where have both tracks with more than 90000 seats and tracks with less than 70000 seats.

race : race_id (number) , name (text) , class (text) , date (text) , track_id (text) | track : track_id (number) , name (text) , location (text) , seating (number) , year_opened (number)

track : location (text) , seating (number) , track_id (number)


Question: What are the locations that have both tracks with more than 90000 seats, and tracks with fewer than 70000 seats?

race : race_id (number) , name (text) , class (text) , date (text) , track_id (text) | track : track_id (number) , name (text) , location (text) , seating (number) , year_opened (number)

track : location (text) , seating (number) , track_id (number)


Question: How many members have the black membership card?

shop : shop_id (number) , address (text) , num_of_staff (text) , score (number) , open_year (text) | member : member_id (number) , name (text) , membership_card (text) , age (number) , time_of_purchase (number) , level_of_membership (number) , address (text) | happy_hour : hh_id (number) , shop_id (number) , month (text) , num_of_shaff_in_charge (number) | happy_hour_member : hh_id (number) , member_id (number) , total_amount (number)

member : membership_card (text) , member_id (number)


Question: Find the number of members living in each address.

shop : shop_id (number) , address (text) , num_of_staff (text) , score (number) , open_year (text) | member : member_id (number) , name (text) , membership_card (text) , age (number) , time_of_purchase (number) , level_of_membership (number) , address (text) | happy_hour : hh_id (number) , shop_id (number) , month (text) , num_of_shaff_in_charge (number) | happy_hour_member : hh_id (number) , member_id (number) , total_amount (number)

shop : address (text) , shop_id (number) | member : address (text) , member_id (number)


Question: Give me the names of members whose address is in Harford or Waterbury.

shop : shop_id (number) , address (text) , num_of_staff (text) , score (number) , open_year (text) | member : member_id (number) , name (text) , membership_card (text) , age (number) , time_of_purchase (number) , level_of_membership (number) , address (text) | happy_hour : hh_id (number) , shop_id (number) , month (text) , num_of_shaff_in_charge (number) | happy_hour_member : hh_id (number) , member_id (number) , total_amount (number)

member : name (text) , address (text) , member_id (number) | shop : address (text) , shop_id (number)


Question: Find the ids and names of members who are under age 30 or with black membership card.

shop : shop_id (number) , address (text) , num_of_staff (text) , score (number) , open_year (text) | member : member_id (number) , name (text) , membership_card (text) , age (number) , time_of_purchase (number) , level_of_membership (number) , address (text) | happy_hour : hh_id (number) , shop_id (number) , month (text) , num_of_shaff_in_charge (number) | happy_hour_member : hh_id (number) , member_id (number) , total_amount (number)

member : name (text) , member_id (number) , membership_card (text) , age (number) , member_id (number) | happy_hour_member : member_id (number) , hh_id (number)


Question: Find the purchase time, age and address of each member, and show the results in the order of purchase time.

shop : shop_id (number) , address (text) , num_of_staff (text) , score (number) , open_year (text) | member : member_id (number) , name (text) , membership_card (text) , age (number) , time_of_purchase (number) , level_of_membership (number) , address (text) | happy_hour : hh_id (number) , shop_id (number) , month (text) , num_of_shaff_in_charge (number) | happy_hour_member : hh_id (number) , member_id (number) , total_amount (number)

member : time_of_purchase (number) , age (number) , address (text) , member_id (number) | shop : address (text) , shop_id (number)


Question: Which membership card has more than 5 members?

shop : shop_id (number) , address (text) , num_of_staff (text) , score (number) , open_year (text) | member : member_id (number) , name (text) , membership_card (text) , age (number) , time_of_purchase (number) , level_of_membership (number) , address (text) | happy_hour : hh_id (number) , shop_id (number) , month (text) , num_of_shaff_in_charge (number) | happy_hour_member : hh_id (number) , member_id (number) , total_amount (number)

member : membership_card (text) , member_id (number)


Question: Which address has both members younger than 30 and members older than 40?

shop : shop_id (number) , address (text) , num_of_staff (text) , score (number) , open_year (text) | member : member_id (number) , name (text) , membership_card (text) , age (number) , time_of_purchase (number) , level_of_membership (number) , address (text) | happy_hour : hh_id (number) , shop_id (number) , month (text) , num_of_shaff_in_charge (number) | happy_hour_member : hh_id (number) , member_id (number) , total_amount (number)

shop : address (text) , shop_id (number) | member : address (text) , age (number) , member_id (number)


Question: What is the membership card held by both members living in Hartford and ones living in Waterbury address?

shop : shop_id (number) , address (text) , num_of_staff (text) , score (number) , open_year (text) | member : member_id (number) , name (text) , membership_card (text) , age (number) , time_of_purchase (number) , level_of_membership (number) , address (text) | happy_hour : hh_id (number) , shop_id (number) , month (text) , num_of_shaff_in_charge (number) | happy_hour_member : hh_id (number) , member_id (number) , total_amount (number)

member : membership_card (text) , address (text) , member_id (number) | shop : address (text) , shop_id (number)


Question: How many members are not living in Hartford?

shop : shop_id (number) , address (text) , num_of_staff (text) , score (number) , open_year (text) | member : member_id (number) , name (text) , membership_card (text) , age (number) , time_of_purchase (number) , level_of_membership (number) , address (text) | happy_hour : hh_id (number) , shop_id (number) , month (text) , num_of_shaff_in_charge (number) | happy_hour_member : hh_id (number) , member_id (number) , total_amount (number)

shop : address (text) , shop_id (number) | member : address (text) , member_id (number)


Question: Which address do not have any member with the black membership card?

shop : shop_id (number) , address (text) , num_of_staff (text) , score (number) , open_year (text) | member : member_id (number) , name (text) , membership_card (text) , age (number) , time_of_purchase (number) , level_of_membership (number) , address (text) | happy_hour : hh_id (number) , shop_id (number) , month (text) , num_of_shaff_in_charge (number) | happy_hour_member : hh_id (number) , member_id (number) , total_amount (number)

shop : address (text) , shop_id (number) | member : address (text) , membership_card (text) , member_id (number)


Question: Show the shop addresses ordered by their opening year.

shop : shop_id (number) , address (text) , num_of_staff (text) , score (number) , open_year (text) | member : member_id (number) , name (text) , membership_card (text) , age (number) , time_of_purchase (number) , level_of_membership (number) , address (text) | happy_hour : hh_id (number) , shop_id (number) , month (text) , num_of_shaff_in_charge (number) | happy_hour_member : hh_id (number) , member_id (number) , total_amount (number)

shop : address (text) , open_year (text) , shop_id (number) | member : address (text) , member_id (number)


Question: What are the average score and average staff number of all shops?

shop : shop_id (number) , address (text) , num_of_staff (text) , score (number) , open_year (text) | member : member_id (number) , name (text) , membership_card (text) , age (number) , time_of_purchase (number) , level_of_membership (number) , address (text) | happy_hour : hh_id (number) , shop_id (number) , month (text) , num_of_shaff_in_charge (number) | happy_hour_member : hh_id (number) , member_id (number) , total_amount (number)

shop : num_of_staff (text) , score (number) , shop_id (number)


Question: Find the id and address of the shops whose score is below the average score.

shop : shop_id (number) , address (text) , num_of_staff (text) , score (number) , open_year (text) | member : member_id (number) , name (text) , membership_card (text) , age (number) , time_of_purchase (number) , level_of_membership (number) , address (text) | happy_hour : hh_id (number) , shop_id (number) , month (text) , num_of_shaff_in_charge (number) | happy_hour_member : hh_id (number) , member_id (number) , total_amount (number)

shop : shop_id (number) , address (text) , score (number) , shop_id (number) | happy_hour : shop_id (number) , hh_id (number) | member : address (text) , member_id (number)


Question: Find the address and staff number of the shops that do not have any happy hour.

shop : shop_id (number) , address (text) , num_of_staff (text) , score (number) , open_year (text) | member : member_id (number) , name (text) , membership_card (text) , age (number) , time_of_purchase (number) , level_of_membership (number) , address (text) | happy_hour : hh_id (number) , shop_id (number) , month (text) , num_of_shaff_in_charge (number) | happy_hour_member : hh_id (number) , member_id (number) , total_amount (number)

shop : address (text) , num_of_staff (text) , shop_id (number) , shop_id (number) | member : address (text) , member_id (number) | happy_hour : shop_id (number) , hh_id (number)


Question: What are the id and address of the shops which have a happy hour in May?

shop : shop_id (number) , address (text) , num_of_staff (text) , score (number) , open_year (text) | member : member_id (number) , name (text) , membership_card (text) , age (number) , time_of_purchase (number) , level_of_membership (number) , address (text) | happy_hour : hh_id (number) , shop_id (number) , month (text) , num_of_shaff_in_charge (number) | happy_hour_member : hh_id (number) , member_id (number) , total_amount (number)

shop : address (text) , shop_id (number) , shop_id (number) | member : address (text) , member_id (number) | happy_hour : shop_id (number) , month (text) , hh_id (number)


Question: which shop has happy hour most frequently? List its id and number of happy hours.

shop : shop_id (number) , address (text) , num_of_staff (text) , score (number) , open_year (text) | member : member_id (number) , name (text) , membership_card (text) , age (number) , time_of_purchase (number) , level_of_membership (number) , address (text) | happy_hour : hh_id (number) , shop_id (number) , month (text) , num_of_shaff_in_charge (number) | happy_hour_member : hh_id (number) , member_id (number) , total_amount (number)

shop : shop_id (number) , shop_id (number) | happy_hour : shop_id (number) , hh_id (number)


Question: Which month has the most happy hours?

shop : shop_id (number) , address (text) , num_of_staff (text) , score (number) , open_year (text) | member : member_id (number) , name (text) , membership_card (text) , age (number) , time_of_purchase (number) , level_of_membership (number) , address (text) | happy_hour : hh_id (number) , shop_id (number) , month (text) , num_of_shaff_in_charge (number) | happy_hour_member : hh_id (number) , member_id (number) , total_amount (number)

happy_hour : month (text) , hh_id (number)


Question: Which months have more than 2 happy hours?

shop : shop_id (number) , address (text) , num_of_staff (text) , score (number) , open_year (text) | member : member_id (number) , name (text) , membership_card (text) , age (number) , time_of_purchase (number) , level_of_membership (number) , address (text) | happy_hour : hh_id (number) , shop_id (number) , month (text) , num_of_shaff_in_charge (number) | happy_hour_member : hh_id (number) , member_id (number) , total_amount (number)

happy_hour : month (text) , hh_id (number)


Question: How many albums are there?

album : albumid (number) , title (text) , artistid (number) | artist : artistid (number) , name (text) | customer : customerid (number) , firstname (text) , lastname (text) , company (text) , address (text) , city (text) , state (text) , country (text) , postalcode (text) , phone (text) , fax (text) , email (text) , supportrepid (number) | employee : employeeid (number) , lastname (text) , firstname (text) , title (text) , reportsto (number) , birthdate (time) , hiredate (time) , address (text) , city (text) , state (text) , country (text) , postalcode (text) , phone (text) , fax (text) , email (text) | genre : genreid (number) , name (text) | invoice : invoiceid (number) , customerid (number) , invoicedate (time) , billingaddress (text) , billingcity (text) , billingstate (text) , billingcountry (text) , billingpostalcode (text) , total (number) | invoiceline : invoicelineid (number) , invoiceid (number) , trackid (number) , unitprice (number) , quantity (number) | mediatype : mediatypeid (number) , name (text) | playlist : playlistid (number) , name (text) | playlisttrack : playlistid (number) , trackid (number) | track : trackid (number) , name (text) , albumid (number) , mediatypeid (number) , genreid (number) , composer (text) , milliseconds (number) , bytes (number) , unitprice (number)


Question: Find the number of albums.

album : albumid (number) , title (text) , artistid (number) | artist : artistid (number) , name (text) | customer : customerid (number) , firstname (text) , lastname (text) , company (text) , address (text) , city (text) , state (text) , country (text) , postalcode (text) , phone (text) , fax (text) , email (text) , supportrepid (number) | employee : employeeid (number) , lastname (text) , firstname (text) , title (text) , reportsto (number) , birthdate (time) , hiredate (time) , address (text) , city (text) , state (text) , country (text) , postalcode (text) , phone (text) , fax (text) , email (text) | genre : genreid (number) , name (text) | invoice : invoiceid (number) , customerid (number) , invoicedate (time) , billingaddress (text) , billingcity (text) , billingstate (text) , billingcountry (text) , billingpostalcode (text) , total (number) | invoiceline : invoicelineid (number) , invoiceid (number) , trackid (number) , unitprice (number) , quantity (number) | mediatype : mediatypeid (number) , name (text) | playlist : playlistid (number) , name (text) | playlisttrack : playlistid (number) , trackid (number) | track : trackid (number) , name (text) , albumid (number) , mediatypeid (number) , genreid (number) , composer (text) , milliseconds (number) , bytes (number) , unitprice (number)


Question: List the names of all music genres.

album : albumid (number) , title (text) , artistid (number) | artist : artistid (number) , name (text) | customer : customerid (number) , firstname (text) , lastname (text) , company (text) , address (text) , city (text) , state (text) , country (text) , postalcode (text) , phone (text) , fax (text) , email (text) , supportrepid (number) | employee : employeeid (number) , lastname (text) , firstname (text) , title (text) , reportsto (number) , birthdate (time) , hiredate (time) , address (text) , city (text) , state (text) , country (text) , postalcode (text) , phone (text) , fax (text) , email (text) | genre : genreid (number) , name (text) | invoice : invoiceid (number) , customerid (number) , invoicedate (time) , billingaddress (text) , billingcity (text) , billingstate (text) , billingcountry (text) , billingpostalcode (text) , total (number) | invoiceline : invoicelineid (number) , invoiceid (number) , trackid (number) , unitprice (number) , quantity (number) | mediatype : mediatypeid (number) , name (text) | playlist : playlistid (number) , name (text) | playlisttrack : playlistid (number) , trackid (number) | track : trackid (number) , name (text) , albumid (number) , mediatypeid (number) , genreid (number) , composer (text) , milliseconds (number) , bytes (number) , unitprice (number)

artist : name (text) , artistid (number) | genre : name (text) , genreid (number) | mediatype : name (text) , mediatypeid (number) | playlist : name (text) , playlistid (number) | track : name (text) , trackid (number)


Question: What are the names of different music genres?

album : albumid (number) , title (text) , artistid (number) | artist : artistid (number) , name (text) | customer : customerid (number) , firstname (text) , lastname (text) , company (text) , address (text) , city (text) , state (text) , country (text) , postalcode (text) , phone (text) , fax (text) , email (text) , supportrepid (number) | employee : employeeid (number) , lastname (text) , firstname (text) , title (text) , reportsto (number) , birthdate (time) , hiredate (time) , address (text) , city (text) , state (text) , country (text) , postalcode (text) , phone (text) , fax (text) , email (text) | genre : genreid (number) , name (text) | invoice : invoiceid (number) , customerid (number) , invoicedate (time) , billingaddress (text) , billingcity (text) , billingstate (text) , billingcountry (text) , billingpostalcode (text) , total (number) | invoiceline : invoicelineid (number) , invoiceid (number) , trackid (number) , unitprice (number) , quantity (number) | mediatype : mediatypeid (number) , name (text) | playlist : playlistid (number) , name (text) | playlisttrack : playlistid (number) , trackid (number) | track : trackid (number) , name (text) , albumid (number) , mediatypeid (number) , genreid (number) , composer (text) , milliseconds (number) , bytes (number) , unitprice (number)

artist : name (text) , artistid (number) | genre : name (text) , genreid (number) | mediatype : name (text) , mediatypeid (number) | playlist : name (text) , playlistid (number) | track : name (text) , trackid (number)


Question: Find all the customer information in state NY.

album : albumid (number) , title (text) , artistid (number) | artist : artistid (number) , name (text) | customer : customerid (number) , firstname (text) , lastname (text) , company (text) , address (text) , city (text) , state (text) , country (text) , postalcode (text) , phone (text) , fax (text) , email (text) , supportrepid (number) | employee : employeeid (number) , lastname (text) , firstname (text) , title (text) , reportsto (number) , birthdate (time) , hiredate (time) , address (text) , city (text) , state (text) , country (text) , postalcode (text) , phone (text) , fax (text) , email (text) | genre : genreid (number) , name (text) | invoice : invoiceid (number) , customerid (number) , invoicedate (time) , billingaddress (text) , billingcity (text) , billingstate (text) , billingcountry (text) , billingpostalcode (text) , total (number) | invoiceline : invoicelineid (number) , invoiceid (number) , trackid (number) , unitprice (number) , quantity (number) | mediatype : mediatypeid (number) , name (text) | playlist : playlistid (number) , name (text) | playlisttrack : playlistid (number) , trackid (number) | track : trackid (number) , name (text) , albumid (number) , mediatypeid (number) , genreid (number) , composer (text) , milliseconds (number) , bytes (number) , unitprice (number)

customer : state (text) , customerid (number) | employee : state (text) , employeeid (number)


Question: What is all the customer information for customers in NY state?

album : albumid (number) , title (text) , artistid (number) | artist : artistid (number) , name (text) | customer : customerid (number) , firstname (text) , lastname (text) , company (text) , address (text) , city (text) , state (text) , country (text) , postalcode (text) , phone (text) , fax (text) , email (text) , supportrepid (number) | employee : employeeid (number) , lastname (text) , firstname (text) , title (text) , reportsto (number) , birthdate (time) , hiredate (time) , address (text) , city (text) , state (text) , country (text) , postalcode (text) , phone (text) , fax (text) , email (text) | genre : genreid (number) , name (text) | invoice : invoiceid (number) , customerid (number) , invoicedate (time) , billingaddress (text) , billingcity (text) , billingstate (text) , billingcountry (text) , billingpostalcode (text) , total (number) | invoiceline : invoicelineid (number) , invoiceid (number) , trackid (number) , unitprice (number) , quantity (number) | mediatype : mediatypeid (number) , name (text) | playlist : playlistid (number) , name (text) | playlisttrack : playlistid (number) , trackid (number) | track : trackid (number) , name (text) , albumid (number) , mediatypeid (number) , genreid (number) , composer (text) , milliseconds (number) , bytes (number) , unitprice (number)

customer : state (text) , customerid (number) | employee : state (text) , employeeid (number)


Question: What are the first names and last names of the employees who live in Calgary city.

album : albumid (number) , title (text) , artistid (number) | artist : artistid (number) , name (text) | customer : customerid (number) , firstname (text) , lastname (text) , company (text) , address (text) , city (text) , state (text) , country (text) , postalcode (text) , phone (text) , fax (text) , email (text) , supportrepid (number) | employee : employeeid (number) , lastname (text) , firstname (text) , title (text) , reportsto (number) , birthdate (time) , hiredate (time) , address (text) , city (text) , state (text) , country (text) , postalcode (text) , phone (text) , fax (text) , email (text) | genre : genreid (number) , name (text) | invoice : invoiceid (number) , customerid (number) , invoicedate (time) , billingaddress (text) , billingcity (text) , billingstate (text) , billingcountry (text) , billingpostalcode (text) , total (number) | invoiceline : invoicelineid (number) , invoiceid (number) , trackid (number) , unitprice (number) , quantity (number) | mediatype : mediatypeid (number) , name (text) | playlist : playlistid (number) , name (text) | playlisttrack : playlistid (number) , trackid (number) | track : trackid (number) , name (text) , albumid (number) , mediatypeid (number) , genreid (number) , composer (text) , milliseconds (number) , bytes (number) , unitprice (number)

customer : firstname (text) , lastname (text) , city (text) , customerid (number) | employee : firstname (text) , lastname (text) , city (text) , employeeid (number)


Question: Find the full names of employees living in the city of Calgary.

album : albumid (number) , title (text) , artistid (number) | artist : artistid (number) , name (text) | customer : customerid (number) , firstname (text) , lastname (text) , company (text) , address (text) , city (text) , state (text) , country (text) , postalcode (text) , phone (text) , fax (text) , email (text) , supportrepid (number) | employee : employeeid (number) , lastname (text) , firstname (text) , title (text) , reportsto (number) , birthdate (time) , hiredate (time) , address (text) , city (text) , state (text) , country (text) , postalcode (text) , phone (text) , fax (text) , email (text) | genre : genreid (number) , name (text) | invoice : invoiceid (number) , customerid (number) , invoicedate (time) , billingaddress (text) , billingcity (text) , billingstate (text) , billingcountry (text) , billingpostalcode (text) , total (number) | invoiceline : invoicelineid (number) , invoiceid (number) , trackid (number) , unitprice (number) , quantity (number) | mediatype : mediatypeid (number) , name (text) | playlist : playlistid (number) , name (text) | playlisttrack : playlistid (number) , trackid (number) | track : trackid (number) , name (text) , albumid (number) , mediatypeid (number) , genreid (number) , composer (text) , milliseconds (number) , bytes (number) , unitprice (number)

customer : firstname (text) , lastname (text) , city (text) , customerid (number) | employee : firstname (text) , lastname (text) , city (text) , employeeid (number)


Question: What are the distinct billing countries of the invoices?

album : albumid (number) , title (text) , artistid (number) | artist : artistid (number) , name (text) | customer : customerid (number) , firstname (text) , lastname (text) , company (text) , address (text) , city (text) , state (text) , country (text) , postalcode (text) , phone (text) , fax (text) , email (text) , supportrepid (number) | employee : employeeid (number) , lastname (text) , firstname (text) , title (text) , reportsto (number) , birthdate (time) , hiredate (time) , address (text) , city (text) , state (text) , country (text) , postalcode (text) , phone (text) , fax (text) , email (text) | genre : genreid (number) , name (text) | invoice : invoiceid (number) , customerid (number) , invoicedate (time) , billingaddress (text) , billingcity (text) , billingstate (text) , billingcountry (text) , billingpostalcode (text) , total (number) | invoiceline : invoicelineid (number) , invoiceid (number) , trackid (number) , unitprice (number) , quantity (number) | mediatype : mediatypeid (number) , name (text) | playlist : playlistid (number) , name (text) | playlisttrack : playlistid (number) , trackid (number) | track : trackid (number) , name (text) , albumid (number) , mediatypeid (number) , genreid (number) , composer (text) , milliseconds (number) , bytes (number) , unitprice (number)

invoice : billingcountry (text) , invoiceid (number)


Question: Find the different billing countries for all invoices.

album : albumid (number) , title (text) , artistid (number) | artist : artistid (number) , name (text) | customer : customerid (number) , firstname (text) , lastname (text) , company (text) , address (text) , city (text) , state (text) , country (text) , postalcode (text) , phone (text) , fax (text) , email (text) , supportrepid (number) | employee : employeeid (number) , lastname (text) , firstname (text) , title (text) , reportsto (number) , birthdate (time) , hiredate (time) , address (text) , city (text) , state (text) , country (text) , postalcode (text) , phone (text) , fax (text) , email (text) | genre : genreid (number) , name (text) | invoice : invoiceid (number) , customerid (number) , invoicedate (time) , billingaddress (text) , billingcity (text) , billingstate (text) , billingcountry (text) , billingpostalcode (text) , total (number) | invoiceline : invoicelineid (number) , invoiceid (number) , trackid (number) , unitprice (number) , quantity (number) | mediatype : mediatypeid (number) , name (text) | playlist : playlistid (number) , name (text) | playlisttrack : playlistid (number) , trackid (number) | track : trackid (number) , name (text) , albumid (number) , mediatypeid (number) , genreid (number) , composer (text) , milliseconds (number) , bytes (number) , unitprice (number)

invoice : billingcountry (text) , invoiceid (number)


Question: Find the names of all artists that have "a" in their names.

album : albumid (number) , title (text) , artistid (number) | artist : artistid (number) , name (text) | customer : customerid (number) , firstname (text) , lastname (text) , company (text) , address (text) , city (text) , state (text) , country (text) , postalcode (text) , phone (text) , fax (text) , email (text) , supportrepid (number) | employee : employeeid (number) , lastname (text) , firstname (text) , title (text) , reportsto (number) , birthdate (time) , hiredate (time) , address (text) , city (text) , state (text) , country (text) , postalcode (text) , phone (text) , fax (text) , email (text) | genre : genreid (number) , name (text) | invoice : invoiceid (number) , customerid (number) , invoicedate (time) , billingaddress (text) , billingcity (text) , billingstate (text) , billingcountry (text) , billingpostalcode (text) , total (number) | invoiceline : invoicelineid (number) , invoiceid (number) , trackid (number) , unitprice (number) , quantity (number) | mediatype : mediatypeid (number) , name (text) | playlist : playlistid (number) , name (text) | playlisttrack : playlistid (number) , trackid (number) | track : trackid (number) , name (text) , albumid (number) , mediatypeid (number) , genreid (number) , composer (text) , milliseconds (number) , bytes (number) , unitprice (number)

artist : name (text) , artistid (number) | genre : name (text) , genreid (number) | mediatype : name (text) , mediatypeid (number) | playlist : name (text) , playlistid (number) | track : name (text) , trackid (number)


Question: What are the names of artist who have the letter 'a' in their names?

album : albumid (number) , title (text) , artistid (number) | artist : artistid (number) , name (text) | customer : customerid (number) , firstname (text) , lastname (text) , company (text) , address (text) , city (text) , state (text) , country (text) , postalcode (text) , phone (text) , fax (text) , email (text) , supportrepid (number) | employee : employeeid (number) , lastname (text) , firstname (text) , title (text) , reportsto (number) , birthdate (time) , hiredate (time) , address (text) , city (text) , state (text) , country (text) , postalcode (text) , phone (text) , fax (text) , email (text) | genre : genreid (number) , name (text) | invoice : invoiceid (number) , customerid (number) , invoicedate (time) , billingaddress (text) , billingcity (text) , billingstate (text) , billingcountry (text) , billingpostalcode (text) , total (number) | invoiceline : invoicelineid (number) , invoiceid (number) , trackid (number) , unitprice (number) , quantity (number) | mediatype : mediatypeid (number) , name (text) | playlist : playlistid (number) , name (text) | playlisttrack : playlistid (number) , trackid (number) | track : trackid (number) , name (text) , albumid (number) , mediatypeid (number) , genreid (number) , composer (text) , milliseconds (number) , bytes (number) , unitprice (number)

artist : name (text) , artistid (number) | genre : name (text) , genreid (number) | mediatype : name (text) , mediatypeid (number) | playlist : name (text) , playlistid (number) | track : name (text) , trackid (number)


Question: Find the title of all the albums of the artist "AC/DC".

album : albumid (number) , title (text) , artistid (number) | artist : artistid (number) , name (text) | customer : customerid (number) , firstname (text) , lastname (text) , company (text) , address (text) , city (text) , state (text) , country (text) , postalcode (text) , phone (text) , fax (text) , email (text) , supportrepid (number) | employee : employeeid (number) , lastname (text) , firstname (text) , title (text) , reportsto (number) , birthdate (time) , hiredate (time) , address (text) , city (text) , state (text) , country (text) , postalcode (text) , phone (text) , fax (text) , email (text) | genre : genreid (number) , name (text) | invoice : invoiceid (number) , customerid (number) , invoicedate (time) , billingaddress (text) , billingcity (text) , billingstate (text) , billingcountry (text) , billingpostalcode (text) , total (number) | invoiceline : invoicelineid (number) , invoiceid (number) , trackid (number) , unitprice (number) , quantity (number) | mediatype : mediatypeid (number) , name (text) | playlist : playlistid (number) , name (text) | playlisttrack : playlistid (number) , trackid (number) | track : trackid (number) , name (text) , albumid (number) , mediatypeid (number) , genreid (number) , composer (text) , milliseconds (number) , bytes (number) , unitprice (number)

album : title (text) , artistid (number) , albumid (number) | employee : title (text) , employeeid (number) | artist : artistid (number) , name (text) , artistid (number) | genre : name (text) , genreid (number) | mediatype : name (text) , mediatypeid (number) | playlist : name (text) , playlistid (number) | track : name (text) , trackid (number)


Question: What are the titles of albums by the artist "AC/DC"?

album : albumid (number) , title (text) , artistid (number) | artist : artistid (number) , name (text) | customer : customerid (number) , firstname (text) , lastname (text) , company (text) , address (text) , city (text) , state (text) , country (text) , postalcode (text) , phone (text) , fax (text) , email (text) , supportrepid (number) | employee : employeeid (number) , lastname (text) , firstname (text) , title (text) , reportsto (number) , birthdate (time) , hiredate (time) , address (text) , city (text) , state (text) , country (text) , postalcode (text) , phone (text) , fax (text) , email (text) | genre : genreid (number) , name (text) | invoice : invoiceid (number) , customerid (number) , invoicedate (time) , billingaddress (text) , billingcity (text) , billingstate (text) , billingcountry (text) , billingpostalcode (text) , total (number) | invoiceline : invoicelineid (number) , invoiceid (number) , trackid (number) , unitprice (number) , quantity (number) | mediatype : mediatypeid (number) , name (text) | playlist : playlistid (number) , name (text) | playlisttrack : playlistid (number) , trackid (number) | track : trackid (number) , name (text) , albumid (number) , mediatypeid (number) , genreid (number) , composer (text) , milliseconds (number) , bytes (number) , unitprice (number)

album : title (text) , artistid (number) , albumid (number) | employee : title (text) , employeeid (number) | artist : artistid (number) , name (text) , artistid (number) | genre : name (text) , genreid (number) | mediatype : name (text) , mediatypeid (number) | playlist : name (text) , playlistid (number) | track : name (text) , trackid (number)


Question: Hom many albums does the artist "Metallica" have?

album : albumid (number) , title (text) , artistid (number) | artist : artistid (number) , name (text) | customer : customerid (number) , firstname (text) , lastname (text) , company (text) , address (text) , city (text) , state (text) , country (text) , postalcode (text) , phone (text) , fax (text) , email (text) , supportrepid (number) | employee : employeeid (number) , lastname (text) , firstname (text) , title (text) , reportsto (number) , birthdate (time) , hiredate (time) , address (text) , city (text) , state (text) , country (text) , postalcode (text) , phone (text) , fax (text) , email (text) | genre : genreid (number) , name (text) | invoice : invoiceid (number) , customerid (number) , invoicedate (time) , billingaddress (text) , billingcity (text) , billingstate (text) , billingcountry (text) , billingpostalcode (text) , total (number) | invoiceline : invoicelineid (number) , invoiceid (number) , trackid (number) , unitprice (number) , quantity (number) | mediatype : mediatypeid (number) , name (text) | playlist : playlistid (number) , name (text) | playlisttrack : playlistid (number) , trackid (number) | track : trackid (number) , name (text) , albumid (number) , mediatypeid (number) , genreid (number) , composer (text) , milliseconds (number) , bytes (number) , unitprice (number)

album : artistid (number) , albumid (number) | artist : artistid (number) , name (text) , artistid (number) | genre : name (text) , genreid (number) | mediatype : name (text) , mediatypeid (number) | playlist : name (text) , playlistid (number) | track : name (text) , trackid (number)


Question: Find the number of albums by the artist "Metallica".

album : albumid (number) , title (text) , artistid (number) | artist : artistid (number) , name (text) | customer : customerid (number) , firstname (text) , lastname (text) , company (text) , address (text) , city (text) , state (text) , country (text) , postalcode (text) , phone (text) , fax (text) , email (text) , supportrepid (number) | employee : employeeid (number) , lastname (text) , firstname (text) , title (text) , reportsto (number) , birthdate (time) , hiredate (time) , address (text) , city (text) , state (text) , country (text) , postalcode (text) , phone (text) , fax (text) , email (text) | genre : genreid (number) , name (text) | invoice : invoiceid (number) , customerid (number) , invoicedate (time) , billingaddress (text) , billingcity (text) , billingstate (text) , billingcountry (text) , billingpostalcode (text) , total (number) | invoiceline : invoicelineid (number) , invoiceid (number) , trackid (number) , unitprice (number) , quantity (number) | mediatype : mediatypeid (number) , name (text) | playlist : playlistid (number) , name (text) | playlisttrack : playlistid (number) , trackid (number) | track : trackid (number) , name (text) , albumid (number) , mediatypeid (number) , genreid (number) , composer (text) , milliseconds (number) , bytes (number) , unitprice (number)

album : artistid (number) , albumid (number) | artist : artistid (number) , name (text) , artistid (number) | genre : name (text) , genreid (number) | mediatype : name (text) , mediatypeid (number) | playlist : name (text) , playlistid (number) | track : name (text) , trackid (number)


Question: Which artist does the album "Balls to the Wall" belong to?

album : albumid (number) , title (text) , artistid (number) | artist : artistid (number) , name (text) | customer : customerid (number) , firstname (text) , lastname (text) , company (text) , address (text) , city (text) , state (text) , country (text) , postalcode (text) , phone (text) , fax (text) , email (text) , supportrepid (number) | employee : employeeid (number) , lastname (text) , firstname (text) , title (text) , reportsto (number) , birthdate (time) , hiredate (time) , address (text) , city (text) , state (text) , country (text) , postalcode (text) , phone (text) , fax (text) , email (text) | genre : genreid (number) , name (text) | invoice : invoiceid (number) , customerid (number) , invoicedate (time) , billingaddress (text) , billingcity (text) , billingstate (text) , billingcountry (text) , billingpostalcode (text) , total (number) | invoiceline : invoicelineid (number) , invoiceid (number) , trackid (number) , unitprice (number) , quantity (number) | mediatype : mediatypeid (number) , name (text) | playlist : playlistid (number) , name (text) | playlisttrack : playlistid (number) , trackid (number) | track : trackid (number) , name (text) , albumid (number) , mediatypeid (number) , genreid (number) , composer (text) , milliseconds (number) , bytes (number) , unitprice (number)

artist : name (text) , artistid (number) , artistid (number) | genre : name (text) , genreid (number) | mediatype : name (text) , mediatypeid (number) | playlist : name (text) , playlistid (number) | track : name (text) , trackid (number) | album : artistid (number) , title (text) , albumid (number) | employee : title (text) , employeeid (number)


Question: Find the name of the artist who made the album "Balls to the Wall".

album : albumid (number) , title (text) , artistid (number) | artist : artistid (number) , name (text) | customer : customerid (number) , firstname (text) , lastname (text) , company (text) , address (text) , city (text) , state (text) , country (text) , postalcode (text) , phone (text) , fax (text) , email (text) , supportrepid (number) | employee : employeeid (number) , lastname (text) , firstname (text) , title (text) , reportsto (number) , birthdate (time) , hiredate (time) , address (text) , city (text) , state (text) , country (text) , postalcode (text) , phone (text) , fax (text) , email (text) | genre : genreid (number) , name (text) | invoice : invoiceid (number) , customerid (number) , invoicedate (time) , billingaddress (text) , billingcity (text) , billingstate (text) , billingcountry (text) , billingpostalcode (text) , total (number) | invoiceline : invoicelineid (number) , invoiceid (number) , trackid (number) , unitprice (number) , quantity (number) | mediatype : mediatypeid (number) , name (text) | playlist : playlistid (number) , name (text) | playlisttrack : playlistid (number) , trackid (number) | track : trackid (number) , name (text) , albumid (number) , mediatypeid (number) , genreid (number) , composer (text) , milliseconds (number) , bytes (number) , unitprice (number)

artist : name (text) , artistid (number) , artistid (number) | genre : name (text) , genreid (number) | mediatype : name (text) , mediatypeid (number) | playlist : name (text) , playlistid (number) | track : name (text) , trackid (number) | album : artistid (number) , title (text) , albumid (number) | employee : title (text) , employeeid (number)


Question: Which artist has the most albums?

album : albumid (number) , title (text) , artistid (number) | artist : artistid (number) , name (text) | customer : customerid (number) , firstname (text) , lastname (text) , company (text) , address (text) , city (text) , state (text) , country (text) , postalcode (text) , phone (text) , fax (text) , email (text) , supportrepid (number) | employee : employeeid (number) , lastname (text) , firstname (text) , title (text) , reportsto (number) , birthdate (time) , hiredate (time) , address (text) , city (text) , state (text) , country (text) , postalcode (text) , phone (text) , fax (text) , email (text) | genre : genreid (number) , name (text) | invoice : invoiceid (number) , customerid (number) , invoicedate (time) , billingaddress (text) , billingcity (text) , billingstate (text) , billingcountry (text) , billingpostalcode (text) , total (number) | invoiceline : invoicelineid (number) , invoiceid (number) , trackid (number) , unitprice (number) , quantity (number) | mediatype : mediatypeid (number) , name (text) | playlist : playlistid (number) , name (text) | playlisttrack : playlistid (number) , trackid (number) | track : trackid (number) , name (text) , albumid (number) , mediatypeid (number) , genreid (number) , composer (text) , milliseconds (number) , bytes (number) , unitprice (number)

artist : name (text) , artistid (number) , artistid (number) | genre : name (text) , genreid (number) | mediatype : name (text) , mediatypeid (number) | playlist : name (text) , playlistid (number) | track : name (text) , trackid (number) | album : artistid (number) , albumid (number)


Question: What is the name of the artist with the greatest number of albums?

album : albumid (number) , title (text) , artistid (number) | artist : artistid (number) , name (text) | customer : customerid (number) , firstname (text) , lastname (text) , company (text) , address (text) , city (text) , state (text) , country (text) , postalcode (text) , phone (text) , fax (text) , email (text) , supportrepid (number) | employee : employeeid (number) , lastname (text) , firstname (text) , title (text) , reportsto (number) , birthdate (time) , hiredate (time) , address (text) , city (text) , state (text) , country (text) , postalcode (text) , phone (text) , fax (text) , email (text) | genre : genreid (number) , name (text) | invoice : invoiceid (number) , customerid (number) , invoicedate (time) , billingaddress (text) , billingcity (text) , billingstate (text) , billingcountry (text) , billingpostalcode (text) , total (number) | invoiceline : invoicelineid (number) , invoiceid (number) , trackid (number) , unitprice (number) , quantity (number) | mediatype : mediatypeid (number) , name (text) | playlist : playlistid (number) , name (text) | playlisttrack : playlistid (number) , trackid (number) | track : trackid (number) , name (text) , albumid (number) , mediatypeid (number) , genreid (number) , composer (text) , milliseconds (number) , bytes (number) , unitprice (number)

artist : name (text) , artistid (number) , artistid (number) | genre : name (text) , genreid (number) | mediatype : name (text) , mediatypeid (number) | playlist : name (text) , playlistid (number) | track : name (text) , trackid (number) | album : artistid (number) , albumid (number)


Question: Find the names of all the tracks that contain the word "you".

album : albumid (number) , title (text) , artistid (number) | artist : artistid (number) , name (text) | customer : customerid (number) , firstname (text) , lastname (text) , company (text) , address (text) , city (text) , state (text) , country (text) , postalcode (text) , phone (text) , fax (text) , email (text) , supportrepid (number) | employee : employeeid (number) , lastname (text) , firstname (text) , title (text) , reportsto (number) , birthdate (time) , hiredate (time) , address (text) , city (text) , state (text) , country (text) , postalcode (text) , phone (text) , fax (text) , email (text) | genre : genreid (number) , name (text) | invoice : invoiceid (number) , customerid (number) , invoicedate (time) , billingaddress (text) , billingcity (text) , billingstate (text) , billingcountry (text) , billingpostalcode (text) , total (number) | invoiceline : invoicelineid (number) , invoiceid (number) , trackid (number) , unitprice (number) , quantity (number) | mediatype : mediatypeid (number) , name (text) | playlist : playlistid (number) , name (text) | playlisttrack : playlistid (number) , trackid (number) | track : trackid (number) , name (text) , albumid (number) , mediatypeid (number) , genreid (number) , composer (text) , milliseconds (number) , bytes (number) , unitprice (number)

artist : name (text) , artistid (number) | genre : name (text) , genreid (number) | mediatype : name (text) , mediatypeid (number) | playlist : name (text) , playlistid (number) | track : name (text) , trackid (number)


Question: What are the names of tracks that contain the the word you in them?

album : albumid (number) , title (text) , artistid (number) | artist : artistid (number) , name (text) | customer : customerid (number) , firstname (text) , lastname (text) , company (text) , address (text) , city (text) , state (text) , country (text) , postalcode (text) , phone (text) , fax (text) , email (text) , supportrepid (number) | employee : employeeid (number) , lastname (text) , firstname (text) , title (text) , reportsto (number) , birthdate (time) , hiredate (time) , address (text) , city (text) , state (text) , country (text) , postalcode (text) , phone (text) , fax (text) , email (text) | genre : genreid (number) , name (text) | invoice : invoiceid (number) , customerid (number) , invoicedate (time) , billingaddress (text) , billingcity (text) , billingstate (text) , billingcountry (text) , billingpostalcode (text) , total (number) | invoiceline : invoicelineid (number) , invoiceid (number) , trackid (number) , unitprice (number) , quantity (number) | mediatype : mediatypeid (number) , name (text) | playlist : playlistid (number) , name (text) | playlisttrack : playlistid (number) , trackid (number) | track : trackid (number) , name (text) , albumid (number) , mediatypeid (number) , genreid (number) , composer (text) , milliseconds (number) , bytes (number) , unitprice (number)

artist : name (text) , artistid (number) | genre : name (text) , genreid (number) | mediatype : name (text) , mediatypeid (number) | playlist : name (text) , playlistid (number) | track : name (text) , trackid (number)


Question: What is the average unit price of all the tracks?

album : albumid (number) , title (text) , artistid (number) | artist : artistid (number) , name (text) | customer : customerid (number) , firstname (text) , lastname (text) , company (text) , address (text) , city (text) , state (text) , country (text) , postalcode (text) , phone (text) , fax (text) , email (text) , supportrepid (number) | employee : employeeid (number) , lastname (text) , firstname (text) , title (text) , reportsto (number) , birthdate (time) , hiredate (time) , address (text) , city (text) , state (text) , country (text) , postalcode (text) , phone (text) , fax (text) , email (text) | genre : genreid (number) , name (text) | invoice : invoiceid (number) , customerid (number) , invoicedate (time) , billingaddress (text) , billingcity (text) , billingstate (text) , billingcountry (text) , billingpostalcode (text) , total (number) | invoiceline : invoicelineid (number) , invoiceid (number) , trackid (number) , unitprice (number) , quantity (number) | mediatype : mediatypeid (number) , name (text) | playlist : playlistid (number) , name (text) | playlisttrack : playlistid (number) , trackid (number) | track : trackid (number) , name (text) , albumid (number) , mediatypeid (number) , genreid (number) , composer (text) , milliseconds (number) , bytes (number) , unitprice (number)

invoiceline : unitprice (number) , invoicelineid (number) | track : unitprice (number) , trackid (number)


Question: Find the average unit price for a track.

album : albumid (number) , title (text) , artistid (number) | artist : artistid (number) , name (text) | customer : customerid (number) , firstname (text) , lastname (text) , company (text) , address (text) , city (text) , state (text) , country (text) , postalcode (text) , phone (text) , fax (text) , email (text) , supportrepid (number) | employee : employeeid (number) , lastname (text) , firstname (text) , title (text) , reportsto (number) , birthdate (time) , hiredate (time) , address (text) , city (text) , state (text) , country (text) , postalcode (text) , phone (text) , fax (text) , email (text) | genre : genreid (number) , name (text) | invoice : invoiceid (number) , customerid (number) , invoicedate (time) , billingaddress (text) , billingcity (text) , billingstate (text) , billingcountry (text) , billingpostalcode (text) , total (number) | invoiceline : invoicelineid (number) , invoiceid (number) , trackid (number) , unitprice (number) , quantity (number) | mediatype : mediatypeid (number) , name (text) | playlist : playlistid (number) , name (text) | playlisttrack : playlistid (number) , trackid (number) | track : trackid (number) , name (text) , albumid (number) , mediatypeid (number) , genreid (number) , composer (text) , milliseconds (number) , bytes (number) , unitprice (number)

invoiceline : unitprice (number) , invoicelineid (number) | track : unitprice (number) , trackid (number)


Question: What are the durations of the longest and the shortest tracks in milliseconds?

album : albumid (number) , title (text) , artistid (number) | artist : artistid (number) , name (text) | customer : customerid (number) , firstname (text) , lastname (text) , company (text) , address (text) , city (text) , state (text) , country (text) , postalcode (text) , phone (text) , fax (text) , email (text) , supportrepid (number) | employee : employeeid (number) , lastname (text) , firstname (text) , title (text) , reportsto (number) , birthdate (time) , hiredate (time) , address (text) , city (text) , state (text) , country (text) , postalcode (text) , phone (text) , fax (text) , email (text) | genre : genreid (number) , name (text) | invoice : invoiceid (number) , customerid (number) , invoicedate (time) , billingaddress (text) , billingcity (text) , billingstate (text) , billingcountry (text) , billingpostalcode (text) , total (number) | invoiceline : invoicelineid (number) , invoiceid (number) , trackid (number) , unitprice (number) , quantity (number) | mediatype : mediatypeid (number) , name (text) | playlist : playlistid (number) , name (text) | playlisttrack : playlistid (number) , trackid (number) | track : trackid (number) , name (text) , albumid (number) , mediatypeid (number) , genreid (number) , composer (text) , milliseconds (number) , bytes (number) , unitprice (number)

track : milliseconds (number) , trackid (number)


Question: Find the maximum and minimum durations of tracks in milliseconds.

album : albumid (number) , title (text) , artistid (number) | artist : artistid (number) , name (text) | customer : customerid (number) , firstname (text) , lastname (text) , company (text) , address (text) , city (text) , state (text) , country (text) , postalcode (text) , phone (text) , fax (text) , email (text) , supportrepid (number) | employee : employeeid (number) , lastname (text) , firstname (text) , title (text) , reportsto (number) , birthdate (time) , hiredate (time) , address (text) , city (text) , state (text) , country (text) , postalcode (text) , phone (text) , fax (text) , email (text) | genre : genreid (number) , name (text) | invoice : invoiceid (number) , customerid (number) , invoicedate (time) , billingaddress (text) , billingcity (text) , billingstate (text) , billingcountry (text) , billingpostalcode (text) , total (number) | invoiceline : invoicelineid (number) , invoiceid (number) , trackid (number) , unitprice (number) , quantity (number) | mediatype : mediatypeid (number) , name (text) | playlist : playlistid (number) , name (text) | playlisttrack : playlistid (number) , trackid (number) | track : trackid (number) , name (text) , albumid (number) , mediatypeid (number) , genreid (number) , composer (text) , milliseconds (number) , bytes (number) , unitprice (number)

track : milliseconds (number) , trackid (number)


Question: Show the album names, ids and the number of tracks for each album.

album : albumid (number) , title (text) , artistid (number) | artist : artistid (number) , name (text) | customer : customerid (number) , firstname (text) , lastname (text) , company (text) , address (text) , city (text) , state (text) , country (text) , postalcode (text) , phone (text) , fax (text) , email (text) , supportrepid (number) | employee : employeeid (number) , lastname (text) , firstname (text) , title (text) , reportsto (number) , birthdate (time) , hiredate (time) , address (text) , city (text) , state (text) , country (text) , postalcode (text) , phone (text) , fax (text) , email (text) | genre : genreid (number) , name (text) | invoice : invoiceid (number) , customerid (number) , invoicedate (time) , billingaddress (text) , billingcity (text) , billingstate (text) , billingcountry (text) , billingpostalcode (text) , total (number) | invoiceline : invoicelineid (number) , invoiceid (number) , trackid (number) , unitprice (number) , quantity (number) | mediatype : mediatypeid (number) , name (text) | playlist : playlistid (number) , name (text) | playlisttrack : playlistid (number) , trackid (number) | track : trackid (number) , name (text) , albumid (number) , mediatypeid (number) , genreid (number) , composer (text) , milliseconds (number) , bytes (number) , unitprice (number)

album : title (text) , albumid (number) , albumid (number) | employee : title (text) , employeeid (number) | track : albumid (number) , trackid (number)


Question: What are the names and ids of the different albums, and how many tracks are on each?

album : albumid (number) , title (text) , artistid (number) | artist : artistid (number) , name (text) | customer : customerid (number) , firstname (text) , lastname (text) , company (text) , address (text) , city (text) , state (text) , country (text) , postalcode (text) , phone (text) , fax (text) , email (text) , supportrepid (number) | employee : employeeid (number) , lastname (text) , firstname (text) , title (text) , reportsto (number) , birthdate (time) , hiredate (time) , address (text) , city (text) , state (text) , country (text) , postalcode (text) , phone (text) , fax (text) , email (text) | genre : genreid (number) , name (text) | invoice : invoiceid (number) , customerid (number) , invoicedate (time) , billingaddress (text) , billingcity (text) , billingstate (text) , billingcountry (text) , billingpostalcode (text) , total (number) | invoiceline : invoicelineid (number) , invoiceid (number) , trackid (number) , unitprice (number) , quantity (number) | mediatype : mediatypeid (number) , name (text) | playlist : playlistid (number) , name (text) | playlisttrack : playlistid (number) , trackid (number) | track : trackid (number) , name (text) , albumid (number) , mediatypeid (number) , genreid (number) , composer (text) , milliseconds (number) , bytes (number) , unitprice (number)

album : title (text) , albumid (number) , albumid (number) | employee : title (text) , employeeid (number) | track : albumid (number) , trackid (number)


Question: What is the name of the most common genre in all tracks?

album : albumid (number) , title (text) , artistid (number) | artist : artistid (number) , name (text) | customer : customerid (number) , firstname (text) , lastname (text) , company (text) , address (text) , city (text) , state (text) , country (text) , postalcode (text) , phone (text) , fax (text) , email (text) , supportrepid (number) | employee : employeeid (number) , lastname (text) , firstname (text) , title (text) , reportsto (number) , birthdate (time) , hiredate (time) , address (text) , city (text) , state (text) , country (text) , postalcode (text) , phone (text) , fax (text) , email (text) | genre : genreid (number) , name (text) | invoice : invoiceid (number) , customerid (number) , invoicedate (time) , billingaddress (text) , billingcity (text) , billingstate (text) , billingcountry (text) , billingpostalcode (text) , total (number) | invoiceline : invoicelineid (number) , invoiceid (number) , trackid (number) , unitprice (number) , quantity (number) | mediatype : mediatypeid (number) , name (text) | playlist : playlistid (number) , name (text) | playlisttrack : playlistid (number) , trackid (number) | track : trackid (number) , name (text) , albumid (number) , mediatypeid (number) , genreid (number) , composer (text) , milliseconds (number) , bytes (number) , unitprice (number)

artist : name (text) , artistid (number) | genre : name (text) , genreid (number) , genreid (number) | mediatype : name (text) , mediatypeid (number) | playlist : name (text) , playlistid (number) | track : name (text) , genreid (number) , trackid (number)


Question: Find the name of the genre that is most frequent across all tracks.

album : albumid (number) , title (text) , artistid (number) | artist : artistid (number) , name (text) | customer : customerid (number) , firstname (text) , lastname (text) , company (text) , address (text) , city (text) , state (text) , country (text) , postalcode (text) , phone (text) , fax (text) , email (text) , supportrepid (number) | employee : employeeid (number) , lastname (text) , firstname (text) , title (text) , reportsto (number) , birthdate (time) , hiredate (time) , address (text) , city (text) , state (text) , country (text) , postalcode (text) , phone (text) , fax (text) , email (text) | genre : genreid (number) , name (text) | invoice : invoiceid (number) , customerid (number) , invoicedate (time) , billingaddress (text) , billingcity (text) , billingstate (text) , billingcountry (text) , billingpostalcode (text) , total (number) | invoiceline : invoicelineid (number) , invoiceid (number) , trackid (number) , unitprice (number) , quantity (number) | mediatype : mediatypeid (number) , name (text) | playlist : playlistid (number) , name (text) | playlisttrack : playlistid (number) , trackid (number) | track : trackid (number) , name (text) , albumid (number) , mediatypeid (number) , genreid (number) , composer (text) , milliseconds (number) , bytes (number) , unitprice (number)

artist : name (text) , artistid (number) | genre : name (text) , genreid (number) , genreid (number) | mediatype : name (text) , mediatypeid (number) | playlist : name (text) , playlistid (number) | track : name (text) , genreid (number) , trackid (number)


Question: What is the least common media type in all tracks?

album : albumid (number) , title (text) , artistid (number) | artist : artistid (number) , name (text) | customer : customerid (number) , firstname (text) , lastname (text) , company (text) , address (text) , city (text) , state (text) , country (text) , postalcode (text) , phone (text) , fax (text) , email (text) , supportrepid (number) | employee : employeeid (number) , lastname (text) , firstname (text) , title (text) , reportsto (number) , birthdate (time) , hiredate (time) , address (text) , city (text) , state (text) , country (text) , postalcode (text) , phone (text) , fax (text) , email (text) | genre : genreid (number) , name (text) | invoice : invoiceid (number) , customerid (number) , invoicedate (time) , billingaddress (text) , billingcity (text) , billingstate (text) , billingcountry (text) , billingpostalcode (text) , total (number) | invoiceline : invoicelineid (number) , invoiceid (number) , trackid (number) , unitprice (number) , quantity (number) | mediatype : mediatypeid (number) , name (text) | playlist : playlistid (number) , name (text) | playlisttrack : playlistid (number) , trackid (number) | track : trackid (number) , name (text) , albumid (number) , mediatypeid (number) , genreid (number) , composer (text) , milliseconds (number) , bytes (number) , unitprice (number)

artist : name (text) , artistid (number) | genre : name (text) , genreid (number) | mediatype : name (text) , mediatypeid (number) , mediatypeid (number) | playlist : name (text) , playlistid (number) | track : name (text) , mediatypeid (number) , trackid (number)


Question: What is the name of the media type that is least common across all tracks?

album : albumid (number) , title (text) , artistid (number) | artist : artistid (number) , name (text) | customer : customerid (number) , firstname (text) , lastname (text) , company (text) , address (text) , city (text) , state (text) , country (text) , postalcode (text) , phone (text) , fax (text) , email (text) , supportrepid (number) | employee : employeeid (number) , lastname (text) , firstname (text) , title (text) , reportsto (number) , birthdate (time) , hiredate (time) , address (text) , city (text) , state (text) , country (text) , postalcode (text) , phone (text) , fax (text) , email (text) | genre : genreid (number) , name (text) | invoice : invoiceid (number) , customerid (number) , invoicedate (time) , billingaddress (text) , billingcity (text) , billingstate (text) , billingcountry (text) , billingpostalcode (text) , total (number) | invoiceline : invoicelineid (number) , invoiceid (number) , trackid (number) , unitprice (number) , quantity (number) | mediatype : mediatypeid (number) , name (text) | playlist : playlistid (number) , name (text) | playlisttrack : playlistid (number) , trackid (number) | track : trackid (number) , name (text) , albumid (number) , mediatypeid (number) , genreid (number) , composer (text) , milliseconds (number) , bytes (number) , unitprice (number)

artist : name (text) , artistid (number) | genre : name (text) , genreid (number) | mediatype : name (text) , mediatypeid (number) , mediatypeid (number) | playlist : name (text) , playlistid (number) | track : name (text) , mediatypeid (number) , trackid (number)


Question: Show the album names and ids for albums that contain tracks with unit price bigger than 1.

album : albumid (number) , title (text) , artistid (number) | artist : artistid (number) , name (text) | customer : customerid (number) , firstname (text) , lastname (text) , company (text) , address (text) , city (text) , state (text) , country (text) , postalcode (text) , phone (text) , fax (text) , email (text) , supportrepid (number) | employee : employeeid (number) , lastname (text) , firstname (text) , title (text) , reportsto (number) , birthdate (time) , hiredate (time) , address (text) , city (text) , state (text) , country (text) , postalcode (text) , phone (text) , fax (text) , email (text) | genre : genreid (number) , name (text) | invoice : invoiceid (number) , customerid (number) , invoicedate (time) , billingaddress (text) , billingcity (text) , billingstate (text) , billingcountry (text) , billingpostalcode (text) , total (number) | invoiceline : invoicelineid (number) , invoiceid (number) , trackid (number) , unitprice (number) , quantity (number) | mediatype : mediatypeid (number) , name (text) | playlist : playlistid (number) , name (text) | playlisttrack : playlistid (number) , trackid (number) | track : trackid (number) , name (text) , albumid (number) , mediatypeid (number) , genreid (number) , composer (text) , milliseconds (number) , bytes (number) , unitprice (number)

album : title (text) , albumid (number) , albumid (number) | employee : title (text) , employeeid (number) | track : albumid (number) , unitprice (number) , trackid (number) | invoiceline : unitprice (number) , invoicelineid (number)


Question: What are the titles and ids for albums containing tracks with unit price greater than 1?

album : albumid (number) , title (text) , artistid (number) | artist : artistid (number) , name (text) | customer : customerid (number) , firstname (text) , lastname (text) , company (text) , address (text) , city (text) , state (text) , country (text) , postalcode (text) , phone (text) , fax (text) , email (text) , supportrepid (number) | employee : employeeid (number) , lastname (text) , firstname (text) , title (text) , reportsto (number) , birthdate (time) , hiredate (time) , address (text) , city (text) , state (text) , country (text) , postalcode (text) , phone (text) , fax (text) , email (text) | genre : genreid (number) , name (text) | invoice : invoiceid (number) , customerid (number) , invoicedate (time) , billingaddress (text) , billingcity (text) , billingstate (text) , billingcountry (text) , billingpostalcode (text) , total (number) | invoiceline : invoicelineid (number) , invoiceid (number) , trackid (number) , unitprice (number) , quantity (number) | mediatype : mediatypeid (number) , name (text) | playlist : playlistid (number) , name (text) | playlisttrack : playlistid (number) , trackid (number) | track : trackid (number) , name (text) , albumid (number) , mediatypeid (number) , genreid (number) , composer (text) , milliseconds (number) , bytes (number) , unitprice (number)

album : title (text) , albumid (number) , albumid (number) | employee : title (text) , employeeid (number) | track : albumid (number) , unitprice (number) , trackid (number) | invoiceline : unitprice (number) , invoicelineid (number)


Question: How many tracks belong to rock genre?

album : albumid (number) , title (text) , artistid (number) | artist : artistid (number) , name (text) | customer : customerid (number) , firstname (text) , lastname (text) , company (text) , address (text) , city (text) , state (text) , country (text) , postalcode (text) , phone (text) , fax (text) , email (text) , supportrepid (number) | employee : employeeid (number) , lastname (text) , firstname (text) , title (text) , reportsto (number) , birthdate (time) , hiredate (time) , address (text) , city (text) , state (text) , country (text) , postalcode (text) , phone (text) , fax (text) , email (text) | genre : genreid (number) , name (text) | invoice : invoiceid (number) , customerid (number) , invoicedate (time) , billingaddress (text) , billingcity (text) , billingstate (text) , billingcountry (text) , billingpostalcode (text) , total (number) | invoiceline : invoicelineid (number) , invoiceid (number) , trackid (number) , unitprice (number) , quantity (number) | mediatype : mediatypeid (number) , name (text) | playlist : playlistid (number) , name (text) | playlisttrack : playlistid (number) , trackid (number) | track : trackid (number) , name (text) , albumid (number) , mediatypeid (number) , genreid (number) , composer (text) , milliseconds (number) , bytes (number) , unitprice (number)

genre : genreid (number) , name (text) , genreid (number) | track : genreid (number) , name (text) , trackid (number) | artist : name (text) , artistid (number) | mediatype : name (text) , mediatypeid (number) | playlist : name (text) , playlistid (number)


Question: Count the number of tracks that are part of the rock genre.

album : albumid (number) , title (text) , artistid (number) | artist : artistid (number) , name (text) | customer : customerid (number) , firstname (text) , lastname (text) , company (text) , address (text) , city (text) , state (text) , country (text) , postalcode (text) , phone (text) , fax (text) , email (text) , supportrepid (number) | employee : employeeid (number) , lastname (text) , firstname (text) , title (text) , reportsto (number) , birthdate (time) , hiredate (time) , address (text) , city (text) , state (text) , country (text) , postalcode (text) , phone (text) , fax (text) , email (text) | genre : genreid (number) , name (text) | invoice : invoiceid (number) , customerid (number) , invoicedate (time) , billingaddress (text) , billingcity (text) , billingstate (text) , billingcountry (text) , billingpostalcode (text) , total (number) | invoiceline : invoicelineid (number) , invoiceid (number) , trackid (number) , unitprice (number) , quantity (number) | mediatype : mediatypeid (number) , name (text) | playlist : playlistid (number) , name (text) | playlisttrack : playlistid (number) , trackid (number) | track : trackid (number) , name (text) , albumid (number) , mediatypeid (number) , genreid (number) , composer (text) , milliseconds (number) , bytes (number) , unitprice (number)

genre : genreid (number) , name (text) , genreid (number) | track : genreid (number) , name (text) , trackid (number) | artist : name (text) , artistid (number) | mediatype : name (text) , mediatypeid (number) | playlist : name (text) , playlistid (number)


Question: What is the average unit price of tracks that belong to Jazz genre?

album : albumid (number) , title (text) , artistid (number) | artist : artistid (number) , name (text) | customer : customerid (number) , firstname (text) , lastname (text) , company (text) , address (text) , city (text) , state (text) , country (text) , postalcode (text) , phone (text) , fax (text) , email (text) , supportrepid (number) | employee : employeeid (number) , lastname (text) , firstname (text) , title (text) , reportsto (number) , birthdate (time) , hiredate (time) , address (text) , city (text) , state (text) , country (text) , postalcode (text) , phone (text) , fax (text) , email (text) | genre : genreid (number) , name (text) | invoice : invoiceid (number) , customerid (number) , invoicedate (time) , billingaddress (text) , billingcity (text) , billingstate (text) , billingcountry (text) , billingpostalcode (text) , total (number) | invoiceline : invoicelineid (number) , invoiceid (number) , trackid (number) , unitprice (number) , quantity (number) | mediatype : mediatypeid (number) , name (text) | playlist : playlistid (number) , name (text) | playlisttrack : playlistid (number) , trackid (number) | track : trackid (number) , name (text) , albumid (number) , mediatypeid (number) , genreid (number) , composer (text) , milliseconds (number) , bytes (number) , unitprice (number)

invoiceline : unitprice (number) , invoicelineid (number) | track : unitprice (number) , genreid (number) , name (text) , trackid (number) | genre : genreid (number) , name (text) , genreid (number) | artist : name (text) , artistid (number) | mediatype : name (text) , mediatypeid (number) | playlist : name (text) , playlistid (number)


Question: Find the average unit price of jazz tracks.

album : albumid (number) , title (text) , artistid (number) | artist : artistid (number) , name (text) | customer : customerid (number) , firstname (text) , lastname (text) , company (text) , address (text) , city (text) , state (text) , country (text) , postalcode (text) , phone (text) , fax (text) , email (text) , supportrepid (number) | employee : employeeid (number) , lastname (text) , firstname (text) , title (text) , reportsto (number) , birthdate (time) , hiredate (time) , address (text) , city (text) , state (text) , country (text) , postalcode (text) , phone (text) , fax (text) , email (text) | genre : genreid (number) , name (text) | invoice : invoiceid (number) , customerid (number) , invoicedate (time) , billingaddress (text) , billingcity (text) , billingstate (text) , billingcountry (text) , billingpostalcode (text) , total (number) | invoiceline : invoicelineid (number) , invoiceid (number) , trackid (number) , unitprice (number) , quantity (number) | mediatype : mediatypeid (number) , name (text) | playlist : playlistid (number) , name (text) | playlisttrack : playlistid (number) , trackid (number) | track : trackid (number) , name (text) , albumid (number) , mediatypeid (number) , genreid (number) , composer (text) , milliseconds (number) , bytes (number) , unitprice (number)

invoiceline : unitprice (number) , invoicelineid (number) | track : unitprice (number) , genreid (number) , name (text) , trackid (number) | genre : genreid (number) , name (text) , genreid (number) | artist : name (text) , artistid (number) | mediatype : name (text) , mediatypeid (number) | playlist : name (text) , playlistid (number)


Question: What is the first name and last name of the customer that has email "luisg@embraer.com.br"?

album : albumid (number) , title (text) , artistid (number) | artist : artistid (number) , name (text) | customer : customerid (number) , firstname (text) , lastname (text) , company (text) , address (text) , city (text) , state (text) , country (text) , postalcode (text) , phone (text) , fax (text) , email (text) , supportrepid (number) | employee : employeeid (number) , lastname (text) , firstname (text) , title (text) , reportsto (number) , birthdate (time) , hiredate (time) , address (text) , city (text) , state (text) , country (text) , postalcode (text) , phone (text) , fax (text) , email (text) | genre : genreid (number) , name (text) | invoice : invoiceid (number) , customerid (number) , invoicedate (time) , billingaddress (text) , billingcity (text) , billingstate (text) , billingcountry (text) , billingpostalcode (text) , total (number) | invoiceline : invoicelineid (number) , invoiceid (number) , trackid (number) , unitprice (number) , quantity (number) | mediatype : mediatypeid (number) , name (text) | playlist : playlistid (number) , name (text) | playlisttrack : playlistid (number) , trackid (number) | track : trackid (number) , name (text) , albumid (number) , mediatypeid (number) , genreid (number) , composer (text) , milliseconds (number) , bytes (number) , unitprice (number)

customer : firstname (text) , lastname (text) , email (text) , customerid (number) | employee : firstname (text) , lastname (text) , email (text) , employeeid (number)


Question: Find the full name of the customer with the email "luisg@embraer.com.br".

album : albumid (number) , title (text) , artistid (number) | artist : artistid (number) , name (text) | customer : customerid (number) , firstname (text) , lastname (text) , company (text) , address (text) , city (text) , state (text) , country (text) , postalcode (text) , phone (text) , fax (text) , email (text) , supportrepid (number) | employee : employeeid (number) , lastname (text) , firstname (text) , title (text) , reportsto (number) , birthdate (time) , hiredate (time) , address (text) , city (text) , state (text) , country (text) , postalcode (text) , phone (text) , fax (text) , email (text) | genre : genreid (number) , name (text) | invoice : invoiceid (number) , customerid (number) , invoicedate (time) , billingaddress (text) , billingcity (text) , billingstate (text) , billingcountry (text) , billingpostalcode (text) , total (number) | invoiceline : invoicelineid (number) , invoiceid (number) , trackid (number) , unitprice (number) , quantity (number) | mediatype : mediatypeid (number) , name (text) | playlist : playlistid (number) , name (text) | playlisttrack : playlistid (number) , trackid (number) | track : trackid (number) , name (text) , albumid (number) , mediatypeid (number) , genreid (number) , composer (text) , milliseconds (number) , bytes (number) , unitprice (number)

customer : firstname (text) , lastname (text) , email (text) , customerid (number) | employee : firstname (text) , lastname (text) , email (text) , employeeid (number)


Question: How many customers have email that contains "gmail.com"?

album : albumid (number) , title (text) , artistid (number) | artist : artistid (number) , name (text) | customer : customerid (number) , firstname (text) , lastname (text) , company (text) , address (text) , city (text) , state (text) , country (text) , postalcode (text) , phone (text) , fax (text) , email (text) , supportrepid (number) | employee : employeeid (number) , lastname (text) , firstname (text) , title (text) , reportsto (number) , birthdate (time) , hiredate (time) , address (text) , city (text) , state (text) , country (text) , postalcode (text) , phone (text) , fax (text) , email (text) | genre : genreid (number) , name (text) | invoice : invoiceid (number) , customerid (number) , invoicedate (time) , billingaddress (text) , billingcity (text) , billingstate (text) , billingcountry (text) , billingpostalcode (text) , total (number) | invoiceline : invoicelineid (number) , invoiceid (number) , trackid (number) , unitprice (number) , quantity (number) | mediatype : mediatypeid (number) , name (text) | playlist : playlistid (number) , name (text) | playlisttrack : playlistid (number) , trackid (number) | track : trackid (number) , name (text) , albumid (number) , mediatypeid (number) , genreid (number) , composer (text) , milliseconds (number) , bytes (number) , unitprice (number)

customer : email (text) , customerid (number) | employee : email (text) , employeeid (number)


Question: Count the number of customers that have an email containing "gmail.com".

album : albumid (number) , title (text) , artistid (number) | artist : artistid (number) , name (text) | customer : customerid (number) , firstname (text) , lastname (text) , company (text) , address (text) , city (text) , state (text) , country (text) , postalcode (text) , phone (text) , fax (text) , email (text) , supportrepid (number) | employee : employeeid (number) , lastname (text) , firstname (text) , title (text) , reportsto (number) , birthdate (time) , hiredate (time) , address (text) , city (text) , state (text) , country (text) , postalcode (text) , phone (text) , fax (text) , email (text) | genre : genreid (number) , name (text) | invoice : invoiceid (number) , customerid (number) , invoicedate (time) , billingaddress (text) , billingcity (text) , billingstate (text) , billingcountry (text) , billingpostalcode (text) , total (number) | invoiceline : invoicelineid (number) , invoiceid (number) , trackid (number) , unitprice (number) , quantity (number) | mediatype : mediatypeid (number) , name (text) | playlist : playlistid (number) , name (text) | playlisttrack : playlistid (number) , trackid (number) | track : trackid (number) , name (text) , albumid (number) , mediatypeid (number) , genreid (number) , composer (text) , milliseconds (number) , bytes (number) , unitprice (number)

customer : email (text) , customerid (number) | employee : email (text) , employeeid (number)


Question: What is the first name and last name employee helps the customer with first name Leonie?

album : albumid (number) , title (text) , artistid (number) | artist : artistid (number) , name (text) | customer : customerid (number) , firstname (text) , lastname (text) , company (text) , address (text) , city (text) , state (text) , country (text) , postalcode (text) , phone (text) , fax (text) , email (text) , supportrepid (number) | employee : employeeid (number) , lastname (text) , firstname (text) , title (text) , reportsto (number) , birthdate (time) , hiredate (time) , address (text) , city (text) , state (text) , country (text) , postalcode (text) , phone (text) , fax (text) , email (text) | genre : genreid (number) , name (text) | invoice : invoiceid (number) , customerid (number) , invoicedate (time) , billingaddress (text) , billingcity (text) , billingstate (text) , billingcountry (text) , billingpostalcode (text) , total (number) | invoiceline : invoicelineid (number) , invoiceid (number) , trackid (number) , unitprice (number) , quantity (number) | mediatype : mediatypeid (number) , name (text) | playlist : playlistid (number) , name (text) | playlisttrack : playlistid (number) , trackid (number) | track : trackid (number) , name (text) , albumid (number) , mediatypeid (number) , genreid (number) , composer (text) , milliseconds (number) , bytes (number) , unitprice (number)

customer : firstname (text) , lastname (text) , supportrepid (number) , customerid (number) | employee : firstname (text) , lastname (text) , employeeid (number) , employeeid (number)


Question: Find the full names of employees who help customers with the first name Leonie.

album : albumid (number) , title (text) , artistid (number) | artist : artistid (number) , name (text) | customer : customerid (number) , firstname (text) , lastname (text) , company (text) , address (text) , city (text) , state (text) , country (text) , postalcode (text) , phone (text) , fax (text) , email (text) , supportrepid (number) | employee : employeeid (number) , lastname (text) , firstname (text) , title (text) , reportsto (number) , birthdate (time) , hiredate (time) , address (text) , city (text) , state (text) , country (text) , postalcode (text) , phone (text) , fax (text) , email (text) | genre : genreid (number) , name (text) | invoice : invoiceid (number) , customerid (number) , invoicedate (time) , billingaddress (text) , billingcity (text) , billingstate (text) , billingcountry (text) , billingpostalcode (text) , total (number) | invoiceline : invoicelineid (number) , invoiceid (number) , trackid (number) , unitprice (number) , quantity (number) | mediatype : mediatypeid (number) , name (text) | playlist : playlistid (number) , name (text) | playlisttrack : playlistid (number) , trackid (number) | track : trackid (number) , name (text) , albumid (number) , mediatypeid (number) , genreid (number) , composer (text) , milliseconds (number) , bytes (number) , unitprice (number)

customer : firstname (text) , lastname (text) , supportrepid (number) , customerid (number) | employee : firstname (text) , lastname (text) , employeeid (number) , employeeid (number)


Question: What city does the employee who helps the customer with postal code 70174 live in?

album : albumid (number) , title (text) , artistid (number) | artist : artistid (number) , name (text) | customer : customerid (number) , firstname (text) , lastname (text) , company (text) , address (text) , city (text) , state (text) , country (text) , postalcode (text) , phone (text) , fax (text) , email (text) , supportrepid (number) | employee : employeeid (number) , lastname (text) , firstname (text) , title (text) , reportsto (number) , birthdate (time) , hiredate (time) , address (text) , city (text) , state (text) , country (text) , postalcode (text) , phone (text) , fax (text) , email (text) | genre : genreid (number) , name (text) | invoice : invoiceid (number) , customerid (number) , invoicedate (time) , billingaddress (text) , billingcity (text) , billingstate (text) , billingcountry (text) , billingpostalcode (text) , total (number) | invoiceline : invoicelineid (number) , invoiceid (number) , trackid (number) , unitprice (number) , quantity (number) | mediatype : mediatypeid (number) , name (text) | playlist : playlistid (number) , name (text) | playlisttrack : playlistid (number) , trackid (number) | track : trackid (number) , name (text) , albumid (number) , mediatypeid (number) , genreid (number) , composer (text) , milliseconds (number) , bytes (number) , unitprice (number)

customer : city (text) , supportrepid (number) , postalcode (text) , customerid (number) | employee : city (text) , employeeid (number) , postalcode (text) , employeeid (number)


Question: Find the cities corresponding to employees who help customers with the postal code 70174.

album : albumid (number) , title (text) , artistid (number) | artist : artistid (number) , name (text) | customer : customerid (number) , firstname (text) , lastname (text) , company (text) , address (text) , city (text) , state (text) , country (text) , postalcode (text) , phone (text) , fax (text) , email (text) , supportrepid (number) | employee : employeeid (number) , lastname (text) , firstname (text) , title (text) , reportsto (number) , birthdate (time) , hiredate (time) , address (text) , city (text) , state (text) , country (text) , postalcode (text) , phone (text) , fax (text) , email (text) | genre : genreid (number) , name (text) | invoice : invoiceid (number) , customerid (number) , invoicedate (time) , billingaddress (text) , billingcity (text) , billingstate (text) , billingcountry (text) , billingpostalcode (text) , total (number) | invoiceline : invoicelineid (number) , invoiceid (number) , trackid (number) , unitprice (number) , quantity (number) | mediatype : mediatypeid (number) , name (text) | playlist : playlistid (number) , name (text) | playlisttrack : playlistid (number) , trackid (number) | track : trackid (number) , name (text) , albumid (number) , mediatypeid (number) , genreid (number) , composer (text) , milliseconds (number) , bytes (number) , unitprice (number)

customer : city (text) , supportrepid (number) , postalcode (text) , customerid (number) | employee : city (text) , employeeid (number) , postalcode (text) , employeeid (number)


Question: How many distinct cities does the employees live in?

album : albumid (number) , title (text) , artistid (number) | artist : artistid (number) , name (text) | customer : customerid (number) , firstname (text) , lastname (text) , company (text) , address (text) , city (text) , state (text) , country (text) , postalcode (text) , phone (text) , fax (text) , email (text) , supportrepid (number) | employee : employeeid (number) , lastname (text) , firstname (text) , title (text) , reportsto (number) , birthdate (time) , hiredate (time) , address (text) , city (text) , state (text) , country (text) , postalcode (text) , phone (text) , fax (text) , email (text) | genre : genreid (number) , name (text) | invoice : invoiceid (number) , customerid (number) , invoicedate (time) , billingaddress (text) , billingcity (text) , billingstate (text) , billingcountry (text) , billingpostalcode (text) , total (number) | invoiceline : invoicelineid (number) , invoiceid (number) , trackid (number) , unitprice (number) , quantity (number) | mediatype : mediatypeid (number) , name (text) | playlist : playlistid (number) , name (text) | playlisttrack : playlistid (number) , trackid (number) | track : trackid (number) , name (text) , albumid (number) , mediatypeid (number) , genreid (number) , composer (text) , milliseconds (number) , bytes (number) , unitprice (number)

customer : city (text) , customerid (number) | employee : city (text) , employeeid (number)