db_id
stringlengths
4
31
query
stringlengths
18
577
question
stringlengths
19
228
query_toks
sequence
query_toks_no_value
sequence
question_toks
sequence
coffee_shop
SELECT avg(num_of_staff) , avg(score) FROM shop
What-all are the average score and average staffs number of all shops?
[ "SELECT", "avg", "(", "num_of_staff", ")", ",", "avg", "(", "score", ")", "FROM", "shop" ]
[ "select", "avg", "(", "num_of_staff", ")", ",", "avg", "(", "score", ")", "from", "shop" ]
[ "What-all", "are", "the", "average", "score", "and", "average", "staffs", "number", "of", "all", "shops?" ]
coffee_shop
SELECT shop_id , address FROM shop WHERE score < (SELECT avg(score) FROM shop)
Are Finding the imight would and address of the shops whose score is below the average score.
[ "SELECT", "shop_id", ",", "address", "FROM", "shop", "WHERE", "score", "<", "(", "SELECT", "avg", "(", "score", ")", "FROM", "shop", ")" ]
[ "select", "shop_id", ",", "address", "from", "shop", "where", "score", "<", "(", "select", "avg", "(", "score", ")", "from", "shop", ")" ]
[ "Are", "Finding", "the", "imight", "would", "and", "address", "of", "the", "shops", "whose", "score", "is", "below", "the", "average", "score." ]
coffee_shop
SELECT address , num_of_staff FROM shop WHERE shop_id NOT IN (SELECT shop_id FROM happy_hour)
Find the address and staff number of the shops do ain't any happy hour.
[ "SELECT", "address", ",", "num_of_staff", "FROM", "shop", "WHERE", "shop_id", "NOT", "IN", "(", "SELECT", "shop_id", "FROM", "happy_hour", ")" ]
[ "select", "address", ",", "num_of_staff", "from", "shop", "where", "shop_id", "not", "in", "(", "select", "shop_id", "from", "happy_hour", ")" ]
[ "Find", "the", "address", "and", "staff", "number", "of", "the", "shops", "do", "ain't", "any", "happy", "hour." ]
coffee_shop
SELECT t1.address , t1.shop_id FROM shop AS t1 JOIN happy_hour AS t2 ON t1.shop_id = t2.shop_id WHERE MONTH = 'May'
What-all are the imight would and address of the shops have a happy hours in May?
[ "SELECT", "t1.address", ",", "t1.shop_id", "FROM", "shop", "AS", "t1", "JOIN", "happy_hour", "AS", "t2", "ON", "t1.shop_id", "=", "t2.shop_id", "WHERE", "MONTH", "=", "'May", "'" ]
[ "select", "t1", ".", "address", ",", "t1", ".", "shop_id", "from", "shop", "as", "t1", "join", "happy_hour", "as", "t2", "on", "t1", ".", "shop_id", "=", "t2", ".", "shop_id", "where", "month", "=", "value" ]
[ "What-all", "are", "the", "imight", "would", "and", "address", "of", "the", "shops", "have", "a", "happy", "hours", "in", "May?" ]
coffee_shop
SELECT shop_id , count(*) FROM happy_hour GROUP BY shop_id ORDER BY count(*) DESC LIMIT 1
which shop has happy hour most frequently? List its imight would and number of happy hours.
[ "SELECT", "shop_id", ",", "count", "(", "*", ")", "FROM", "happy_hour", "GROUP", "BY", "shop_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ]
[ "select", "shop_id", ",", "count", "(", "*", ")", "from", "happy_hour", "group", "by", "shop_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ]
[ "which", "shop", "has", "happy", "hour", "most", "frequently?", "List", "its", "imight", "would", "and", "number", "of", "happy", "hours." ]
coffee_shop
SELECT MONTH FROM happy_hour GROUP BY MONTH ORDER BY count(*) DESC LIMIT 1
It is the most happy hours that which month has?
[ "SELECT", "MONTH", "FROM", "happy_hour", "GROUP", "BY", "MONTH", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ]
[ "select", "month", "from", "happy_hour", "group", "by", "month", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ]
[ "It", "is", "the", "most", "happy", "hours", "that", "which", "month", "has?" ]
coffee_shop
SELECT MONTH FROM happy_hour GROUP BY MONTH HAVING count(*) > 2
Which months have more than 2 happy hours?
[ "SELECT", "MONTH", "FROM", "happy_hour", "GROUP", "BY", "MONTH", "HAVING", "count", "(", "*", ")", ">", "2" ]
[ "select", "month", "from", "happy_hour", "group", "by", "month", "having", "count", "(", "*", ")", ">", "value" ]
[ "Which", "months", "have", "more", "than", "2", "happy", "hours?" ]
chinook_1
SELECT count(*) FROM ALBUM
How many albums are there?
[ "SELECT", "count", "(", "*", ")", "FROM", "ALBUM" ]
[ "select", "count", "(", "*", ")", "from", "album" ]
[ "How", "many", "albums", "are", "there?" ]
chinook_1
SELECT count(*) FROM ALBUM
Find the number of albums.
[ "SELECT", "count", "(", "*", ")", "FROM", "ALBUM" ]
[ "select", "count", "(", "*", ")", "from", "album" ]
[ "Find", "the", "number", "of", "albums." ]
chinook_1
SELECT Name FROM GENRE
Are Listing the names of all music genres.
[ "SELECT", "Name", "FROM", "GENRE" ]
[ "select", "name", "from", "genre" ]
[ "Are", "Listing", "the", "names", "of", "all", "music", "genres." ]
chinook_1
SELECT Name FROM GENRE
What-all are the names of different music genres?
[ "SELECT", "Name", "FROM", "GENRE" ]
[ "select", "name", "from", "genre" ]
[ "What-all", "are", "the", "names", "of", "different", "music", "genres?" ]
chinook_1
SELECT * FROM CUSTOMER WHERE State = "NY"
Are Finding all the customers informations in state NY.
[ "SELECT", "*", "FROM", "CUSTOMER", "WHERE", "State", "=", "``", "NY", "''" ]
[ "select", "*", "from", "customer", "where", "state", "=", "value" ]
[ "Are", "Finding", "all", "the", "customers", "informations", "in", "state", "NY." ]
chinook_1
SELECT * FROM CUSTOMER WHERE State = "NY"
What-all is all the customer information for customers in NY state?
[ "SELECT", "*", "FROM", "CUSTOMER", "WHERE", "State", "=", "``", "NY", "''" ]
[ "select", "*", "from", "customer", "where", "state", "=", "value" ]
[ "What-all", "is", "all", "the", "customer", "information", "for", "customers", "in", "NY", "state?" ]
chinook_1
SELECT FirstName , LastName FROM EMPLOYEE WHERE City = "Calgary"
What-all are the first names and last names of the employees which is living in Calgary city.
[ "SELECT", "FirstName", ",", "LastName", "FROM", "EMPLOYEE", "WHERE", "City", "=", "``", "Calgary", "''" ]
[ "select", "firstname", ",", "lastname", "from", "employee", "where", "city", "=", "value" ]
[ "What-all", "are", "the", "first", "names", "and", "last", "names", "of", "the", "employees", "which", "is", "living", "in", "Calgary", "city." ]
chinook_1
SELECT FirstName , LastName FROM EMPLOYEE WHERE City = "Calgary"
Find the full names of employees living in the city of Calgary.
[ "SELECT", "FirstName", ",", "LastName", "FROM", "EMPLOYEE", "WHERE", "City", "=", "``", "Calgary", "''" ]
[ "select", "firstname", ",", "lastname", "from", "employee", "where", "city", "=", "value" ]
[ "Find", "the", "full", "names", "of", "employees", "living", "in", "the", "city", "of", "Calgary." ]
chinook_1
SELECT distinct(BillingCountry) FROM INVOICE
What-all are the distinct billing countries of the invoices?
[ "SELECT", "distinct", "(", "BillingCountry", ")", "FROM", "INVOICE" ]
[ "select", "distinct", "(", "billingcountry", ")", "from", "invoice" ]
[ "What-all", "are", "the", "distinct", "billing", "countries", "of", "the", "invoices?" ]
chinook_1
SELECT distinct(BillingCountry) FROM INVOICE
Find the different billing all invoices countries.
[ "SELECT", "distinct", "(", "BillingCountry", ")", "FROM", "INVOICE" ]
[ "select", "distinct", "(", "billingcountry", ")", "from", "invoice" ]
[ "Find", "the", "different", "billing", "all", "invoices", "countries." ]
chinook_1
SELECT Name FROM ARTIST WHERE Name LIKE "%a%"
Are Finding the names of all artists have "a" in theirn names.
[ "SELECT", "Name", "FROM", "ARTIST", "WHERE", "Name", "LIKE", "``", "%", "a", "%", "''" ]
[ "select", "name", "from", "artist", "where", "name", "like", "value" ]
[ "Are", "Finding", "the", "names", "of", "all", "artists", "have", "\"a\"", "in", "theirn", "names." ]
chinook_1
SELECT Name FROM ARTIST WHERE Name LIKE "%a%"
What-all are the names of artist have the letter 'a' in theirn names?
[ "SELECT", "Name", "FROM", "ARTIST", "WHERE", "Name", "LIKE", "``", "%", "a", "%", "''" ]
[ "select", "name", "from", "artist", "where", "name", "like", "value" ]
[ "What-all", "are", "the", "names", "of", "artist", "have", "the", "letter", "'a'", "in", "theirn", "names?" ]
chinook_1
SELECT Title FROM ALBUM AS T1 JOIN ARTIST AS T2 ON T1.ArtistId = T2.ArtistId WHERE T2.Name = "AC/DC"
Find the title of all the albums of the artist "AC/DC".
[ "SELECT", "Title", "FROM", "ALBUM", "AS", "T1", "JOIN", "ARTIST", "AS", "T2", "ON", "T1.ArtistId", "=", "T2.ArtistId", "WHERE", "T2.Name", "=", "``", "AC/DC", "''" ]
[ "select", "title", "from", "album", "as", "t1", "join", "artist", "as", "t2", "on", "t1", ".", "artistid", "=", "t2", ".", "artistid", "where", "t2", ".", "name", "=", "value" ]
[ "Find", "the", "title", "of", "all", "the", "albums", "of", "the", "artist", "\"AC/DC\"." ]
chinook_1
SELECT Title FROM ALBUM AS T1 JOIN ARTIST AS T2 ON T1.ArtistId = T2.ArtistId WHERE T2.Name = "AC/DC"
What-all are the titles of albums by the artist "AC/DC"?
[ "SELECT", "Title", "FROM", "ALBUM", "AS", "T1", "JOIN", "ARTIST", "AS", "T2", "ON", "T1.ArtistId", "=", "T2.ArtistId", "WHERE", "T2.Name", "=", "``", "AC/DC", "''" ]
[ "select", "title", "from", "album", "as", "t1", "join", "artist", "as", "t2", "on", "t1", ".", "artistid", "=", "t2", ".", "artistid", "where", "t2", ".", "name", "=", "value" ]
[ "What-all", "are", "the", "titles", "of", "albums", "by", "the", "artist", "\"AC/DC\"?" ]
chinook_1
SELECT COUNT(*) FROM ALBUM AS T1 JOIN ARTIST AS T2 ON T1.ArtistId = T2.ArtistId WHERE T2.Name = "Metallica"
Hom many albums does the artist "Metallica" have?
[ "SELECT", "COUNT", "(", "*", ")", "FROM", "ALBUM", "AS", "T1", "JOIN", "ARTIST", "AS", "T2", "ON", "T1.ArtistId", "=", "T2.ArtistId", "WHERE", "T2.Name", "=", "``", "Metallica", "''" ]
[ "select", "count", "(", "*", ")", "from", "album", "as", "t1", "join", "artist", "as", "t2", "on", "t1", ".", "artistid", "=", "t2", ".", "artistid", "where", "t2", ".", "name", "=", "value" ]
[ "Hom", "many", "albums", "does", "the", "artist", "\"Metallica\"", "have?" ]
chinook_1
SELECT COUNT(*) FROM ALBUM AS T1 JOIN ARTIST AS T2 ON T1.ArtistId = T2.ArtistId WHERE T2.Name = "Metallica"
Find the number of albums by the artist "Metallica".
[ "SELECT", "COUNT", "(", "*", ")", "FROM", "ALBUM", "AS", "T1", "JOIN", "ARTIST", "AS", "T2", "ON", "T1.ArtistId", "=", "T2.ArtistId", "WHERE", "T2.Name", "=", "``", "Metallica", "''" ]
[ "select", "count", "(", "*", ")", "from", "album", "as", "t1", "join", "artist", "as", "t2", "on", "t1", ".", "artistid", "=", "t2", ".", "artistid", "where", "t2", ".", "name", "=", "value" ]
[ "Find", "the", "number", "of", "albums", "by", "the", "artist", "\"Metallica\"." ]
chinook_1
SELECT T2.Name FROM ALBUM AS T1 JOIN ARTIST AS T2 ON T1.ArtistId = T2.ArtistId WHERE T1.Title = "Balls to the Wall"
Which artist does the " the Wall album" belong to?
[ "SELECT", "T2.Name", "FROM", "ALBUM", "AS", "T1", "JOIN", "ARTIST", "AS", "T2", "ON", "T1.ArtistId", "=", "T2.ArtistId", "WHERE", "T1.Title", "=", "``", "Balls", "to", "the", "Wall", "''" ]
[ "select", "t2", ".", "name", "from", "album", "as", "t1", "join", "artist", "as", "t2", "on", "t1", ".", "artistid", "=", "t2", ".", "artistid", "where", "t1", ".", "title", "=", "value" ]
[ "Which", "artist", "does", "the", "\"", "the", "Wall", "album\"", "belong", "to?" ]
chinook_1
SELECT T2.Name FROM ALBUM AS T1 JOIN ARTIST AS T2 ON T1.ArtistId = T2.ArtistId WHERE T1.Title = "Balls to the Wall"
Find the name of the artist make the album "Balls to the Wall".
[ "SELECT", "T2.Name", "FROM", "ALBUM", "AS", "T1", "JOIN", "ARTIST", "AS", "T2", "ON", "T1.ArtistId", "=", "T2.ArtistId", "WHERE", "T1.Title", "=", "``", "Balls", "to", "the", "Wall", "''" ]
[ "select", "t2", ".", "name", "from", "album", "as", "t1", "join", "artist", "as", "t2", "on", "t1", ".", "artistid", "=", "t2", ".", "artistid", "where", "t1", ".", "title", "=", "value" ]
[ "Find", "the", "name", "of", "the", "artist", "make", "the", "album", "\"Balls", "to", "the", "Wall\"." ]
chinook_1
SELECT T2.Name FROM ALBUM AS T1 JOIN ARTIST AS T2 ON T1.ArtistId = T2.ArtistId GROUP BY T2.Name ORDER BY COUNT(*) DESC LIMIT 1
Which artist has the most albums?
[ "SELECT", "T2.Name", "FROM", "ALBUM", "AS", "T1", "JOIN", "ARTIST", "AS", "T2", "ON", "T1.ArtistId", "=", "T2.ArtistId", "GROUP", "BY", "T2.Name", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC", "LIMIT", "1" ]
[ "select", "t2", ".", "name", "from", "album", "as", "t1", "join", "artist", "as", "t2", "on", "t1", ".", "artistid", "=", "t2", ".", "artistid", "group", "by", "t2", ".", "name", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ]
[ "Which", "artist", "has", "the", "most", "albums?" ]
chinook_1
SELECT T2.Name FROM ALBUM AS T1 JOIN ARTIST AS T2 ON T1.ArtistId = T2.ArtistId GROUP BY T2.Name ORDER BY COUNT(*) DESC LIMIT 1
What-all is the name of the artist with the greatest number of albums?
[ "SELECT", "T2.Name", "FROM", "ALBUM", "AS", "T1", "JOIN", "ARTIST", "AS", "T2", "ON", "T1.ArtistId", "=", "T2.ArtistId", "GROUP", "BY", "T2.Name", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC", "LIMIT", "1" ]
[ "select", "t2", ".", "name", "from", "album", "as", "t1", "join", "artist", "as", "t2", "on", "t1", ".", "artistid", "=", "t2", ".", "artistid", "group", "by", "t2", ".", "name", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ]
[ "What-all", "is", "the", "name", "of", "the", "artist", "with", "the", "greatest", "number", "of", "albums?" ]
chinook_1
SELECT Name FROM TRACK WHERE Name LIKE '%you%'
Find the names of all the tracks that contain the word "y'all".
[ "SELECT", "Name", "FROM", "TRACK", "WHERE", "Name", "LIKE", "'", "%", "you", "%", "'" ]
[ "select", "name", "from", "track", "where", "name", "like", "value" ]
[ "Find", "the", "names", "of", "all", "the", "tracks", "that", "contain", "the", "word", "\"y'all\"." ]
chinook_1
SELECT Name FROM TRACK WHERE Name LIKE '%you%'
What-all are the names of tracks is containing the the word y'all in them?
[ "SELECT", "Name", "FROM", "TRACK", "WHERE", "Name", "LIKE", "'", "%", "you", "%", "'" ]
[ "select", "name", "from", "track", "where", "name", "like", "value" ]
[ "What-all", "are", "the", "names", "of", "tracks", "is", "containing", "the", "the", "word", "y'all", "in", "them?" ]
chinook_1
SELECT AVG(UnitPrice) FROM TRACK
What-all is the average unit price of all the tracks?
[ "SELECT", "AVG", "(", "UnitPrice", ")", "FROM", "TRACK" ]
[ "select", "avg", "(", "unitprice", ")", "from", "track" ]
[ "What-all", "is", "the", "average", "unit", "price", "of", "all", "the", "tracks?" ]
chinook_1
SELECT AVG(UnitPrice) FROM TRACK
Find the average unit price for a track.
[ "SELECT", "AVG", "(", "UnitPrice", ")", "FROM", "TRACK" ]
[ "select", "avg", "(", "unitprice", ")", "from", "track" ]
[ "Find", "the", "average", "unit", "price", "for", "a", "track." ]
chinook_1
SELECT max(Milliseconds) , min(Milliseconds) FROM TRACK
What-all are the durations of the most longest and the most shortest tracks in milliseconds?
[ "SELECT", "max", "(", "Milliseconds", ")", ",", "min", "(", "Milliseconds", ")", "FROM", "TRACK" ]
[ "select", "max", "(", "milliseconds", ")", ",", "min", "(", "milliseconds", ")", "from", "track" ]
[ "What-all", "are", "the", "durations", "of", "the", "most", "longest", "and", "the", "most", "shortest", "tracks", "in", "milliseconds?" ]
chinook_1
SELECT max(Milliseconds) , min(Milliseconds) FROM TRACK
Are Finding the maximum and minimum durations of tracks in milliseconds.
[ "SELECT", "max", "(", "Milliseconds", ")", ",", "min", "(", "Milliseconds", ")", "FROM", "TRACK" ]
[ "select", "max", "(", "milliseconds", ")", ",", "min", "(", "milliseconds", ")", "from", "track" ]
[ "Are", "Finding", "the", "maximum", "and", "minimum", "durations", "of", "tracks", "in", "milliseconds." ]
chinook_1
SELECT T1.Title , T2.AlbumID , COUNT(*) FROM ALBUM AS T1 JOIN TRACK AS T2 ON T1.AlbumId = T2.AlbumId GROUP BY T2.AlbumID
Are Showing the album names, ids and the number of tracks for each album.
[ "SELECT", "T1.Title", ",", "T2.AlbumID", ",", "COUNT", "(", "*", ")", "FROM", "ALBUM", "AS", "T1", "JOIN", "TRACK", "AS", "T2", "ON", "T1.AlbumId", "=", "T2.AlbumId", "GROUP", "BY", "T2.AlbumID" ]
[ "select", "t1", ".", "title", ",", "t2", ".", "albumid", ",", "count", "(", "*", ")", "from", "album", "as", "t1", "join", "track", "as", "t2", "on", "t1", ".", "albumid", "=", "t2", ".", "albumid", "group", "by", "t2", ".", "albumid" ]
[ "Are", "Showing", "the", "album", "names,", "ids", "and", "the", "number", "of", "tracks", "for", "each", "album." ]
chinook_1
SELECT T1.Title , T2.AlbumID , COUNT(*) FROM ALBUM AS T1 JOIN TRACK AS T2 ON T1.AlbumId = T2.AlbumId GROUP BY T2.AlbumID
What-all are the names and ids of the different albums, and so how many tracks are on each?
[ "SELECT", "T1.Title", ",", "T2.AlbumID", ",", "COUNT", "(", "*", ")", "FROM", "ALBUM", "AS", "T1", "JOIN", "TRACK", "AS", "T2", "ON", "T1.AlbumId", "=", "T2.AlbumId", "GROUP", "BY", "T2.AlbumID" ]
[ "select", "t1", ".", "title", ",", "t2", ".", "albumid", ",", "count", "(", "*", ")", "from", "album", "as", "t1", "join", "track", "as", "t2", "on", "t1", ".", "albumid", "=", "t2", ".", "albumid", "group", "by", "t2", ".", "albumid" ]
[ "What-all", "are", "the", "names", "and", "ids", "of", "the", "different", "albums,", "and", "so", "how", "many", "tracks", "are", "on", "each?" ]
chinook_1
SELECT T1.Name FROM GENRE AS T1 JOIN TRACK AS T2 ON T1.GenreId = T2.GenreId GROUP BY T2.GenreId ORDER BY COUNT(*) DESC LIMIT 1
What-all is the name of the most common genre in all tracks?
[ "SELECT", "T1.Name", "FROM", "GENRE", "AS", "T1", "JOIN", "TRACK", "AS", "T2", "ON", "T1.GenreId", "=", "T2.GenreId", "GROUP", "BY", "T2.GenreId", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC", "LIMIT", "1" ]
[ "select", "t1", ".", "name", "from", "genre", "as", "t1", "join", "track", "as", "t2", "on", "t1", ".", "genreid", "=", "t2", ".", "genreid", "group", "by", "t2", ".", "genreid", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ]
[ "What-all", "is", "the", "name", "of", "the", "most", "common", "genre", "in", "all", "tracks?" ]
chinook_1
SELECT T1.Name FROM GENRE AS T1 JOIN TRACK AS T2 ON T1.GenreId = T2.GenreId GROUP BY T2.GenreId ORDER BY COUNT(*) DESC LIMIT 1
Are Finding the name of the genre that is most frequent across all tracks.
[ "SELECT", "T1.Name", "FROM", "GENRE", "AS", "T1", "JOIN", "TRACK", "AS", "T2", "ON", "T1.GenreId", "=", "T2.GenreId", "GROUP", "BY", "T2.GenreId", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC", "LIMIT", "1" ]
[ "select", "t1", ".", "name", "from", "genre", "as", "t1", "join", "track", "as", "t2", "on", "t1", ".", "genreid", "=", "t2", ".", "genreid", "group", "by", "t2", ".", "genreid", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ]
[ "Are", "Finding", "the", "name", "of", "the", "genre", "that", "is", "most", "frequent", "across", "all", "tracks." ]
chinook_1
SELECT T1.Name FROM MEDIATYPE AS T1 JOIN TRACK AS T2 ON T1.MediaTypeId = T2.MediaTypeId GROUP BY T2.MediaTypeId ORDER BY COUNT(*) ASC LIMIT 1
What-all is the least common media type in all tracks?
[ "SELECT", "T1.Name", "FROM", "MEDIATYPE", "AS", "T1", "JOIN", "TRACK", "AS", "T2", "ON", "T1.MediaTypeId", "=", "T2.MediaTypeId", "GROUP", "BY", "T2.MediaTypeId", "ORDER", "BY", "COUNT", "(", "*", ")", "ASC", "LIMIT", "1" ]
[ "select", "t1", ".", "name", "from", "mediatype", "as", "t1", "join", "track", "as", "t2", "on", "t1", ".", "mediatypeid", "=", "t2", ".", "mediatypeid", "group", "by", "t2", ".", "mediatypeid", "order", "by", "count", "(", "*", ")", "asc", "limit", "value" ]
[ "What-all", "is", "the", "least", "common", "media", "type", "in", "all", "tracks?" ]
chinook_1
SELECT T1.Name FROM MEDIATYPE AS T1 JOIN TRACK AS T2 ON T1.MediaTypeId = T2.MediaTypeId GROUP BY T2.MediaTypeId ORDER BY COUNT(*) ASC LIMIT 1
What-all is the name of the media is least common all tracks type?
[ "SELECT", "T1.Name", "FROM", "MEDIATYPE", "AS", "T1", "JOIN", "TRACK", "AS", "T2", "ON", "T1.MediaTypeId", "=", "T2.MediaTypeId", "GROUP", "BY", "T2.MediaTypeId", "ORDER", "BY", "COUNT", "(", "*", ")", "ASC", "LIMIT", "1" ]
[ "select", "t1", ".", "name", "from", "mediatype", "as", "t1", "join", "track", "as", "t2", "on", "t1", ".", "mediatypeid", "=", "t2", ".", "mediatypeid", "group", "by", "t2", ".", "mediatypeid", "order", "by", "count", "(", "*", ")", "asc", "limit", "value" ]
[ "What-all", "is", "the", "name", "of", "the", "media", "is", "least", "common", "all", "tracks", "type?" ]
chinook_1
SELECT T1.Title , T2.AlbumID FROM ALBUM AS T1 JOIN TRACK AS T2 ON T1.AlbumId = T2.AlbumId WHERE T2.UnitPrice > 1 GROUP BY T2.AlbumID
Are Showing the album names and ids for albums is containing tracks with unit price more bigger than 1.
[ "SELECT", "T1.Title", ",", "T2.AlbumID", "FROM", "ALBUM", "AS", "T1", "JOIN", "TRACK", "AS", "T2", "ON", "T1.AlbumId", "=", "T2.AlbumId", "WHERE", "T2.UnitPrice", ">", "1", "GROUP", "BY", "T2.AlbumID" ]
[ "select", "t1", ".", "title", ",", "t2", ".", "albumid", "from", "album", "as", "t1", "join", "track", "as", "t2", "on", "t1", ".", "albumid", "=", "t2", ".", "albumid", "where", "t2", ".", "unitprice", ">", "value", "group", "by", "t2", ".", "albumid" ]
[ "Are", "Showing", "the", "album", "names", "and", "ids", "for", "albums", "is", "containing", "tracks", "with", "unit", "price", "more", "bigger", "than", "1." ]
chinook_1
SELECT T1.Title , T2.AlbumID FROM ALBUM AS T1 JOIN TRACK AS T2 ON T1.AlbumId = T2.AlbumId WHERE T2.UnitPrice > 1 GROUP BY T2.AlbumID
What-all are the titles and ids for albums containing tracks with unit price more greater as 1?
[ "SELECT", "T1.Title", ",", "T2.AlbumID", "FROM", "ALBUM", "AS", "T1", "JOIN", "TRACK", "AS", "T2", "ON", "T1.AlbumId", "=", "T2.AlbumId", "WHERE", "T2.UnitPrice", ">", "1", "GROUP", "BY", "T2.AlbumID" ]
[ "select", "t1", ".", "title", ",", "t2", ".", "albumid", "from", "album", "as", "t1", "join", "track", "as", "t2", "on", "t1", ".", "albumid", "=", "t2", ".", "albumid", "where", "t2", ".", "unitprice", ">", "value", "group", "by", "t2", ".", "albumid" ]
[ "What-all", "are", "the", "titles", "and", "ids", "for", "albums", "containing", "tracks", "with", "unit", "price", "more", "greater", "as", "1?" ]
chinook_1
SELECT COUNT(*) FROM GENRE AS T1 JOIN TRACK AS T2 ON T1.GenreId = T2.GenreId WHERE T1.Name = "Rock"
How many tracks are belonging to rock genre?
[ "SELECT", "COUNT", "(", "*", ")", "FROM", "GENRE", "AS", "T1", "JOIN", "TRACK", "AS", "T2", "ON", "T1.GenreId", "=", "T2.GenreId", "WHERE", "T1.Name", "=", "``", "Rock", "''" ]
[ "select", "count", "(", "*", ")", "from", "genre", "as", "t1", "join", "track", "as", "t2", "on", "t1", ".", "genreid", "=", "t2", ".", "genreid", "where", "t1", ".", "name", "=", "value" ]
[ "How", "many", "tracks", "are", "belonging", "to", "rock", "genre?" ]
chinook_1
SELECT COUNT(*) FROM GENRE AS T1 JOIN TRACK AS T2 ON T1.GenreId = T2.GenreId WHERE T1.Name = "Rock"
Are Counting the number of tracks are part of the rock genre.
[ "SELECT", "COUNT", "(", "*", ")", "FROM", "GENRE", "AS", "T1", "JOIN", "TRACK", "AS", "T2", "ON", "T1.GenreId", "=", "T2.GenreId", "WHERE", "T1.Name", "=", "``", "Rock", "''" ]
[ "select", "count", "(", "*", ")", "from", "genre", "as", "t1", "join", "track", "as", "t2", "on", "t1", ".", "genreid", "=", "t2", ".", "genreid", "where", "t1", ".", "name", "=", "value" ]
[ "Are", "Counting", "the", "number", "of", "tracks", "are", "part", "of", "the", "rock", "genre." ]
chinook_1
SELECT AVG(UnitPrice) FROM GENRE AS T1 JOIN TRACK AS T2 ON T1.GenreId = T2.GenreId WHERE T1.Name = "Jazz"
What-all is the average unit price of tracks that belong to Jazz genre?
[ "SELECT", "AVG", "(", "UnitPrice", ")", "FROM", "GENRE", "AS", "T1", "JOIN", "TRACK", "AS", "T2", "ON", "T1.GenreId", "=", "T2.GenreId", "WHERE", "T1.Name", "=", "``", "Jazz", "''" ]
[ "select", "avg", "(", "unitprice", ")", "from", "genre", "as", "t1", "join", "track", "as", "t2", "on", "t1", ".", "genreid", "=", "t2", ".", "genreid", "where", "t1", ".", "name", "=", "value" ]
[ "What-all", "is", "the", "average", "unit", "price", "of", "tracks", "that", "belong", "to", "Jazz", "genre?" ]
chinook_1
SELECT AVG(UnitPrice) FROM GENRE AS T1 JOIN TRACK AS T2 ON T1.GenreId = T2.GenreId WHERE T1.Name = "Jazz"
Find the average unit price of jazz tracks.
[ "SELECT", "AVG", "(", "UnitPrice", ")", "FROM", "GENRE", "AS", "T1", "JOIN", "TRACK", "AS", "T2", "ON", "T1.GenreId", "=", "T2.GenreId", "WHERE", "T1.Name", "=", "``", "Jazz", "''" ]
[ "select", "avg", "(", "unitprice", ")", "from", "genre", "as", "t1", "join", "track", "as", "t2", "on", "t1", ".", "genreid", "=", "t2", ".", "genreid", "where", "t1", ".", "name", "=", "value" ]
[ "Find", "the", "average", "unit", "price", "of", "jazz", "tracks." ]
chinook_1
SELECT FirstName , LastName FROM CUSTOMER WHERE Email = "[email protected]"
What-all is the first name and last name of the customer that has email "[email protected]"?
[ "SELECT", "FirstName", ",", "LastName", "FROM", "CUSTOMER", "WHERE", "Email", "=", "``", "luisg", "@", "embraer.com.br", "''" ]
[ "select", "firstname", ",", "lastname", "from", "customer", "where", "email", "=", "value" ]
[ "What-all", "is", "the", "first", "name", "and", "last", "name", "of", "the", "customer", "that", "has", "email", "\"[email protected]\"?" ]
chinook_1
SELECT FirstName , LastName FROM CUSTOMER WHERE Email = "[email protected]"
Find the full name of the customer with the email "[email protected]".
[ "SELECT", "FirstName", ",", "LastName", "FROM", "CUSTOMER", "WHERE", "Email", "=", "``", "luisg", "@", "embraer.com.br", "''" ]
[ "select", "firstname", ",", "lastname", "from", "customer", "where", "email", "=", "value" ]
[ "Find", "the", "full", "name", "of", "the", "customer", "with", "the", "email", "\"[email protected]\"." ]
chinook_1
SELECT COUNT(*) FROM CUSTOMER WHERE Email LIKE "%gmail.com%"
How many customers have contains "gmail.com email"?
[ "SELECT", "COUNT", "(", "*", ")", "FROM", "CUSTOMER", "WHERE", "Email", "LIKE", "``", "%", "gmail.com", "%", "''" ]
[ "select", "count", "(", "*", ")", "from", "customer", "where", "email", "like", "value" ]
[ "How", "many", "customers", "have", "contains", "\"gmail.com", "email\"?" ]
chinook_1
SELECT COUNT(*) FROM CUSTOMER WHERE Email LIKE "%gmail.com%"
Are Counting the number of customers have an emails a-containing "gmail.com".
[ "SELECT", "COUNT", "(", "*", ")", "FROM", "CUSTOMER", "WHERE", "Email", "LIKE", "``", "%", "gmail.com", "%", "''" ]
[ "select", "count", "(", "*", ")", "from", "customer", "where", "email", "like", "value" ]
[ "Are", "Counting", "the", "number", "of", "customers", "have", "an", "emails", "a-containing", "\"gmail.com\"." ]
chinook_1
SELECT T2.FirstName , T2.LastName FROM CUSTOMER AS T1 JOIN EMPLOYEE AS T2 ON T1.SupportRepId = T2.EmployeeId WHERE T1.FirstName = "Leonie"
What-all is the first name and last name employee are helping the first name customer Leonie?
[ "SELECT", "T2.FirstName", ",", "T2.LastName", "FROM", "CUSTOMER", "AS", "T1", "JOIN", "EMPLOYEE", "AS", "T2", "ON", "T1.SupportRepId", "=", "T2.EmployeeId", "WHERE", "T1.FirstName", "=", "``", "Leonie", "''" ]
[ "select", "t2", ".", "firstname", ",", "t2", ".", "lastname", "from", "customer", "as", "t1", "join", "employee", "as", "t2", "on", "t1", ".", "supportrepid", "=", "t2", ".", "employeeid", "where", "t1", ".", "firstname", "=", "value" ]
[ "What-all", "is", "the", "first", "name", "and", "last", "name", "employee", "are", "helping", "the", "first", "name", "customer", "Leonie?" ]
chinook_1
SELECT T2.FirstName , T2.LastName FROM CUSTOMER AS T1 JOIN EMPLOYEE AS T2 ON T1.SupportRepId = T2.EmployeeId WHERE T1.FirstName = "Leonie"
Find the full names of employees which help customers with the first name Leonie.
[ "SELECT", "T2.FirstName", ",", "T2.LastName", "FROM", "CUSTOMER", "AS", "T1", "JOIN", "EMPLOYEE", "AS", "T2", "ON", "T1.SupportRepId", "=", "T2.EmployeeId", "WHERE", "T1.FirstName", "=", "``", "Leonie", "''" ]
[ "select", "t2", ".", "firstname", ",", "t2", ".", "lastname", "from", "customer", "as", "t1", "join", "employee", "as", "t2", "on", "t1", ".", "supportrepid", "=", "t2", ".", "employeeid", "where", "t1", ".", "firstname", "=", "value" ]
[ "Find", "the", "full", "names", "of", "employees", "which", "help", "customers", "with", "the", "first", "name", "Leonie." ]
chinook_1
SELECT T2.City FROM CUSTOMER AS T1 JOIN EMPLOYEE AS T2 ON T1.SupportRepId = T2.EmployeeId WHERE T1.PostalCode = "70174"
What city does the employee who is helping the customer with postal code 70174 live in?
[ "SELECT", "T2.City", "FROM", "CUSTOMER", "AS", "T1", "JOIN", "EMPLOYEE", "AS", "T2", "ON", "T1.SupportRepId", "=", "T2.EmployeeId", "WHERE", "T1.PostalCode", "=", "``", "70174", "''" ]
[ "select", "t2", ".", "city", "from", "customer", "as", "t1", "join", "employee", "as", "t2", "on", "t1", ".", "supportrepid", "=", "t2", ".", "employeeid", "where", "t1", ".", "postalcode", "=", "value" ]
[ "What", "city", "does", "the", "employee", "who", "is", "helping", "the", "customer", "with", "postal", "code", "70174", "live", "in?" ]
chinook_1
SELECT T2.City FROM CUSTOMER AS T1 JOIN EMPLOYEE AS T2 ON T1.SupportRepId = T2.EmployeeId WHERE T1.PostalCode = "70174"
Find the cities corresponding to employees which help customers with the postal code 70174.
[ "SELECT", "T2.City", "FROM", "CUSTOMER", "AS", "T1", "JOIN", "EMPLOYEE", "AS", "T2", "ON", "T1.SupportRepId", "=", "T2.EmployeeId", "WHERE", "T1.PostalCode", "=", "``", "70174", "''" ]
[ "select", "t2", ".", "city", "from", "customer", "as", "t1", "join", "employee", "as", "t2", "on", "t1", ".", "supportrepid", "=", "t2", ".", "employeeid", "where", "t1", ".", "postalcode", "=", "value" ]
[ "Find", "the", "cities", "corresponding", "to", "employees", "which", "help", "customers", "with", "the", "postal", "code", "70174." ]
chinook_1
SELECT COUNT(DISTINCT city) FROM EMPLOYEE
How many distinct cities does the employees live in?
[ "SELECT", "COUNT", "(", "DISTINCT", "city", ")", "FROM", "EMPLOYEE" ]
[ "select", "count", "(", "distinct", "city", ")", "from", "employee" ]
[ "How", "many", "distinct", "cities", "does", "the", "employees", "live", "in?" ]
chinook_1
SELECT COUNT(DISTINCT city) FROM EMPLOYEE
Are Finding the number of different cities that employees are living in.
[ "SELECT", "COUNT", "(", "DISTINCT", "city", ")", "FROM", "EMPLOYEE" ]
[ "select", "count", "(", "distinct", "city", ")", "from", "employee" ]
[ "Are", "Finding", "the", "number", "of", "different", "cities", "that", "employees", "are", "living", "in." ]
chinook_1
SELECT T2.InvoiceDate FROM CUSTOMER AS T1 JOIN INVOICE AS T2 ON T1.CustomerId = T2.CustomerId WHERE T1.FirstName = "Astrid" AND LastName = "Gruber"
Are Finding all invoice dates corresponding to customers with first name Astrid and last name Gruber.
[ "SELECT", "T2.InvoiceDate", "FROM", "CUSTOMER", "AS", "T1", "JOIN", "INVOICE", "AS", "T2", "ON", "T1.CustomerId", "=", "T2.CustomerId", "WHERE", "T1.FirstName", "=", "``", "Astrid", "''", "AND", "LastName", "=", "``", "Gruber", "''" ]
[ "select", "t2", ".", "invoicedate", "from", "customer", "as", "t1", "join", "invoice", "as", "t2", "on", "t1", ".", "customerid", "=", "t2", ".", "customerid", "where", "t1", ".", "firstname", "=", "value", "and", "lastname", "=", "value" ]
[ "Are", "Finding", "all", "invoice", "dates", "corresponding", "to", "customers", "with", "first", "name", "Astrid", "and", "last", "name", "Gruber." ]
chinook_1
SELECT T2.InvoiceDate FROM CUSTOMER AS T1 JOIN INVOICE AS T2 ON T1.CustomerId = T2.CustomerId WHERE T1.FirstName = "Astrid" AND LastName = "Gruber"
What-all are the invoice dates for customers with the first name Astrid and the last name Gruber?
[ "SELECT", "T2.InvoiceDate", "FROM", "CUSTOMER", "AS", "T1", "JOIN", "INVOICE", "AS", "T2", "ON", "T1.CustomerId", "=", "T2.CustomerId", "WHERE", "T1.FirstName", "=", "``", "Astrid", "''", "AND", "LastName", "=", "``", "Gruber", "''" ]
[ "select", "t2", ".", "invoicedate", "from", "customer", "as", "t1", "join", "invoice", "as", "t2", "on", "t1", ".", "customerid", "=", "t2", ".", "customerid", "where", "t1", ".", "firstname", "=", "value", "and", "lastname", "=", "value" ]
[ "What-all", "are", "the", "invoice", "dates", "for", "customers", "with", "the", "first", "name", "Astrid", "and", "the", "last", "name", "Gruber?" ]
chinook_1
SELECT LastName FROM CUSTOMER EXCEPT SELECT T1.LastName FROM CUSTOMER AS T1 JOIN Invoice AS T2 ON T1.CustomerId = T2.CustomerId WHERE T2.total > 20
Are Finding all the customers last names do ain't invoice totals larger than 20.
[ "SELECT", "LastName", "FROM", "CUSTOMER", "EXCEPT", "SELECT", "T1.LastName", "FROM", "CUSTOMER", "AS", "T1", "JOIN", "Invoice", "AS", "T2", "ON", "T1.CustomerId", "=", "T2.CustomerId", "WHERE", "T2.total", ">", "20" ]
[ "select", "lastname", "from", "customer", "except", "select", "t1", ".", "lastname", "from", "customer", "as", "t1", "join", "invoice", "as", "t2", "on", "t1", ".", "customerid", "=", "t2", ".", "customerid", "where", "t2", ".", "total", ">", "value" ]
[ "Are", "Finding", "all", "the", "customers", "last", "names", "do", "ain't", "invoice", "totals", "larger", "than", "20." ]
chinook_1
SELECT LastName FROM CUSTOMER EXCEPT SELECT T1.LastName FROM CUSTOMER AS T1 JOIN Invoice AS T2 ON T1.CustomerId = T2.CustomerId WHERE T2.total > 20
What-all are the last names of customers without invoice totals exceeding 20?
[ "SELECT", "LastName", "FROM", "CUSTOMER", "EXCEPT", "SELECT", "T1.LastName", "FROM", "CUSTOMER", "AS", "T1", "JOIN", "Invoice", "AS", "T2", "ON", "T1.CustomerId", "=", "T2.CustomerId", "WHERE", "T2.total", ">", "20" ]
[ "select", "lastname", "from", "customer", "except", "select", "t1", ".", "lastname", "from", "customer", "as", "t1", "join", "invoice", "as", "t2", "on", "t1", ".", "customerid", "=", "t2", ".", "customerid", "where", "t2", ".", "total", ">", "value" ]
[ "What-all", "are", "the", "last", "names", "of", "customers", "without", "invoice", "totals", "exceeding", "20?" ]
chinook_1
SELECT DISTINCT T1.FirstName FROM CUSTOMER AS T1 JOIN INVOICE AS T2 ON T1.CustomerId = T2.CustomerId WHERE T1.country = "Brazil"
Find the first names of all customers live in Brazil and have an invoice.
[ "SELECT", "DISTINCT", "T1.FirstName", "FROM", "CUSTOMER", "AS", "T1", "JOIN", "INVOICE", "AS", "T2", "ON", "T1.CustomerId", "=", "T2.CustomerId", "WHERE", "T1.country", "=", "``", "Brazil", "''" ]
[ "select", "distinct", "t1", ".", "firstname", "from", "customer", "as", "t1", "join", "invoice", "as", "t2", "on", "t1", ".", "customerid", "=", "t2", ".", "customerid", "where", "t1", ".", "country", "=", "value" ]
[ "Find", "the", "first", "names", "of", "all", "customers", "live", "in", "Brazil", "and", "have", "an", "invoice." ]
chinook_1
SELECT DISTINCT T1.FirstName FROM CUSTOMER AS T1 JOIN INVOICE AS T2 ON T1.CustomerId = T2.CustomerId WHERE T1.country = "Brazil"
What-all are the different first names for customers from Brazil have done also had an invoice?
[ "SELECT", "DISTINCT", "T1.FirstName", "FROM", "CUSTOMER", "AS", "T1", "JOIN", "INVOICE", "AS", "T2", "ON", "T1.CustomerId", "=", "T2.CustomerId", "WHERE", "T1.country", "=", "``", "Brazil", "''" ]
[ "select", "distinct", "t1", ".", "firstname", "from", "customer", "as", "t1", "join", "invoice", "as", "t2", "on", "t1", ".", "customerid", "=", "t2", ".", "customerid", "where", "t1", ".", "country", "=", "value" ]
[ "What-all", "are", "the", "different", "first", "names", "for", "customers", "from", "Brazil", "have", "done", "also", "had", "an", "invoice?" ]
chinook_1
SELECT DISTINCT T1.Address FROM CUSTOMER AS T1 JOIN INVOICE AS T2 ON T1.CustomerId = T2.CustomerId WHERE T1.country = "Germany"
Are Finding the address of all customers is living in Germany and have invoice.
[ "SELECT", "DISTINCT", "T1.Address", "FROM", "CUSTOMER", "AS", "T1", "JOIN", "INVOICE", "AS", "T2", "ON", "T1.CustomerId", "=", "T2.CustomerId", "WHERE", "T1.country", "=", "``", "Germany", "''" ]
[ "select", "distinct", "t1", ".", "address", "from", "customer", "as", "t1", "join", "invoice", "as", "t2", "on", "t1", ".", "customerid", "=", "t2", ".", "customerid", "where", "t1", ".", "country", "=", "value" ]
[ "Are", "Finding", "the", "address", "of", "all", "customers", "is", "living", "in", "Germany", "and", "have", "invoice." ]
chinook_1
SELECT DISTINCT T1.Address FROM CUSTOMER AS T1 JOIN INVOICE AS T2 ON T1.CustomerId = T2.CustomerId WHERE T1.country = "Germany"
What-all are the addresses of customers living in Germany which had an invoice?
[ "SELECT", "DISTINCT", "T1.Address", "FROM", "CUSTOMER", "AS", "T1", "JOIN", "INVOICE", "AS", "T2", "ON", "T1.CustomerId", "=", "T2.CustomerId", "WHERE", "T1.country", "=", "``", "Germany", "''" ]
[ "select", "distinct", "t1", ".", "address", "from", "customer", "as", "t1", "join", "invoice", "as", "t2", "on", "t1", ".", "customerid", "=", "t2", ".", "customerid", "where", "t1", ".", "country", "=", "value" ]
[ "What-all", "are", "the", "addresses", "of", "customers", "living", "in", "Germany", "which", "had", "an", "invoice?" ]
chinook_1
SELECT Phone FROM EMPLOYEE
List the phone all employees numbers.
[ "SELECT", "Phone", "FROM", "EMPLOYEE" ]
[ "select", "phone", "from", "employee" ]
[ "List", "the", "phone", "all", "employees", "numbers." ]
chinook_1
SELECT Phone FROM EMPLOYEE
What-all are the phone numbers for each employee?
[ "SELECT", "Phone", "FROM", "EMPLOYEE" ]
[ "select", "phone", "from", "employee" ]
[ "What-all", "are", "the", "phone", "numbers", "for", "each", "employee?" ]
chinook_1
SELECT COUNT(*) FROM MEDIATYPE AS T1 JOIN TRACK AS T2 ON T1.MediaTypeId = T2.MediaTypeId WHERE T1.Name = "AAC audio file"
How many tracks are in the AAC audio file media type?
[ "SELECT", "COUNT", "(", "*", ")", "FROM", "MEDIATYPE", "AS", "T1", "JOIN", "TRACK", "AS", "T2", "ON", "T1.MediaTypeId", "=", "T2.MediaTypeId", "WHERE", "T1.Name", "=", "``", "AAC", "audio", "file", "''" ]
[ "select", "count", "(", "*", ")", "from", "mediatype", "as", "t1", "join", "track", "as", "t2", "on", "t1", ".", "mediatypeid", "=", "t2", ".", "mediatypeid", "where", "t1", ".", "name", "=", "value" ]
[ "How", "many", "tracks", "are", "in", "the", "AAC", "audio", "file", "media", "type?" ]
chinook_1
SELECT COUNT(*) FROM MEDIATYPE AS T1 JOIN TRACK AS T2 ON T1.MediaTypeId = T2.MediaTypeId WHERE T1.Name = "AAC audio file"
Are Counting the number of tracks are of the media types "AAC audios file".
[ "SELECT", "COUNT", "(", "*", ")", "FROM", "MEDIATYPE", "AS", "T1", "JOIN", "TRACK", "AS", "T2", "ON", "T1.MediaTypeId", "=", "T2.MediaTypeId", "WHERE", "T1.Name", "=", "``", "AAC", "audio", "file", "''" ]
[ "select", "count", "(", "*", ")", "from", "mediatype", "as", "t1", "join", "track", "as", "t2", "on", "t1", ".", "mediatypeid", "=", "t2", ".", "mediatypeid", "where", "t1", ".", "name", "=", "value" ]
[ "Are", "Counting", "the", "number", "of", "tracks", "are", "of", "the", "media", "types", "\"AAC", "audios", "file\"." ]
chinook_1
SELECT AVG(Milliseconds) FROM GENRE AS T1 JOIN TRACK AS T2 ON T1.GenreId = T2.GenreId WHERE T1.Name = "Latin" OR T1.Name = "Pop"
What-all is the average duration in milliseconds of tracks is belonging to Latin or Are Popping genre?
[ "SELECT", "AVG", "(", "Milliseconds", ")", "FROM", "GENRE", "AS", "T1", "JOIN", "TRACK", "AS", "T2", "ON", "T1.GenreId", "=", "T2.GenreId", "WHERE", "T1.Name", "=", "``", "Latin", "''", "OR", "T1.Name", "=", "``", "Pop", "''" ]
[ "select", "avg", "(", "milliseconds", ")", "from", "genre", "as", "t1", "join", "track", "as", "t2", "on", "t1", ".", "genreid", "=", "t2", ".", "genreid", "where", "t1", ".", "name", "=", "value", "or", "t1", ".", "name", "=", "value" ]
[ "What-all", "is", "the", "average", "duration", "in", "milliseconds", "of", "tracks", "is", "belonging", "to", "Latin", "or", "Are", "Popping", "genre?" ]
chinook_1
SELECT AVG(Milliseconds) FROM GENRE AS T1 JOIN TRACK AS T2 ON T1.GenreId = T2.GenreId WHERE T1.Name = "Latin" OR T1.Name = "Pop"
Are Finding the average millisecond length of Latin and Pop tracks.
[ "SELECT", "AVG", "(", "Milliseconds", ")", "FROM", "GENRE", "AS", "T1", "JOIN", "TRACK", "AS", "T2", "ON", "T1.GenreId", "=", "T2.GenreId", "WHERE", "T1.Name", "=", "``", "Latin", "''", "OR", "T1.Name", "=", "``", "Pop", "''" ]
[ "select", "avg", "(", "milliseconds", ")", "from", "genre", "as", "t1", "join", "track", "as", "t2", "on", "t1", ".", "genreid", "=", "t2", ".", "genreid", "where", "t1", ".", "name", "=", "value", "or", "t1", ".", "name", "=", "value" ]
[ "Are", "Finding", "the", "average", "millisecond", "length", "of", "Latin", "and", "Pop", "tracks." ]
chinook_1
SELECT T1.FirstName , T1.SupportRepId FROM CUSTOMER AS T1 JOIN EMPLOYEE AS T2 ON T1.SupportRepId = T2.EmployeeId GROUP BY T1.SupportRepId HAVING COUNT(*) >= 10
Please show the employee first names and ids of employees which serve at least 10 customer.
[ "SELECT", "T1.FirstName", ",", "T1.SupportRepId", "FROM", "CUSTOMER", "AS", "T1", "JOIN", "EMPLOYEE", "AS", "T2", "ON", "T1.SupportRepId", "=", "T2.EmployeeId", "GROUP", "BY", "T1.SupportRepId", "HAVING", "COUNT", "(", "*", ")", ">", "=", "10" ]
[ "select", "t1", ".", "firstname", ",", "t1", ".", "supportrepid", "from", "customer", "as", "t1", "join", "employee", "as", "t2", "on", "t1", ".", "supportrepid", "=", "t2", ".", "employeeid", "group", "by", "t1", ".", "supportrepid", "having", "count", "(", "*", ")", ">", "=", "value" ]
[ "Please", "show", "the", "employee", "first", "names", "and", "ids", "of", "employees", "which", "serve", "at", "least", "10", "customer." ]
chinook_1
SELECT T1.FirstName , T1.SupportRepId FROM CUSTOMER AS T1 JOIN EMPLOYEE AS T2 ON T1.SupportRepId = T2.EmployeeId GROUP BY T1.SupportRepId HAVING COUNT(*) >= 10
What-all are the first names and support rep ids for employees a-serving 10 or more customer?
[ "SELECT", "T1.FirstName", ",", "T1.SupportRepId", "FROM", "CUSTOMER", "AS", "T1", "JOIN", "EMPLOYEE", "AS", "T2", "ON", "T1.SupportRepId", "=", "T2.EmployeeId", "GROUP", "BY", "T1.SupportRepId", "HAVING", "COUNT", "(", "*", ")", ">", "=", "10" ]
[ "select", "t1", ".", "firstname", ",", "t1", ".", "supportrepid", "from", "customer", "as", "t1", "join", "employee", "as", "t2", "on", "t1", ".", "supportrepid", "=", "t2", ".", "employeeid", "group", "by", "t1", ".", "supportrepid", "having", "count", "(", "*", ")", ">", "=", "value" ]
[ "What-all", "are", "the", "first", "names", "and", "support", "rep", "ids", "for", "employees", "a-serving", "10", "or", "more", "customer?" ]
chinook_1
SELECT T1.LastName FROM CUSTOMER AS T1 JOIN EMPLOYEE AS T2 ON T1.SupportRepId = T2.EmployeeId GROUP BY T1.SupportRepId HAVING COUNT(*) <= 20
Please show the employee last names serves no more than 20 customer.
[ "SELECT", "T1.LastName", "FROM", "CUSTOMER", "AS", "T1", "JOIN", "EMPLOYEE", "AS", "T2", "ON", "T1.SupportRepId", "=", "T2.EmployeeId", "GROUP", "BY", "T1.SupportRepId", "HAVING", "COUNT", "(", "*", ")", "<", "=", "20" ]
[ "select", "t1", ".", "lastname", "from", "customer", "as", "t1", "join", "employee", "as", "t2", "on", "t1", ".", "supportrepid", "=", "t2", ".", "employeeid", "group", "by", "t1", ".", "supportrepid", "having", "count", "(", "*", ")", "<", "=", "value" ]
[ "Please", "show", "the", "employee", "last", "names", "serves", "no", "more", "than", "20", "customer." ]
chinook_1
SELECT T1.LastName FROM CUSTOMER AS T1 JOIN EMPLOYEE AS T2 ON T1.SupportRepId = T2.EmployeeId GROUP BY T1.SupportRepId HAVING COUNT(*) <= 20
What-all are the last names of which is serving most 20 customers employees?
[ "SELECT", "T1.LastName", "FROM", "CUSTOMER", "AS", "T1", "JOIN", "EMPLOYEE", "AS", "T2", "ON", "T1.SupportRepId", "=", "T2.EmployeeId", "GROUP", "BY", "T1.SupportRepId", "HAVING", "COUNT", "(", "*", ")", "<", "=", "20" ]
[ "select", "t1", ".", "lastname", "from", "customer", "as", "t1", "join", "employee", "as", "t2", "on", "t1", ".", "supportrepid", "=", "t2", ".", "employeeid", "group", "by", "t1", ".", "supportrepid", "having", "count", "(", "*", ")", "<", "=", "value" ]
[ "What-all", "are", "the", "last", "names", "of", "which", "is", "serving", "most", "20", "customers", "employees?" ]
chinook_1
SELECT Title FROM ALBUM ORDER BY Title
Please are listing all album titles in alphabetical order.
[ "SELECT", "Title", "FROM", "ALBUM", "ORDER", "BY", "Title" ]
[ "select", "title", "from", "album", "order", "by", "title" ]
[ "Please", "are", "listing", "all", "album", "titles", "in", "alphabetical", "order." ]
chinook_1
SELECT Title FROM ALBUM ORDER BY Title
What-all are all the album titles, in alphabetical order?
[ "SELECT", "Title", "FROM", "ALBUM", "ORDER", "BY", "Title" ]
[ "select", "title", "from", "album", "order", "by", "title" ]
[ "What-all", "are", "all", "the", "album", "titles,", "in", "alphabetical", "order?" ]
chinook_1
SELECT T2.Name , T1.ArtistId FROM ALBUM AS T1 JOIN ARTIST AS T2 ON T1.ArtistId = T2.ArtistID GROUP BY T1.ArtistId HAVING COUNT(*) >= 3 ORDER BY T2.Name
Please list the name and imight would of all artists that have at least 3 album in alphabetical order.
[ "SELECT", "T2.Name", ",", "T1.ArtistId", "FROM", "ALBUM", "AS", "T1", "JOIN", "ARTIST", "AS", "T2", "ON", "T1.ArtistId", "=", "T2.ArtistID", "GROUP", "BY", "T1.ArtistId", "HAVING", "COUNT", "(", "*", ")", ">", "=", "3", "ORDER", "BY", "T2.Name" ]
[ "select", "t2", ".", "name", ",", "t1", ".", "artistid", "from", "album", "as", "t1", "join", "artist", "as", "t2", "on", "t1", ".", "artistid", "=", "t2", ".", "artistid", "group", "by", "t1", ".", "artistid", "having", "count", "(", "*", ")", ">", "=", "value", "order", "by", "t2", ".", "name" ]
[ "Please", "list", "the", "name", "and", "imight", "would", "of", "all", "artists", "that", "have", "at", "least", "3", "album", "in", "alphabetical", "order." ]
chinook_1
SELECT T2.Name , T1.ArtistId FROM ALBUM AS T1 JOIN ARTIST AS T2 ON T1.ArtistId = T2.ArtistID GROUP BY T1.ArtistId HAVING COUNT(*) >= 3 ORDER BY T2.Name
What-all are the names and ids of artists with 3 or more albums, a-listed in alphabetical order?
[ "SELECT", "T2.Name", ",", "T1.ArtistId", "FROM", "ALBUM", "AS", "T1", "JOIN", "ARTIST", "AS", "T2", "ON", "T1.ArtistId", "=", "T2.ArtistID", "GROUP", "BY", "T1.ArtistId", "HAVING", "COUNT", "(", "*", ")", ">", "=", "3", "ORDER", "BY", "T2.Name" ]
[ "select", "t2", ".", "name", ",", "t1", ".", "artistid", "from", "album", "as", "t1", "join", "artist", "as", "t2", "on", "t1", ".", "artistid", "=", "t2", ".", "artistid", "group", "by", "t1", ".", "artistid", "having", "count", "(", "*", ")", ">", "=", "value", "order", "by", "t2", ".", "name" ]
[ "What-all", "are", "the", "names", "and", "ids", "of", "artists", "with", "3", "or", "more", "albums,", "a-listed", "in", "alphabetical", "order?" ]
chinook_1
SELECT Name FROM ARTIST EXCEPT SELECT T2.Name FROM ALBUM AS T1 JOIN ARTIST AS T2 ON T1.ArtistId = T2.ArtistId
Find the names of artists do ain't no albums.
[ "SELECT", "Name", "FROM", "ARTIST", "EXCEPT", "SELECT", "T2.Name", "FROM", "ALBUM", "AS", "T1", "JOIN", "ARTIST", "AS", "T2", "ON", "T1.ArtistId", "=", "T2.ArtistId" ]
[ "select", "name", "from", "artist", "except", "select", "t2", ".", "name", "from", "album", "as", "t1", "join", "artist", "as", "t2", "on", "t1", ".", "artistid", "=", "t2", ".", "artistid" ]
[ "Find", "the", "names", "of", "artists", "do", "ain't", "no", "albums." ]
chinook_1
SELECT Name FROM ARTIST EXCEPT SELECT T2.Name FROM ALBUM AS T1 JOIN ARTIST AS T2 ON T1.ArtistId = T2.ArtistId
What-all are the names of artists who ain't a-released no albums?
[ "SELECT", "Name", "FROM", "ARTIST", "EXCEPT", "SELECT", "T2.Name", "FROM", "ALBUM", "AS", "T1", "JOIN", "ARTIST", "AS", "T2", "ON", "T1.ArtistId", "=", "T2.ArtistId" ]
[ "select", "name", "from", "artist", "except", "select", "t2", ".", "name", "from", "album", "as", "t1", "join", "artist", "as", "t2", "on", "t1", ".", "artistid", "=", "t2", ".", "artistid" ]
[ "What-all", "are", "the", "names", "of", "artists", "who", "ain't", "a-released", "no", "albums?" ]
chinook_1
SELECT AVG(T2.UnitPrice) FROM GENRE AS T1 JOIN TRACK AS T2 ON T1.GenreId = T2.GenreId WHERE T1.Name = "Rock"
What-all is the average unit price of rock tracks?
[ "SELECT", "AVG", "(", "T2.UnitPrice", ")", "FROM", "GENRE", "AS", "T1", "JOIN", "TRACK", "AS", "T2", "ON", "T1.GenreId", "=", "T2.GenreId", "WHERE", "T1.Name", "=", "``", "Rock", "''" ]
[ "select", "avg", "(", "t2", ".", "unitprice", ")", "from", "genre", "as", "t1", "join", "track", "as", "t2", "on", "t1", ".", "genreid", "=", "t2", ".", "genreid", "where", "t1", ".", "name", "=", "value" ]
[ "What-all", "is", "the", "average", "unit", "price", "of", "rock", "tracks?" ]
chinook_1
SELECT AVG(T2.UnitPrice) FROM GENRE AS T1 JOIN TRACK AS T2 ON T1.GenreId = T2.GenreId WHERE T1.Name = "Rock"
Find the average unit price of tracks from the Rock genre.
[ "SELECT", "AVG", "(", "T2.UnitPrice", ")", "FROM", "GENRE", "AS", "T1", "JOIN", "TRACK", "AS", "T2", "ON", "T1.GenreId", "=", "T2.GenreId", "WHERE", "T1.Name", "=", "``", "Rock", "''" ]
[ "select", "avg", "(", "t2", ".", "unitprice", ")", "from", "genre", "as", "t1", "join", "track", "as", "t2", "on", "t1", ".", "genreid", "=", "t2", ".", "genreid", "where", "t1", ".", "name", "=", "value" ]
[ "Find", "the", "average", "unit", "price", "of", "tracks", "from", "the", "Rock", "genre." ]
chinook_1
SELECT max(Milliseconds) , min(Milliseconds) FROM GENRE AS T1 JOIN TRACK AS T2 ON T1.GenreId = T2.GenreId WHERE T1.Name = "Pop"
What-all are the duration of the most longest and most shortest pop milliseconds tracks?
[ "SELECT", "max", "(", "Milliseconds", ")", ",", "min", "(", "Milliseconds", ")", "FROM", "GENRE", "AS", "T1", "JOIN", "TRACK", "AS", "T2", "ON", "T1.GenreId", "=", "T2.GenreId", "WHERE", "T1.Name", "=", "``", "Pop", "''" ]
[ "select", "max", "(", "milliseconds", ")", ",", "min", "(", "milliseconds", ")", "from", "genre", "as", "t1", "join", "track", "as", "t2", "on", "t1", ".", "genreid", "=", "t2", ".", "genreid", "where", "t1", ".", "name", "=", "value" ]
[ "What-all", "are", "the", "duration", "of", "the", "most", "longest", "and", "most", "shortest", "pop", "milliseconds", "tracks?" ]
chinook_1
SELECT max(Milliseconds) , min(Milliseconds) FROM GENRE AS T1 JOIN TRACK AS T2 ON T1.GenreId = T2.GenreId WHERE T1.Name = "Pop"
Find the maximum and minimum millisecond lengths of pop tracks.
[ "SELECT", "max", "(", "Milliseconds", ")", ",", "min", "(", "Milliseconds", ")", "FROM", "GENRE", "AS", "T1", "JOIN", "TRACK", "AS", "T2", "ON", "T1.GenreId", "=", "T2.GenreId", "WHERE", "T1.Name", "=", "``", "Pop", "''" ]
[ "select", "max", "(", "milliseconds", ")", ",", "min", "(", "milliseconds", ")", "from", "genre", "as", "t1", "join", "track", "as", "t2", "on", "t1", ".", "genreid", "=", "t2", ".", "genreid", "where", "t1", ".", "name", "=", "value" ]
[ "Find", "the", "maximum", "and", "minimum", "millisecond", "lengths", "of", "pop", "tracks." ]
chinook_1
SELECT BirthDate FROM EMPLOYEE WHERE City = "Edmonton"
What-all are the birth dates of employees a-living in Edmonton?
[ "SELECT", "BirthDate", "FROM", "EMPLOYEE", "WHERE", "City", "=", "``", "Edmonton", "''" ]
[ "select", "birthdate", "from", "employee", "where", "city", "=", "value" ]
[ "What-all", "are", "the", "birth", "dates", "of", "employees", "a-living", "in", "Edmonton?" ]
chinook_1
SELECT BirthDate FROM EMPLOYEE WHERE City = "Edmonton"
Find the birth dates corresponding to employees at live in the city of Edmonton.
[ "SELECT", "BirthDate", "FROM", "EMPLOYEE", "WHERE", "City", "=", "``", "Edmonton", "''" ]
[ "select", "birthdate", "from", "employee", "where", "city", "=", "value" ]
[ "Find", "the", "birth", "dates", "corresponding", "to", "employees", "at", "live", "in", "the", "city", "of", "Edmonton." ]
chinook_1
SELECT distinct(UnitPrice) FROM TRACK
What-all are the distinct unit prices of all tracks?
[ "SELECT", "distinct", "(", "UnitPrice", ")", "FROM", "TRACK" ]
[ "select", "distinct", "(", "unitprice", ")", "from", "track" ]
[ "What-all", "are", "the", "distinct", "unit", "prices", "of", "all", "tracks?" ]
chinook_1
SELECT distinct(UnitPrice) FROM TRACK
Are Finding the distinct unit tracks prices.
[ "SELECT", "distinct", "(", "UnitPrice", ")", "FROM", "TRACK" ]
[ "select", "distinct", "(", "unitprice", ")", "from", "track" ]
[ "Are", "Finding", "the", "distinct", "unit", "tracks", "prices." ]
chinook_1
SELECT count(*) FROM ARTIST WHERE artistid NOT IN(SELECT artistid FROM ALBUM)
How many artists do ain't no album?
[ "SELECT", "count", "(", "*", ")", "FROM", "ARTIST", "WHERE", "artistid", "NOT", "IN", "(", "SELECT", "artistid", "FROM", "ALBUM", ")" ]
[ "select", "count", "(", "*", ")", "from", "artist", "where", "artistid", "not", "in", "(", "select", "artistid", "from", "album", ")" ]
[ "How", "many", "artists", "do", "ain't", "no", "album?" ]
chinook_1
SELECT count(*) FROM ARTIST WHERE artistid NOT IN(SELECT artistid FROM ALBUM)
Are Counding the number of artists as ain't a-released no album.
[ "SELECT", "count", "(", "*", ")", "FROM", "ARTIST", "WHERE", "artistid", "NOT", "IN", "(", "SELECT", "artistid", "FROM", "ALBUM", ")" ]
[ "select", "count", "(", "*", ")", "from", "artist", "where", "artistid", "not", "in", "(", "select", "artistid", "from", "album", ")" ]
[ "Are", "Counding", "the", "number", "of", "artists", "as", "ain't", "a-released", "no", "album." ]
chinook_1
SELECT T1.Title FROM Album AS T1 JOIN Track AS T2 ON T1.AlbumId = T2.AlbumId JOIN Genre AS T3 ON T2.GenreID = T3.GenreID WHERE T3.Name = 'Reggae' INTERSECT SELECT T1.Title FROM Album AS T1 JOIN Track AS T2 ON T1.AlbumId = T2.AlbumId JOIN Genre AS T3 ON T2.GenreID = T3.GenreID WHERE T3.Name = 'Rock'
What-all are the album titles for albums a-containing both 'Reggae' and 'Rock' genre tracks?
[ "SELECT", "T1.Title", "FROM", "Album", "AS", "T1", "JOIN", "Track", "AS", "T2", "ON", "T1.AlbumId", "=", "T2.AlbumId", "JOIN", "Genre", "AS", "T3", "ON", "T2.GenreID", "=", "T3.GenreID", "WHERE", "T3.Name", "=", "'Reggae", "'", "INTERSECT", "SELECT", "T1.Title", "FROM", "Album", "AS", "T1", "JOIN", "Track", "AS", "T2", "ON", "T1.AlbumId", "=", "T2.AlbumId", "JOIN", "Genre", "AS", "T3", "ON", "T2.GenreID", "=", "T3.GenreID", "WHERE", "T3.Name", "=", "'Rock", "'" ]
[ "select", "t1", ".", "title", "from", "album", "as", "t1", "join", "track", "as", "t2", "on", "t1", ".", "albumid", "=", "t2", ".", "albumid", "join", "genre", "as", "t3", "on", "t2", ".", "genreid", "=", "t3", ".", "genreid", "where", "t3", ".", "name", "=", "value", "intersect", "select", "t1", ".", "title", "from", "album", "as", "t1", "join", "track", "as", "t2", "on", "t1", ".", "albumid", "=", "t2", ".", "albumid", "join", "genre", "as", "t3", "on", "t2", ".", "genreid", "=", "t3", ".", "genreid", "where", "t3", ".", "name", "=", "value" ]
[ "What-all", "are", "the", "album", "titles", "for", "albums", "a-containing", "both", "'Reggae'", "and", "'Rock'", "genre", "tracks?" ]
chinook_1
SELECT T1.Title FROM Album AS T1 JOIN Track AS T2 ON T1.AlbumId = T2.AlbumId JOIN Genre AS T3 ON T2.GenreID = T3.GenreID WHERE T3.Name = 'Reggae' INTERSECT SELECT T1.Title FROM Album AS T1 JOIN Track AS T2 ON T1.AlbumId = T2.AlbumId JOIN Genre AS T3 ON T2.GenreID = T3.GenreID WHERE T3.Name = 'Rock'
Are Finding the titles of albums is containing tracks of both the Reggae and Rock genres.
[ "SELECT", "T1.Title", "FROM", "Album", "AS", "T1", "JOIN", "Track", "AS", "T2", "ON", "T1.AlbumId", "=", "T2.AlbumId", "JOIN", "Genre", "AS", "T3", "ON", "T2.GenreID", "=", "T3.GenreID", "WHERE", "T3.Name", "=", "'Reggae", "'", "INTERSECT", "SELECT", "T1.Title", "FROM", "Album", "AS", "T1", "JOIN", "Track", "AS", "T2", "ON", "T1.AlbumId", "=", "T2.AlbumId", "JOIN", "Genre", "AS", "T3", "ON", "T2.GenreID", "=", "T3.GenreID", "WHERE", "T3.Name", "=", "'Rock", "'" ]
[ "select", "t1", ".", "title", "from", "album", "as", "t1", "join", "track", "as", "t2", "on", "t1", ".", "albumid", "=", "t2", ".", "albumid", "join", "genre", "as", "t3", "on", "t2", ".", "genreid", "=", "t3", ".", "genreid", "where", "t3", ".", "name", "=", "value", "intersect", "select", "t1", ".", "title", "from", "album", "as", "t1", "join", "track", "as", "t2", "on", "t1", ".", "albumid", "=", "t2", ".", "albumid", "join", "genre", "as", "t3", "on", "t2", ".", "genreid", "=", "t3", ".", "genreid", "where", "t3", ".", "name", "=", "value" ]
[ "Are", "Finding", "the", "titles", "of", "albums", "is", "containing", "tracks", "of", "both", "the", "Reggae", "and", "Rock", "genres." ]
insurance_fnol
SELECT customer_phone FROM available_policies
Are Finding all the phone numbers.
[ "SELECT", "customer_phone", "FROM", "available_policies" ]
[ "select", "customer_phone", "from", "available_policies" ]
[ "Are", "Finding", "all", "the", "phone", "numbers." ]
insurance_fnol
SELECT customer_phone FROM available_policies
What-all are all the phone numbers?
[ "SELECT", "customer_phone", "FROM", "available_policies" ]
[ "select", "customer_phone", "from", "available_policies" ]
[ "What-all", "are", "all", "the", "phone", "numbers?" ]
insurance_fnol
SELECT customer_phone FROM available_policies WHERE policy_type_code = "Life Insurance"
What-all are the customer phone numbers under the policy "Life Insurance"?
[ "SELECT", "customer_phone", "FROM", "available_policies", "WHERE", "policy_type_code", "=", "``", "Life", "Insurance", "''" ]
[ "select", "customer_phone", "from", "available_policies", "where", "policy_type_code", "=", "value" ]
[ "What-all", "are", "the", "customer", "phone", "numbers", "under", "the", "policy", "\"Life", "Insurance\"?" ]
insurance_fnol
SELECT customer_phone FROM available_policies WHERE policy_type_code = "Life Insurance"
What-all are the phone numbers of customers using the policy with the code "Life Insurance"?
[ "SELECT", "customer_phone", "FROM", "available_policies", "WHERE", "policy_type_code", "=", "``", "Life", "Insurance", "''" ]
[ "select", "customer_phone", "from", "available_policies", "where", "policy_type_code", "=", "value" ]
[ "What-all", "are", "the", "phone", "numbers", "of", "customers", "using", "the", "policy", "with", "the", "code", "\"Life", "Insurance\"?" ]
insurance_fnol
SELECT policy_type_code FROM available_policies GROUP BY policy_type_code ORDER BY count(*) DESC LIMIT 1
Which policys types have the most records in the database?
[ "SELECT", "policy_type_code", "FROM", "available_policies", "GROUP", "BY", "policy_type_code", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ]
[ "select", "policy_type_code", "from", "available_policies", "group", "by", "policy_type_code", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ]
[ "Which", "policys", "types", "have", "the", "most", "records", "in", "the", "database?" ]
insurance_fnol
SELECT policy_type_code FROM available_policies GROUP BY policy_type_code ORDER BY count(*) DESC LIMIT 1
Which policy type is appearing most frequently in the available policies?
[ "SELECT", "policy_type_code", "FROM", "available_policies", "GROUP", "BY", "policy_type_code", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1" ]
[ "select", "policy_type_code", "from", "available_policies", "group", "by", "policy_type_code", "order", "by", "count", "(", "*", ")", "desc", "limit", "value" ]
[ "Which", "policy", "type", "is", "appearing", "most", "frequently", "in", "the", "available", "policies?" ]
insurance_fnol
SELECT customer_phone FROM available_policies WHERE policy_type_code = (SELECT policy_type_code FROM available_policies GROUP BY policy_type_code ORDER BY count(*) DESC LIMIT 1)
What-all are all the customer phone numbers under the most popular policy type?
[ "SELECT", "customer_phone", "FROM", "available_policies", "WHERE", "policy_type_code", "=", "(", "SELECT", "policy_type_code", "FROM", "available_policies", "GROUP", "BY", "policy_type_code", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1", ")" ]
[ "select", "customer_phone", "from", "available_policies", "where", "policy_type_code", "=", "(", "select", "policy_type_code", "from", "available_policies", "group", "by", "policy_type_code", "order", "by", "count", "(", "*", ")", "desc", "limit", "value", ")" ]
[ "What-all", "are", "all", "the", "customer", "phone", "numbers", "under", "the", "most", "popular", "policy", "type?" ]
insurance_fnol
SELECT customer_phone FROM available_policies WHERE policy_type_code = (SELECT policy_type_code FROM available_policies GROUP BY policy_type_code ORDER BY count(*) DESC LIMIT 1)
Find the phone numbers of customers using the most common policy type among the available policies.
[ "SELECT", "customer_phone", "FROM", "available_policies", "WHERE", "policy_type_code", "=", "(", "SELECT", "policy_type_code", "FROM", "available_policies", "GROUP", "BY", "policy_type_code", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1", ")" ]
[ "select", "customer_phone", "from", "available_policies", "where", "policy_type_code", "=", "(", "select", "policy_type_code", "from", "available_policies", "group", "by", "policy_type_code", "order", "by", "count", "(", "*", ")", "desc", "limit", "value", ")" ]
[ "Find", "the", "phone", "numbers", "of", "customers", "using", "the", "most", "common", "policy", "type", "among", "the", "available", "policies." ]
insurance_fnol
SELECT policy_type_code FROM available_policies GROUP BY policy_type_code HAVING count(*) > 4
Are Finding the policys types used by more than 4 customer.
[ "SELECT", "policy_type_code", "FROM", "available_policies", "GROUP", "BY", "policy_type_code", "HAVING", "count", "(", "*", ")", ">", "4" ]
[ "select", "policy_type_code", "from", "available_policies", "group", "by", "policy_type_code", "having", "count", "(", "*", ")", ">", "value" ]
[ "Are", "Finding", "the", "policys", "types", "used", "by", "more", "than", "4", "customer." ]