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)


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)

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)

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

genre : name (text) , genreid (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)

genre : name (text) , genreid (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)

mediatype : name (text) , mediatypeid (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)

mediatype : name (text) , mediatypeid (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) | track : albumid (number) , unitprice (number) , trackid (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) | track : albumid (number) , unitprice (number) , trackid (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) | track : genreid (number) , name (text) , trackid (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) | track : genreid (number) , name (text) , trackid (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)

track : unitprice (number) , genreid (number) , name (text) , trackid (number) | genre : genreid (number) , name (text)


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)

track : unitprice (number) , genreid (number) , name (text) , trackid (number) | genre : genreid (number) , name (text)


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)


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)


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)


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)


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)


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)


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)


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)


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)

employee : city (text) , employeeid (number)


Question: Find the number of different cities that 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)

employee : city (text) , employeeid (number)


Question: Find all invoice dates corresponding to customers with first name Astrid and last name Gruber.

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 : invoicedate (time) , customerid (number) , invoiceid (number) | customer : customerid (number) , firstname (text) , lastname (text)


Question: What are the invoice dates for customers with the first name Astrid and the last name Gruber?

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 : invoicedate (time) , customerid (number) , invoiceid (number) | customer : customerid (number) , firstname (text) , lastname (text)


Question: Find all the customer last names that do not have invoice totals larger than 20.

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 : lastname (text) , customerid (number) | invoice : customerid (number) , total (number) , invoiceid (number)


Question: What are the last names of customers without invoice totals exceeding 20?

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 : lastname (text) , customerid (number) | invoice : customerid (number) , total (number) , invoiceid (number)


Question: Find the first names of all customers that live in Brazil and have an invoice.

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) , customerid (number) , country (text) | invoice : customerid (number) , invoiceid (number)


Question: What are the different first names for customers from Brazil who have also had an invoice?

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) , customerid (number) , country (text) | invoice : customerid (number) , invoiceid (number)


Question: Find the address of all customers that live in Germany and have invoice.

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 : address (text) , customerid (number) , country (text) | invoice : customerid (number) , invoiceid (number)


Question: What are the addresses of customers living in Germany who have had an invoice?

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 : address (text) , customerid (number) , country (text) | invoice : customerid (number) , invoiceid (number)


Question: List the phone numbers of all employees.

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)

employee : phone (text) , employeeid (number)


Question: What are the phone numbers for each employee?

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)

employee : phone (text) , employeeid (number)


Question: How many tracks are in the AAC audio file media type?

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)

mediatype : mediatypeid (number) , name (text) | track : mediatypeid (number) , name (text) , trackid (number)


Question: Count the number of tracks that are of the media type "AAC audio file".

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)

mediatype : mediatypeid (number) , name (text) | track : mediatypeid (number) , name (text) , trackid (number)


Question: What is the average duration in milliseconds of tracks that belong to Latin or Pop 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)

track : milliseconds (number) , genreid (number) , name (text) , trackid (number) | genre : genreid (number) , name (text)


Question: Find the average millisecond length of Latin and Pop 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)

track : milliseconds (number) , genreid (number) , name (text) , trackid (number) | genre : genreid (number) , name (text)


Question: Please show the employee first names and ids of employees who serve at least 10 customers.

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) , supportrepid (number) , customerid (number) | employee : firstname (text) , employeeid (number)


Question: What are the first names and support rep ids for employees serving 10 or more customers?

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) , supportrepid (number) , customerid (number) | employee : firstname (text) , employeeid (number)


Question: Please show the employee last names that serves no more than 20 customers.

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 : lastname (text) , supportrepid (number) , customerid (number) | employee : lastname (text) , employeeid (number)


Question: What are the last names of employees who serve at most 20 customers?

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 : lastname (text) , supportrepid (number) , customerid (number) | employee : lastname (text) , employeeid (number)


Question: Please list all album titles in alphabetical order.

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: What are all the album titles, in alphabetical order?

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: Please list the name and id of all artists that have at least 3 albums in alphabetical order.

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) | album : artistid (number) , albumid (number)


Question: What are the names and ids of artists with 3 or more albums, listed in alphabetical order?

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) | album : artistid (number) , albumid (number)


Question: Find the names of artists that do not have any 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) | album : artistid (number) , albumid (number)


Question: What are the names of artists who have not released any 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) | album : artistid (number) , albumid (number)


Question: What is the average unit price of rock 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)

track : unitprice (number) , genreid (number) , name (text) , trackid (number) | genre : genreid (number) , name (text)


Question: Find the average unit price of tracks from 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)

track : unitprice (number) , genreid (number) , name (text) , trackid (number) | genre : genreid (number) , name (text)


Question: What are the duration of the longest and shortest pop 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) , genreid (number) , name (text) , trackid (number) | genre : genreid (number) , name (text)


Question: Find the maximum and minimum millisecond lengths of pop 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)

track : milliseconds (number) , genreid (number) , name (text) , trackid (number) | genre : genreid (number) , name (text)


Question: What are the birth dates of employees living in Edmonton?

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)

employee : birthdate (time) , city (text) , employeeid (number)


Question: Find the birth dates corresponding to employees who live in the city of Edmonton.

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)

employee : birthdate (time) , city (text) , employeeid (number)


Question: What are the distinct unit prices of 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)

track : unitprice (number) , trackid (number)


Question: Find the distinct unit prices for 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)

track : unitprice (number) , trackid (number)


Question: How many artists do not have any 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 : artistid (number) , albumid (number) | artist : artistid (number)


Question: Cound the number of artists who have not released an 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 : artistid (number) , albumid (number) | artist : artistid (number)


Question: What are the album titles for albums containing both 'Reggae' and 'Rock' genre 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)

album : title (text) , albumid (number) | track : albumid (number) , genreid (number) , name (text) , trackid (number) | genre : genreid (number) , name (text)


Question: Find the titles of albums that contain tracks of both the Reggae and Rock 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)

album : title (text) , albumid (number) | track : albumid (number) , genreid (number) , name (text) , trackid (number) | genre : genreid (number) , name (text)


Question: Find all the phone numbers.

customers : customer_id (number) , customer_name (text) | services : service_id (number) , service_name (text) | available_policies : policy_id (number) , policy_type_code (text) , customer_phone (text) | customers_policies : customer_id (number) , policy_id (number) , date_opened (time) , date_closed (time) | first_notification_of_loss : fnol_id (number) , customer_id (number) , policy_id (number) , service_id (number) | claims : claim_id (number) , fnol_id (number) , effective_date (time) | settlements : settlement_id (number) , claim_id (number) , effective_date (time) , settlement_amount (number)

available_policies : customer_phone (text) , policy_id (number)


Question: What are all the phone numbers?

customers : customer_id (number) , customer_name (text) | services : service_id (number) , service_name (text) | available_policies : policy_id (number) , policy_type_code (text) , customer_phone (text) | customers_policies : customer_id (number) , policy_id (number) , date_opened (time) , date_closed (time) | first_notification_of_loss : fnol_id (number) , customer_id (number) , policy_id (number) , service_id (number) | claims : claim_id (number) , fnol_id (number) , effective_date (time) | settlements : settlement_id (number) , claim_id (number) , effective_date (time) , settlement_amount (number)

available_policies : customer_phone (text) , policy_id (number)


Question: What are the customer phone numbers under the policy "Life Insurance"?

customers : customer_id (number) , customer_name (text) | services : service_id (number) , service_name (text) | available_policies : policy_id (number) , policy_type_code (text) , customer_phone (text) | customers_policies : customer_id (number) , policy_id (number) , date_opened (time) , date_closed (time) | first_notification_of_loss : fnol_id (number) , customer_id (number) , policy_id (number) , service_id (number) | claims : claim_id (number) , fnol_id (number) , effective_date (time) | settlements : settlement_id (number) , claim_id (number) , effective_date (time) , settlement_amount (number)

available_policies : customer_phone (text) , policy_type_code (text) , policy_id (number)


Question: What are the phone numbers of customers using the policy with the code "Life Insurance"?

customers : customer_id (number) , customer_name (text) | services : service_id (number) , service_name (text) | available_policies : policy_id (number) , policy_type_code (text) , customer_phone (text) | customers_policies : customer_id (number) , policy_id (number) , date_opened (time) , date_closed (time) | first_notification_of_loss : fnol_id (number) , customer_id (number) , policy_id (number) , service_id (number) | claims : claim_id (number) , fnol_id (number) , effective_date (time) | settlements : settlement_id (number) , claim_id (number) , effective_date (time) , settlement_amount (number)

available_policies : customer_phone (text) , policy_type_code (text) , policy_id (number)


Question: Which policy type has the most records in the database?

customers : customer_id (number) , customer_name (text) | services : service_id (number) , service_name (text) | available_policies : policy_id (number) , policy_type_code (text) , customer_phone (text) | customers_policies : customer_id (number) , policy_id (number) , date_opened (time) , date_closed (time) | first_notification_of_loss : fnol_id (number) , customer_id (number) , policy_id (number) , service_id (number) | claims : claim_id (number) , fnol_id (number) , effective_date (time) | settlements : settlement_id (number) , claim_id (number) , effective_date (time) , settlement_amount (number)

available_policies : policy_type_code (text) , policy_id (number)


Question: Which policy type appears most frequently in the available policies?

customers : customer_id (number) , customer_name (text) | services : service_id (number) , service_name (text) | available_policies : policy_id (number) , policy_type_code (text) , customer_phone (text) | customers_policies : customer_id (number) , policy_id (number) , date_opened (time) , date_closed (time) | first_notification_of_loss : fnol_id (number) , customer_id (number) , policy_id (number) , service_id (number) | claims : claim_id (number) , fnol_id (number) , effective_date (time) | settlements : settlement_id (number) , claim_id (number) , effective_date (time) , settlement_amount (number)

available_policies : policy_type_code (text) , policy_id (number)


Question: What are all the customer phone numbers under the most popular policy type?

customers : customer_id (number) , customer_name (text) | services : service_id (number) , service_name (text) | available_policies : policy_id (number) , policy_type_code (text) , customer_phone (text) | customers_policies : customer_id (number) , policy_id (number) , date_opened (time) , date_closed (time) | first_notification_of_loss : fnol_id (number) , customer_id (number) , policy_id (number) , service_id (number) | claims : claim_id (number) , fnol_id (number) , effective_date (time) | settlements : settlement_id (number) , claim_id (number) , effective_date (time) , settlement_amount (number)

available_policies : customer_phone (text) , policy_type_code (text) , policy_id (number)