input stringlengths 191 7.13k | output stringlengths 19 578 |
|---|---|
Tables: shop, member, happy_hour, happy_hour_member
Columns: shop.Shop_ID, shop.Address, shop.Num_of_staff, shop.Score, shop.Open_Year, member.Member_ID, member.Name, member.Membership_card, member.Age, member.Time_of_purchase, member.Level_of_membership, member.Address, happy_hour.HH_ID, happy_hour.Shop_ID, happy_hour... | SELECT avg(num_of_staff) , avg(score) FROM shop; |
Tables: shop, member, happy_hour, happy_hour_member
Columns: shop.Shop_ID, shop.Address, shop.Num_of_staff, shop.Score, shop.Open_Year, member.Member_ID, member.Name, member.Membership_card, member.Age, member.Time_of_purchase, member.Level_of_membership, member.Address, happy_hour.HH_ID, happy_hour.Shop_ID, happy_hour... | SELECT shop_id , address FROM shop WHERE score < (SELECT avg(score) FROM shop); |
Tables: shop, member, happy_hour, happy_hour_member
Columns: shop.Shop_ID, shop.Address, shop.Num_of_staff, shop.Score, shop.Open_Year, member.Member_ID, member.Name, member.Membership_card, member.Age, member.Time_of_purchase, member.Level_of_membership, member.Address, happy_hour.HH_ID, happy_hour.Shop_ID, happy_hour... | SELECT address , num_of_staff FROM shop WHERE shop_id NOT IN (SELECT shop_id FROM happy_hour); |
Tables: shop, member, happy_hour, happy_hour_member
Columns: shop.Shop_ID, shop.Address, shop.Num_of_staff, shop.Score, shop.Open_Year, member.Member_ID, member.Name, member.Membership_card, member.Age, member.Time_of_purchase, member.Level_of_membership, member.Address, happy_hour.HH_ID, happy_hour.Shop_ID, happy_hour... | 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'; |
Tables: shop, member, happy_hour, happy_hour_member
Columns: shop.Shop_ID, shop.Address, shop.Num_of_staff, shop.Score, shop.Open_Year, member.Member_ID, member.Name, member.Membership_card, member.Age, member.Time_of_purchase, member.Level_of_membership, member.Address, happy_hour.HH_ID, happy_hour.Shop_ID, happy_hour... | SELECT shop_id , count(*) FROM happy_hour GROUP BY shop_id ORDER BY count(*) DESC LIMIT 1; |
Tables: shop, member, happy_hour, happy_hour_member
Columns: shop.Shop_ID, shop.Address, shop.Num_of_staff, shop.Score, shop.Open_Year, member.Member_ID, member.Name, member.Membership_card, member.Age, member.Time_of_purchase, member.Level_of_membership, member.Address, happy_hour.HH_ID, happy_hour.Shop_ID, happy_hour... | SELECT MONTH FROM happy_hour GROUP BY MONTH ORDER BY count(*) DESC LIMIT 1; |
Tables: shop, member, happy_hour, happy_hour_member
Columns: shop.Shop_ID, shop.Address, shop.Num_of_staff, shop.Score, shop.Open_Year, member.Member_ID, member.Name, member.Membership_card, member.Age, member.Time_of_purchase, member.Level_of_membership, member.Address, happy_hour.HH_ID, happy_hour.Shop_ID, happy_hour... | SELECT MONTH FROM happy_hour GROUP BY MONTH HAVING count(*) > 2; |
Tables: Album, Artist, Customer, Employee, Genre, Invoice, InvoiceLine, MediaType, Playlist, PlaylistTrack, Track
Columns: Album.AlbumId, Album.Title, Album.ArtistId, Artist.ArtistId, Artist.Name, Customer.CustomerId, Customer.FirstName, Customer.LastName, Customer.Company, Customer.Address, Customer.City, Customer.Sta... | SELECT count(*) FROM ALBUM; |
Tables: Album, Artist, Customer, Employee, Genre, Invoice, InvoiceLine, MediaType, Playlist, PlaylistTrack, Track
Columns: Album.AlbumId, Album.Title, Album.ArtistId, Artist.ArtistId, Artist.Name, Customer.CustomerId, Customer.FirstName, Customer.LastName, Customer.Company, Customer.Address, Customer.City, Customer.Sta... | SELECT count(*) FROM ALBUM; |
Tables: Album, Artist, Customer, Employee, Genre, Invoice, InvoiceLine, MediaType, Playlist, PlaylistTrack, Track
Columns: Album.AlbumId, Album.Title, Album.ArtistId, Artist.ArtistId, Artist.Name, Customer.CustomerId, Customer.FirstName, Customer.LastName, Customer.Company, Customer.Address, Customer.City, Customer.Sta... | SELECT Name FROM GENRE; |
Tables: Album, Artist, Customer, Employee, Genre, Invoice, InvoiceLine, MediaType, Playlist, PlaylistTrack, Track
Columns: Album.AlbumId, Album.Title, Album.ArtistId, Artist.ArtistId, Artist.Name, Customer.CustomerId, Customer.FirstName, Customer.LastName, Customer.Company, Customer.Address, Customer.City, Customer.Sta... | SELECT Name FROM GENRE; |
Tables: Album, Artist, Customer, Employee, Genre, Invoice, InvoiceLine, MediaType, Playlist, PlaylistTrack, Track
Columns: Album.AlbumId, Album.Title, Album.ArtistId, Artist.ArtistId, Artist.Name, Customer.CustomerId, Customer.FirstName, Customer.LastName, Customer.Company, Customer.Address, Customer.City, Customer.Sta... | SELECT * FROM CUSTOMER WHERE State = "NY"; |
Tables: Album, Artist, Customer, Employee, Genre, Invoice, InvoiceLine, MediaType, Playlist, PlaylistTrack, Track
Columns: Album.AlbumId, Album.Title, Album.ArtistId, Artist.ArtistId, Artist.Name, Customer.CustomerId, Customer.FirstName, Customer.LastName, Customer.Company, Customer.Address, Customer.City, Customer.Sta... | SELECT * FROM CUSTOMER WHERE State = "NY"; |
Tables: Album, Artist, Customer, Employee, Genre, Invoice, InvoiceLine, MediaType, Playlist, PlaylistTrack, Track
Columns: Album.AlbumId, Album.Title, Album.ArtistId, Artist.ArtistId, Artist.Name, Customer.CustomerId, Customer.FirstName, Customer.LastName, Customer.Company, Customer.Address, Customer.City, Customer.Sta... | SELECT FirstName , LastName FROM EMPLOYEE WHERE City = "Calgary"; |
Tables: Album, Artist, Customer, Employee, Genre, Invoice, InvoiceLine, MediaType, Playlist, PlaylistTrack, Track
Columns: Album.AlbumId, Album.Title, Album.ArtistId, Artist.ArtistId, Artist.Name, Customer.CustomerId, Customer.FirstName, Customer.LastName, Customer.Company, Customer.Address, Customer.City, Customer.Sta... | SELECT FirstName , LastName FROM EMPLOYEE WHERE City = "Calgary"; |
Tables: Album, Artist, Customer, Employee, Genre, Invoice, InvoiceLine, MediaType, Playlist, PlaylistTrack, Track
Columns: Album.AlbumId, Album.Title, Album.ArtistId, Artist.ArtistId, Artist.Name, Customer.CustomerId, Customer.FirstName, Customer.LastName, Customer.Company, Customer.Address, Customer.City, Customer.Sta... | SELECT distinct(BillingCountry) FROM INVOICE; |
Tables: Album, Artist, Customer, Employee, Genre, Invoice, InvoiceLine, MediaType, Playlist, PlaylistTrack, Track
Columns: Album.AlbumId, Album.Title, Album.ArtistId, Artist.ArtistId, Artist.Name, Customer.CustomerId, Customer.FirstName, Customer.LastName, Customer.Company, Customer.Address, Customer.City, Customer.Sta... | SELECT distinct(BillingCountry) FROM INVOICE; |
Tables: Album, Artist, Customer, Employee, Genre, Invoice, InvoiceLine, MediaType, Playlist, PlaylistTrack, Track
Columns: Album.AlbumId, Album.Title, Album.ArtistId, Artist.ArtistId, Artist.Name, Customer.CustomerId, Customer.FirstName, Customer.LastName, Customer.Company, Customer.Address, Customer.City, Customer.Sta... | SELECT Name FROM ARTIST WHERE Name LIKE "%a%"; |
Tables: Album, Artist, Customer, Employee, Genre, Invoice, InvoiceLine, MediaType, Playlist, PlaylistTrack, Track
Columns: Album.AlbumId, Album.Title, Album.ArtistId, Artist.ArtistId, Artist.Name, Customer.CustomerId, Customer.FirstName, Customer.LastName, Customer.Company, Customer.Address, Customer.City, Customer.Sta... | SELECT Name FROM ARTIST WHERE Name LIKE "%a%"; |
Tables: Album, Artist, Customer, Employee, Genre, Invoice, InvoiceLine, MediaType, Playlist, PlaylistTrack, Track
Columns: Album.AlbumId, Album.Title, Album.ArtistId, Artist.ArtistId, Artist.Name, Customer.CustomerId, Customer.FirstName, Customer.LastName, Customer.Company, Customer.Address, Customer.City, Customer.Sta... | SELECT Title FROM ALBUM AS T1 JOIN ARTIST AS T2 ON T1.ArtistId = T2.ArtistId WHERE T2.Name = "AC/DC"; |
Tables: Album, Artist, Customer, Employee, Genre, Invoice, InvoiceLine, MediaType, Playlist, PlaylistTrack, Track
Columns: Album.AlbumId, Album.Title, Album.ArtistId, Artist.ArtistId, Artist.Name, Customer.CustomerId, Customer.FirstName, Customer.LastName, Customer.Company, Customer.Address, Customer.City, Customer.Sta... | SELECT Title FROM ALBUM AS T1 JOIN ARTIST AS T2 ON T1.ArtistId = T2.ArtistId WHERE T2.Name = "AC/DC"; |
Tables: Album, Artist, Customer, Employee, Genre, Invoice, InvoiceLine, MediaType, Playlist, PlaylistTrack, Track
Columns: Album.AlbumId, Album.Title, Album.ArtistId, Artist.ArtistId, Artist.Name, Customer.CustomerId, Customer.FirstName, Customer.LastName, Customer.Company, Customer.Address, Customer.City, Customer.Sta... | SELECT COUNT(*) FROM ALBUM AS T1 JOIN ARTIST AS T2 ON T1.ArtistId = T2.ArtistId WHERE T2.Name = "Metallica"; |
Tables: Album, Artist, Customer, Employee, Genre, Invoice, InvoiceLine, MediaType, Playlist, PlaylistTrack, Track
Columns: Album.AlbumId, Album.Title, Album.ArtistId, Artist.ArtistId, Artist.Name, Customer.CustomerId, Customer.FirstName, Customer.LastName, Customer.Company, Customer.Address, Customer.City, Customer.Sta... | SELECT COUNT(*) FROM ALBUM AS T1 JOIN ARTIST AS T2 ON T1.ArtistId = T2.ArtistId WHERE T2.Name = "Metallica"; |
Tables: Album, Artist, Customer, Employee, Genre, Invoice, InvoiceLine, MediaType, Playlist, PlaylistTrack, Track
Columns: Album.AlbumId, Album.Title, Album.ArtistId, Artist.ArtistId, Artist.Name, Customer.CustomerId, Customer.FirstName, Customer.LastName, Customer.Company, Customer.Address, Customer.City, Customer.Sta... | SELECT T2.Name FROM ALBUM AS T1 JOIN ARTIST AS T2 ON T1.ArtistId = T2.ArtistId WHERE T1.Title = "Balls to the Wall"; |
Tables: Album, Artist, Customer, Employee, Genre, Invoice, InvoiceLine, MediaType, Playlist, PlaylistTrack, Track
Columns: Album.AlbumId, Album.Title, Album.ArtistId, Artist.ArtistId, Artist.Name, Customer.CustomerId, Customer.FirstName, Customer.LastName, Customer.Company, Customer.Address, Customer.City, Customer.Sta... | SELECT T2.Name FROM ALBUM AS T1 JOIN ARTIST AS T2 ON T1.ArtistId = T2.ArtistId WHERE T1.Title = "Balls to the Wall"; |
Tables: Album, Artist, Customer, Employee, Genre, Invoice, InvoiceLine, MediaType, Playlist, PlaylistTrack, Track
Columns: Album.AlbumId, Album.Title, Album.ArtistId, Artist.ArtistId, Artist.Name, Customer.CustomerId, Customer.FirstName, Customer.LastName, Customer.Company, Customer.Address, Customer.City, Customer.Sta... | 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; |
Tables: Album, Artist, Customer, Employee, Genre, Invoice, InvoiceLine, MediaType, Playlist, PlaylistTrack, Track
Columns: Album.AlbumId, Album.Title, Album.ArtistId, Artist.ArtistId, Artist.Name, Customer.CustomerId, Customer.FirstName, Customer.LastName, Customer.Company, Customer.Address, Customer.City, Customer.Sta... | 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; |
Tables: Album, Artist, Customer, Employee, Genre, Invoice, InvoiceLine, MediaType, Playlist, PlaylistTrack, Track
Columns: Album.AlbumId, Album.Title, Album.ArtistId, Artist.ArtistId, Artist.Name, Customer.CustomerId, Customer.FirstName, Customer.LastName, Customer.Company, Customer.Address, Customer.City, Customer.Sta... | SELECT Name FROM TRACK WHERE Name LIKE '%you%'; |
Tables: Album, Artist, Customer, Employee, Genre, Invoice, InvoiceLine, MediaType, Playlist, PlaylistTrack, Track
Columns: Album.AlbumId, Album.Title, Album.ArtistId, Artist.ArtistId, Artist.Name, Customer.CustomerId, Customer.FirstName, Customer.LastName, Customer.Company, Customer.Address, Customer.City, Customer.Sta... | SELECT Name FROM TRACK WHERE Name LIKE '%you%'; |
Tables: Album, Artist, Customer, Employee, Genre, Invoice, InvoiceLine, MediaType, Playlist, PlaylistTrack, Track
Columns: Album.AlbumId, Album.Title, Album.ArtistId, Artist.ArtistId, Artist.Name, Customer.CustomerId, Customer.FirstName, Customer.LastName, Customer.Company, Customer.Address, Customer.City, Customer.Sta... | SELECT AVG(UnitPrice) FROM TRACK; |
Tables: Album, Artist, Customer, Employee, Genre, Invoice, InvoiceLine, MediaType, Playlist, PlaylistTrack, Track
Columns: Album.AlbumId, Album.Title, Album.ArtistId, Artist.ArtistId, Artist.Name, Customer.CustomerId, Customer.FirstName, Customer.LastName, Customer.Company, Customer.Address, Customer.City, Customer.Sta... | SELECT AVG(UnitPrice) FROM TRACK; |
Tables: Album, Artist, Customer, Employee, Genre, Invoice, InvoiceLine, MediaType, Playlist, PlaylistTrack, Track
Columns: Album.AlbumId, Album.Title, Album.ArtistId, Artist.ArtistId, Artist.Name, Customer.CustomerId, Customer.FirstName, Customer.LastName, Customer.Company, Customer.Address, Customer.City, Customer.Sta... | SELECT max(Milliseconds) , min(Milliseconds) FROM TRACK; |
Tables: Album, Artist, Customer, Employee, Genre, Invoice, InvoiceLine, MediaType, Playlist, PlaylistTrack, Track
Columns: Album.AlbumId, Album.Title, Album.ArtistId, Artist.ArtistId, Artist.Name, Customer.CustomerId, Customer.FirstName, Customer.LastName, Customer.Company, Customer.Address, Customer.City, Customer.Sta... | SELECT max(Milliseconds) , min(Milliseconds) FROM TRACK; |
Tables: Album, Artist, Customer, Employee, Genre, Invoice, InvoiceLine, MediaType, Playlist, PlaylistTrack, Track
Columns: Album.AlbumId, Album.Title, Album.ArtistId, Artist.ArtistId, Artist.Name, Customer.CustomerId, Customer.FirstName, Customer.LastName, Customer.Company, Customer.Address, Customer.City, Customer.Sta... | SELECT T1.Title , T2.AlbumID , COUNT(*) FROM ALBUM AS T1 JOIN TRACK AS T2 ON T1.AlbumId = T2.AlbumId GROUP BY T2.AlbumID; |
Tables: Album, Artist, Customer, Employee, Genre, Invoice, InvoiceLine, MediaType, Playlist, PlaylistTrack, Track
Columns: Album.AlbumId, Album.Title, Album.ArtistId, Artist.ArtistId, Artist.Name, Customer.CustomerId, Customer.FirstName, Customer.LastName, Customer.Company, Customer.Address, Customer.City, Customer.Sta... | SELECT T1.Title , T2.AlbumID , COUNT(*) FROM ALBUM AS T1 JOIN TRACK AS T2 ON T1.AlbumId = T2.AlbumId GROUP BY T2.AlbumID; |
Tables: Album, Artist, Customer, Employee, Genre, Invoice, InvoiceLine, MediaType, Playlist, PlaylistTrack, Track
Columns: Album.AlbumId, Album.Title, Album.ArtistId, Artist.ArtistId, Artist.Name, Customer.CustomerId, Customer.FirstName, Customer.LastName, Customer.Company, Customer.Address, Customer.City, Customer.Sta... | 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; |
Tables: Album, Artist, Customer, Employee, Genre, Invoice, InvoiceLine, MediaType, Playlist, PlaylistTrack, Track
Columns: Album.AlbumId, Album.Title, Album.ArtistId, Artist.ArtistId, Artist.Name, Customer.CustomerId, Customer.FirstName, Customer.LastName, Customer.Company, Customer.Address, Customer.City, Customer.Sta... | 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; |
Tables: Album, Artist, Customer, Employee, Genre, Invoice, InvoiceLine, MediaType, Playlist, PlaylistTrack, Track
Columns: Album.AlbumId, Album.Title, Album.ArtistId, Artist.ArtistId, Artist.Name, Customer.CustomerId, Customer.FirstName, Customer.LastName, Customer.Company, Customer.Address, Customer.City, Customer.Sta... | 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; |
Tables: Album, Artist, Customer, Employee, Genre, Invoice, InvoiceLine, MediaType, Playlist, PlaylistTrack, Track
Columns: Album.AlbumId, Album.Title, Album.ArtistId, Artist.ArtistId, Artist.Name, Customer.CustomerId, Customer.FirstName, Customer.LastName, Customer.Company, Customer.Address, Customer.City, Customer.Sta... | 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; |
Tables: Album, Artist, Customer, Employee, Genre, Invoice, InvoiceLine, MediaType, Playlist, PlaylistTrack, Track
Columns: Album.AlbumId, Album.Title, Album.ArtistId, Artist.ArtistId, Artist.Name, Customer.CustomerId, Customer.FirstName, Customer.LastName, Customer.Company, Customer.Address, Customer.City, Customer.Sta... | 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; |
Tables: Album, Artist, Customer, Employee, Genre, Invoice, InvoiceLine, MediaType, Playlist, PlaylistTrack, Track
Columns: Album.AlbumId, Album.Title, Album.ArtistId, Artist.ArtistId, Artist.Name, Customer.CustomerId, Customer.FirstName, Customer.LastName, Customer.Company, Customer.Address, Customer.City, Customer.Sta... | 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; |
Tables: Album, Artist, Customer, Employee, Genre, Invoice, InvoiceLine, MediaType, Playlist, PlaylistTrack, Track
Columns: Album.AlbumId, Album.Title, Album.ArtistId, Artist.ArtistId, Artist.Name, Customer.CustomerId, Customer.FirstName, Customer.LastName, Customer.Company, Customer.Address, Customer.City, Customer.Sta... | SELECT COUNT(*) FROM GENRE AS T1 JOIN TRACK AS T2 ON T1.GenreId = T2.GenreId WHERE T1.Name = "Rock"; |
Tables: Album, Artist, Customer, Employee, Genre, Invoice, InvoiceLine, MediaType, Playlist, PlaylistTrack, Track
Columns: Album.AlbumId, Album.Title, Album.ArtistId, Artist.ArtistId, Artist.Name, Customer.CustomerId, Customer.FirstName, Customer.LastName, Customer.Company, Customer.Address, Customer.City, Customer.Sta... | SELECT COUNT(*) FROM GENRE AS T1 JOIN TRACK AS T2 ON T1.GenreId = T2.GenreId WHERE T1.Name = "Rock"; |
Tables: Album, Artist, Customer, Employee, Genre, Invoice, InvoiceLine, MediaType, Playlist, PlaylistTrack, Track
Columns: Album.AlbumId, Album.Title, Album.ArtistId, Artist.ArtistId, Artist.Name, Customer.CustomerId, Customer.FirstName, Customer.LastName, Customer.Company, Customer.Address, Customer.City, Customer.Sta... | SELECT AVG(UnitPrice) FROM GENRE AS T1 JOIN TRACK AS T2 ON T1.GenreId = T2.GenreId WHERE T1.Name = "Jazz"; |
Tables: Album, Artist, Customer, Employee, Genre, Invoice, InvoiceLine, MediaType, Playlist, PlaylistTrack, Track
Columns: Album.AlbumId, Album.Title, Album.ArtistId, Artist.ArtistId, Artist.Name, Customer.CustomerId, Customer.FirstName, Customer.LastName, Customer.Company, Customer.Address, Customer.City, Customer.Sta... | SELECT AVG(UnitPrice) FROM GENRE AS T1 JOIN TRACK AS T2 ON T1.GenreId = T2.GenreId WHERE T1.Name = "Jazz"; |
Tables: Album, Artist, Customer, Employee, Genre, Invoice, InvoiceLine, MediaType, Playlist, PlaylistTrack, Track
Columns: Album.AlbumId, Album.Title, Album.ArtistId, Artist.ArtistId, Artist.Name, Customer.CustomerId, Customer.FirstName, Customer.LastName, Customer.Company, Customer.Address, Customer.City, Customer.Sta... | SELECT FirstName , LastName FROM CUSTOMER WHERE Email = "luisg@embraer.com.br"; |
Tables: Album, Artist, Customer, Employee, Genre, Invoice, InvoiceLine, MediaType, Playlist, PlaylistTrack, Track
Columns: Album.AlbumId, Album.Title, Album.ArtistId, Artist.ArtistId, Artist.Name, Customer.CustomerId, Customer.FirstName, Customer.LastName, Customer.Company, Customer.Address, Customer.City, Customer.Sta... | SELECT FirstName , LastName FROM CUSTOMER WHERE Email = "luisg@embraer.com.br"; |
Tables: Album, Artist, Customer, Employee, Genre, Invoice, InvoiceLine, MediaType, Playlist, PlaylistTrack, Track
Columns: Album.AlbumId, Album.Title, Album.ArtistId, Artist.ArtistId, Artist.Name, Customer.CustomerId, Customer.FirstName, Customer.LastName, Customer.Company, Customer.Address, Customer.City, Customer.Sta... | SELECT COUNT(*) FROM CUSTOMER WHERE Email LIKE "%gmail.com%"; |
Tables: Album, Artist, Customer, Employee, Genre, Invoice, InvoiceLine, MediaType, Playlist, PlaylistTrack, Track
Columns: Album.AlbumId, Album.Title, Album.ArtistId, Artist.ArtistId, Artist.Name, Customer.CustomerId, Customer.FirstName, Customer.LastName, Customer.Company, Customer.Address, Customer.City, Customer.Sta... | SELECT COUNT(*) FROM CUSTOMER WHERE Email LIKE "%gmail.com%"; |
Tables: Album, Artist, Customer, Employee, Genre, Invoice, InvoiceLine, MediaType, Playlist, PlaylistTrack, Track
Columns: Album.AlbumId, Album.Title, Album.ArtistId, Artist.ArtistId, Artist.Name, Customer.CustomerId, Customer.FirstName, Customer.LastName, Customer.Company, Customer.Address, Customer.City, Customer.Sta... | SELECT T2.FirstName , T2.LastName FROM CUSTOMER AS T1 JOIN EMPLOYEE AS T2 ON T1.SupportRepId = T2.EmployeeId WHERE T1.FirstName = "Leonie"; |
Tables: Album, Artist, Customer, Employee, Genre, Invoice, InvoiceLine, MediaType, Playlist, PlaylistTrack, Track
Columns: Album.AlbumId, Album.Title, Album.ArtistId, Artist.ArtistId, Artist.Name, Customer.CustomerId, Customer.FirstName, Customer.LastName, Customer.Company, Customer.Address, Customer.City, Customer.Sta... | SELECT T2.FirstName , T2.LastName FROM CUSTOMER AS T1 JOIN EMPLOYEE AS T2 ON T1.SupportRepId = T2.EmployeeId WHERE T1.FirstName = "Leonie"; |
Tables: Album, Artist, Customer, Employee, Genre, Invoice, InvoiceLine, MediaType, Playlist, PlaylistTrack, Track
Columns: Album.AlbumId, Album.Title, Album.ArtistId, Artist.ArtistId, Artist.Name, Customer.CustomerId, Customer.FirstName, Customer.LastName, Customer.Company, Customer.Address, Customer.City, Customer.Sta... | SELECT T2.City FROM CUSTOMER AS T1 JOIN EMPLOYEE AS T2 ON T1.SupportRepId = T2.EmployeeId WHERE T1.PostalCode = "70174"; |
Tables: Album, Artist, Customer, Employee, Genre, Invoice, InvoiceLine, MediaType, Playlist, PlaylistTrack, Track
Columns: Album.AlbumId, Album.Title, Album.ArtistId, Artist.ArtistId, Artist.Name, Customer.CustomerId, Customer.FirstName, Customer.LastName, Customer.Company, Customer.Address, Customer.City, Customer.Sta... | SELECT T2.City FROM CUSTOMER AS T1 JOIN EMPLOYEE AS T2 ON T1.SupportRepId = T2.EmployeeId WHERE T1.PostalCode = "70174"; |
Tables: Album, Artist, Customer, Employee, Genre, Invoice, InvoiceLine, MediaType, Playlist, PlaylistTrack, Track
Columns: Album.AlbumId, Album.Title, Album.ArtistId, Artist.ArtistId, Artist.Name, Customer.CustomerId, Customer.FirstName, Customer.LastName, Customer.Company, Customer.Address, Customer.City, Customer.Sta... | SELECT COUNT(DISTINCT city) FROM EMPLOYEE; |
Tables: Album, Artist, Customer, Employee, Genre, Invoice, InvoiceLine, MediaType, Playlist, PlaylistTrack, Track
Columns: Album.AlbumId, Album.Title, Album.ArtistId, Artist.ArtistId, Artist.Name, Customer.CustomerId, Customer.FirstName, Customer.LastName, Customer.Company, Customer.Address, Customer.City, Customer.Sta... | SELECT COUNT(DISTINCT city) FROM EMPLOYEE; |
Tables: Album, Artist, Customer, Employee, Genre, Invoice, InvoiceLine, MediaType, Playlist, PlaylistTrack, Track
Columns: Album.AlbumId, Album.Title, Album.ArtistId, Artist.ArtistId, Artist.Name, Customer.CustomerId, Customer.FirstName, Customer.LastName, Customer.Company, Customer.Address, Customer.City, Customer.Sta... | SELECT T2.InvoiceDate FROM CUSTOMER AS T1 JOIN INVOICE AS T2 ON T1.CustomerId = T2.CustomerId WHERE T1.FirstName = "Astrid" AND LastName = "Gruber"; |
Tables: Album, Artist, Customer, Employee, Genre, Invoice, InvoiceLine, MediaType, Playlist, PlaylistTrack, Track
Columns: Album.AlbumId, Album.Title, Album.ArtistId, Artist.ArtistId, Artist.Name, Customer.CustomerId, Customer.FirstName, Customer.LastName, Customer.Company, Customer.Address, Customer.City, Customer.Sta... | SELECT T2.InvoiceDate FROM CUSTOMER AS T1 JOIN INVOICE AS T2 ON T1.CustomerId = T2.CustomerId WHERE T1.FirstName = "Astrid" AND LastName = "Gruber"; |
Tables: Album, Artist, Customer, Employee, Genre, Invoice, InvoiceLine, MediaType, Playlist, PlaylistTrack, Track
Columns: Album.AlbumId, Album.Title, Album.ArtistId, Artist.ArtistId, Artist.Name, Customer.CustomerId, Customer.FirstName, Customer.LastName, Customer.Company, Customer.Address, Customer.City, Customer.Sta... | 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; |
Tables: Album, Artist, Customer, Employee, Genre, Invoice, InvoiceLine, MediaType, Playlist, PlaylistTrack, Track
Columns: Album.AlbumId, Album.Title, Album.ArtistId, Artist.ArtistId, Artist.Name, Customer.CustomerId, Customer.FirstName, Customer.LastName, Customer.Company, Customer.Address, Customer.City, Customer.Sta... | 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; |
Tables: Album, Artist, Customer, Employee, Genre, Invoice, InvoiceLine, MediaType, Playlist, PlaylistTrack, Track
Columns: Album.AlbumId, Album.Title, Album.ArtistId, Artist.ArtistId, Artist.Name, Customer.CustomerId, Customer.FirstName, Customer.LastName, Customer.Company, Customer.Address, Customer.City, Customer.Sta... | SELECT DISTINCT T1.FirstName FROM CUSTOMER AS T1 JOIN INVOICE AS T2 ON T1.CustomerId = T2.CustomerId WHERE T1.country = "Brazil"; |
Tables: Album, Artist, Customer, Employee, Genre, Invoice, InvoiceLine, MediaType, Playlist, PlaylistTrack, Track
Columns: Album.AlbumId, Album.Title, Album.ArtistId, Artist.ArtistId, Artist.Name, Customer.CustomerId, Customer.FirstName, Customer.LastName, Customer.Company, Customer.Address, Customer.City, Customer.Sta... | SELECT DISTINCT T1.FirstName FROM CUSTOMER AS T1 JOIN INVOICE AS T2 ON T1.CustomerId = T2.CustomerId WHERE T1.country = "Brazil"; |
Tables: Album, Artist, Customer, Employee, Genre, Invoice, InvoiceLine, MediaType, Playlist, PlaylistTrack, Track
Columns: Album.AlbumId, Album.Title, Album.ArtistId, Artist.ArtistId, Artist.Name, Customer.CustomerId, Customer.FirstName, Customer.LastName, Customer.Company, Customer.Address, Customer.City, Customer.Sta... | SELECT DISTINCT T1.Address FROM CUSTOMER AS T1 JOIN INVOICE AS T2 ON T1.CustomerId = T2.CustomerId WHERE T1.country = "Germany"; |
Tables: Album, Artist, Customer, Employee, Genre, Invoice, InvoiceLine, MediaType, Playlist, PlaylistTrack, Track
Columns: Album.AlbumId, Album.Title, Album.ArtistId, Artist.ArtistId, Artist.Name, Customer.CustomerId, Customer.FirstName, Customer.LastName, Customer.Company, Customer.Address, Customer.City, Customer.Sta... | SELECT DISTINCT T1.Address FROM CUSTOMER AS T1 JOIN INVOICE AS T2 ON T1.CustomerId = T2.CustomerId WHERE T1.country = "Germany"; |
Tables: Album, Artist, Customer, Employee, Genre, Invoice, InvoiceLine, MediaType, Playlist, PlaylistTrack, Track
Columns: Album.AlbumId, Album.Title, Album.ArtistId, Artist.ArtistId, Artist.Name, Customer.CustomerId, Customer.FirstName, Customer.LastName, Customer.Company, Customer.Address, Customer.City, Customer.Sta... | SELECT Phone FROM EMPLOYEE; |
Tables: Album, Artist, Customer, Employee, Genre, Invoice, InvoiceLine, MediaType, Playlist, PlaylistTrack, Track
Columns: Album.AlbumId, Album.Title, Album.ArtistId, Artist.ArtistId, Artist.Name, Customer.CustomerId, Customer.FirstName, Customer.LastName, Customer.Company, Customer.Address, Customer.City, Customer.Sta... | SELECT Phone FROM EMPLOYEE; |
Tables: Album, Artist, Customer, Employee, Genre, Invoice, InvoiceLine, MediaType, Playlist, PlaylistTrack, Track
Columns: Album.AlbumId, Album.Title, Album.ArtistId, Artist.ArtistId, Artist.Name, Customer.CustomerId, Customer.FirstName, Customer.LastName, Customer.Company, Customer.Address, Customer.City, Customer.Sta... | SELECT COUNT(*) FROM MEDIATYPE AS T1 JOIN TRACK AS T2 ON T1.MediaTypeId = T2.MediaTypeId WHERE T1.Name = "AAC audio file"; |
Tables: Album, Artist, Customer, Employee, Genre, Invoice, InvoiceLine, MediaType, Playlist, PlaylistTrack, Track
Columns: Album.AlbumId, Album.Title, Album.ArtistId, Artist.ArtistId, Artist.Name, Customer.CustomerId, Customer.FirstName, Customer.LastName, Customer.Company, Customer.Address, Customer.City, Customer.Sta... | SELECT COUNT(*) FROM MEDIATYPE AS T1 JOIN TRACK AS T2 ON T1.MediaTypeId = T2.MediaTypeId WHERE T1.Name = "AAC audio file"; |
Tables: Album, Artist, Customer, Employee, Genre, Invoice, InvoiceLine, MediaType, Playlist, PlaylistTrack, Track
Columns: Album.AlbumId, Album.Title, Album.ArtistId, Artist.ArtistId, Artist.Name, Customer.CustomerId, Customer.FirstName, Customer.LastName, Customer.Company, Customer.Address, Customer.City, Customer.Sta... | SELECT AVG(Milliseconds) FROM GENRE AS T1 JOIN TRACK AS T2 ON T1.GenreId = T2.GenreId WHERE T1.Name = "Latin" OR T1.Name = "Pop"; |
Tables: Album, Artist, Customer, Employee, Genre, Invoice, InvoiceLine, MediaType, Playlist, PlaylistTrack, Track
Columns: Album.AlbumId, Album.Title, Album.ArtistId, Artist.ArtistId, Artist.Name, Customer.CustomerId, Customer.FirstName, Customer.LastName, Customer.Company, Customer.Address, Customer.City, Customer.Sta... | SELECT AVG(Milliseconds) FROM GENRE AS T1 JOIN TRACK AS T2 ON T1.GenreId = T2.GenreId WHERE T1.Name = "Latin" OR T1.Name = "Pop"; |
Tables: Album, Artist, Customer, Employee, Genre, Invoice, InvoiceLine, MediaType, Playlist, PlaylistTrack, Track
Columns: Album.AlbumId, Album.Title, Album.ArtistId, Artist.ArtistId, Artist.Name, Customer.CustomerId, Customer.FirstName, Customer.LastName, Customer.Company, Customer.Address, Customer.City, Customer.Sta... | 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; |
Tables: Album, Artist, Customer, Employee, Genre, Invoice, InvoiceLine, MediaType, Playlist, PlaylistTrack, Track
Columns: Album.AlbumId, Album.Title, Album.ArtistId, Artist.ArtistId, Artist.Name, Customer.CustomerId, Customer.FirstName, Customer.LastName, Customer.Company, Customer.Address, Customer.City, Customer.Sta... | 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; |
Tables: Album, Artist, Customer, Employee, Genre, Invoice, InvoiceLine, MediaType, Playlist, PlaylistTrack, Track
Columns: Album.AlbumId, Album.Title, Album.ArtistId, Artist.ArtistId, Artist.Name, Customer.CustomerId, Customer.FirstName, Customer.LastName, Customer.Company, Customer.Address, Customer.City, Customer.Sta... | SELECT T1.LastName FROM CUSTOMER AS T1 JOIN EMPLOYEE AS T2 ON T1.SupportRepId = T2.EmployeeId GROUP BY T1.SupportRepId HAVING COUNT(*) <= 20; |
Tables: Album, Artist, Customer, Employee, Genre, Invoice, InvoiceLine, MediaType, Playlist, PlaylistTrack, Track
Columns: Album.AlbumId, Album.Title, Album.ArtistId, Artist.ArtistId, Artist.Name, Customer.CustomerId, Customer.FirstName, Customer.LastName, Customer.Company, Customer.Address, Customer.City, Customer.Sta... | SELECT T1.LastName FROM CUSTOMER AS T1 JOIN EMPLOYEE AS T2 ON T1.SupportRepId = T2.EmployeeId GROUP BY T1.SupportRepId HAVING COUNT(*) <= 20; |
Tables: Album, Artist, Customer, Employee, Genre, Invoice, InvoiceLine, MediaType, Playlist, PlaylistTrack, Track
Columns: Album.AlbumId, Album.Title, Album.ArtistId, Artist.ArtistId, Artist.Name, Customer.CustomerId, Customer.FirstName, Customer.LastName, Customer.Company, Customer.Address, Customer.City, Customer.Sta... | SELECT Title FROM ALBUM ORDER BY Title; |
Tables: Album, Artist, Customer, Employee, Genre, Invoice, InvoiceLine, MediaType, Playlist, PlaylistTrack, Track
Columns: Album.AlbumId, Album.Title, Album.ArtistId, Artist.ArtistId, Artist.Name, Customer.CustomerId, Customer.FirstName, Customer.LastName, Customer.Company, Customer.Address, Customer.City, Customer.Sta... | SELECT Title FROM ALBUM ORDER BY Title; |
Tables: Album, Artist, Customer, Employee, Genre, Invoice, InvoiceLine, MediaType, Playlist, PlaylistTrack, Track
Columns: Album.AlbumId, Album.Title, Album.ArtistId, Artist.ArtistId, Artist.Name, Customer.CustomerId, Customer.FirstName, Customer.LastName, Customer.Company, Customer.Address, Customer.City, Customer.Sta... | 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; |
Tables: Album, Artist, Customer, Employee, Genre, Invoice, InvoiceLine, MediaType, Playlist, PlaylistTrack, Track
Columns: Album.AlbumId, Album.Title, Album.ArtistId, Artist.ArtistId, Artist.Name, Customer.CustomerId, Customer.FirstName, Customer.LastName, Customer.Company, Customer.Address, Customer.City, Customer.Sta... | 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; |
Tables: Album, Artist, Customer, Employee, Genre, Invoice, InvoiceLine, MediaType, Playlist, PlaylistTrack, Track
Columns: Album.AlbumId, Album.Title, Album.ArtistId, Artist.ArtistId, Artist.Name, Customer.CustomerId, Customer.FirstName, Customer.LastName, Customer.Company, Customer.Address, Customer.City, Customer.Sta... | SELECT Name FROM ARTIST EXCEPT SELECT T2.Name FROM ALBUM AS T1 JOIN ARTIST AS T2 ON T1.ArtistId = T2.ArtistId; |
Tables: Album, Artist, Customer, Employee, Genre, Invoice, InvoiceLine, MediaType, Playlist, PlaylistTrack, Track
Columns: Album.AlbumId, Album.Title, Album.ArtistId, Artist.ArtistId, Artist.Name, Customer.CustomerId, Customer.FirstName, Customer.LastName, Customer.Company, Customer.Address, Customer.City, Customer.Sta... | SELECT Name FROM ARTIST EXCEPT SELECT T2.Name FROM ALBUM AS T1 JOIN ARTIST AS T2 ON T1.ArtistId = T2.ArtistId; |
Tables: Album, Artist, Customer, Employee, Genre, Invoice, InvoiceLine, MediaType, Playlist, PlaylistTrack, Track
Columns: Album.AlbumId, Album.Title, Album.ArtistId, Artist.ArtistId, Artist.Name, Customer.CustomerId, Customer.FirstName, Customer.LastName, Customer.Company, Customer.Address, Customer.City, Customer.Sta... | SELECT AVG(T2.UnitPrice) FROM GENRE AS T1 JOIN TRACK AS T2 ON T1.GenreId = T2.GenreId WHERE T1.Name = "Rock"; |
Tables: Album, Artist, Customer, Employee, Genre, Invoice, InvoiceLine, MediaType, Playlist, PlaylistTrack, Track
Columns: Album.AlbumId, Album.Title, Album.ArtistId, Artist.ArtistId, Artist.Name, Customer.CustomerId, Customer.FirstName, Customer.LastName, Customer.Company, Customer.Address, Customer.City, Customer.Sta... | SELECT AVG(T2.UnitPrice) FROM GENRE AS T1 JOIN TRACK AS T2 ON T1.GenreId = T2.GenreId WHERE T1.Name = "Rock"; |
Tables: Album, Artist, Customer, Employee, Genre, Invoice, InvoiceLine, MediaType, Playlist, PlaylistTrack, Track
Columns: Album.AlbumId, Album.Title, Album.ArtistId, Artist.ArtistId, Artist.Name, Customer.CustomerId, Customer.FirstName, Customer.LastName, Customer.Company, Customer.Address, Customer.City, Customer.Sta... | SELECT max(Milliseconds) , min(Milliseconds) FROM GENRE AS T1 JOIN TRACK AS T2 ON T1.GenreId = T2.GenreId WHERE T1.Name = "Pop"; |
Tables: Album, Artist, Customer, Employee, Genre, Invoice, InvoiceLine, MediaType, Playlist, PlaylistTrack, Track
Columns: Album.AlbumId, Album.Title, Album.ArtistId, Artist.ArtistId, Artist.Name, Customer.CustomerId, Customer.FirstName, Customer.LastName, Customer.Company, Customer.Address, Customer.City, Customer.Sta... | SELECT max(Milliseconds) , min(Milliseconds) FROM GENRE AS T1 JOIN TRACK AS T2 ON T1.GenreId = T2.GenreId WHERE T1.Name = "Pop"; |
Tables: Album, Artist, Customer, Employee, Genre, Invoice, InvoiceLine, MediaType, Playlist, PlaylistTrack, Track
Columns: Album.AlbumId, Album.Title, Album.ArtistId, Artist.ArtistId, Artist.Name, Customer.CustomerId, Customer.FirstName, Customer.LastName, Customer.Company, Customer.Address, Customer.City, Customer.Sta... | SELECT BirthDate FROM EMPLOYEE WHERE City = "Edmonton"; |
Tables: Album, Artist, Customer, Employee, Genre, Invoice, InvoiceLine, MediaType, Playlist, PlaylistTrack, Track
Columns: Album.AlbumId, Album.Title, Album.ArtistId, Artist.ArtistId, Artist.Name, Customer.CustomerId, Customer.FirstName, Customer.LastName, Customer.Company, Customer.Address, Customer.City, Customer.Sta... | SELECT BirthDate FROM EMPLOYEE WHERE City = "Edmonton"; |
Tables: Album, Artist, Customer, Employee, Genre, Invoice, InvoiceLine, MediaType, Playlist, PlaylistTrack, Track
Columns: Album.AlbumId, Album.Title, Album.ArtistId, Artist.ArtistId, Artist.Name, Customer.CustomerId, Customer.FirstName, Customer.LastName, Customer.Company, Customer.Address, Customer.City, Customer.Sta... | SELECT distinct(UnitPrice) FROM TRACK; |
Tables: Album, Artist, Customer, Employee, Genre, Invoice, InvoiceLine, MediaType, Playlist, PlaylistTrack, Track
Columns: Album.AlbumId, Album.Title, Album.ArtistId, Artist.ArtistId, Artist.Name, Customer.CustomerId, Customer.FirstName, Customer.LastName, Customer.Company, Customer.Address, Customer.City, Customer.Sta... | SELECT distinct(UnitPrice) FROM TRACK; |
Tables: Album, Artist, Customer, Employee, Genre, Invoice, InvoiceLine, MediaType, Playlist, PlaylistTrack, Track
Columns: Album.AlbumId, Album.Title, Album.ArtistId, Artist.ArtistId, Artist.Name, Customer.CustomerId, Customer.FirstName, Customer.LastName, Customer.Company, Customer.Address, Customer.City, Customer.Sta... | SELECT count(*) FROM ARTIST WHERE artistid NOT IN(SELECT artistid FROM ALBUM); |
Tables: Album, Artist, Customer, Employee, Genre, Invoice, InvoiceLine, MediaType, Playlist, PlaylistTrack, Track
Columns: Album.AlbumId, Album.Title, Album.ArtistId, Artist.ArtistId, Artist.Name, Customer.CustomerId, Customer.FirstName, Customer.LastName, Customer.Company, Customer.Address, Customer.City, Customer.Sta... | SELECT count(*) FROM ARTIST WHERE artistid NOT IN(SELECT artistid FROM ALBUM); |
Tables: Album, Artist, Customer, Employee, Genre, Invoice, InvoiceLine, MediaType, Playlist, PlaylistTrack, Track
Columns: Album.AlbumId, Album.Title, Album.ArtistId, Artist.ArtistId, Artist.Name, Customer.CustomerId, Customer.FirstName, Customer.LastName, Customer.Company, Customer.Address, Customer.City, Customer.Sta... | 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'; |
Tables: Album, Artist, Customer, Employee, Genre, Invoice, InvoiceLine, MediaType, Playlist, PlaylistTrack, Track
Columns: Album.AlbumId, Album.Title, Album.ArtistId, Artist.ArtistId, Artist.Name, Customer.CustomerId, Customer.FirstName, Customer.LastName, Customer.Company, Customer.Address, Customer.City, Customer.Sta... | 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'; |
Tables: Customers, Services, Available_Policies, Customers_Policies, First_Notification_of_Loss, Claims, Settlements
Columns: Customers.Customer_ID, Customers.Customer_name, Services.Service_ID, Services.Service_name, Available_Policies.Policy_ID, Available_Policies.policy_type_code, Available_Policies.Customer_Phone, ... | SELECT customer_phone FROM available_policies; |
Tables: Customers, Services, Available_Policies, Customers_Policies, First_Notification_of_Loss, Claims, Settlements
Columns: Customers.Customer_ID, Customers.Customer_name, Services.Service_ID, Services.Service_name, Available_Policies.Policy_ID, Available_Policies.policy_type_code, Available_Policies.Customer_Phone, ... | SELECT customer_phone FROM available_policies; |
Tables: Customers, Services, Available_Policies, Customers_Policies, First_Notification_of_Loss, Claims, Settlements
Columns: Customers.Customer_ID, Customers.Customer_name, Services.Service_ID, Services.Service_name, Available_Policies.Policy_ID, Available_Policies.policy_type_code, Available_Policies.Customer_Phone, ... | SELECT customer_phone FROM available_policies WHERE policy_type_code = "Life Insurance"; |
Tables: Customers, Services, Available_Policies, Customers_Policies, First_Notification_of_Loss, Claims, Settlements
Columns: Customers.Customer_ID, Customers.Customer_name, Services.Service_ID, Services.Service_name, Available_Policies.Policy_ID, Available_Policies.policy_type_code, Available_Policies.Customer_Phone, ... | SELECT customer_phone FROM available_policies WHERE policy_type_code = "Life Insurance"; |
Tables: Customers, Services, Available_Policies, Customers_Policies, First_Notification_of_Loss, Claims, Settlements
Columns: Customers.Customer_ID, Customers.Customer_name, Services.Service_ID, Services.Service_name, Available_Policies.Policy_ID, Available_Policies.policy_type_code, Available_Policies.Customer_Phone, ... | SELECT policy_type_code FROM available_policies GROUP BY policy_type_code ORDER BY count(*) DESC LIMIT 1; |
Tables: Customers, Services, Available_Policies, Customers_Policies, First_Notification_of_Loss, Claims, Settlements
Columns: Customers.Customer_ID, Customers.Customer_name, Services.Service_ID, Services.Service_name, Available_Policies.Policy_ID, Available_Policies.policy_type_code, Available_Policies.Customer_Phone, ... | SELECT policy_type_code FROM available_policies GROUP BY policy_type_code ORDER BY count(*) DESC LIMIT 1; |
Tables: Customers, Services, Available_Policies, Customers_Policies, First_Notification_of_Loss, Claims, Settlements
Columns: Customers.Customer_ID, Customers.Customer_name, Services.Service_ID, Services.Service_name, Available_Policies.Policy_ID, Available_Policies.policy_type_code, Available_Policies.Customer_Phone, ... | 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); |
Tables: Customers, Services, Available_Policies, Customers_Policies, First_Notification_of_Loss, Claims, Settlements
Columns: Customers.Customer_ID, Customers.Customer_name, Services.Service_ID, Services.Service_name, Available_Policies.Policy_ID, Available_Policies.policy_type_code, Available_Policies.Customer_Phone, ... | 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); |
Tables: Customers, Services, Available_Policies, Customers_Policies, First_Notification_of_Loss, Claims, Settlements
Columns: Customers.Customer_ID, Customers.Customer_name, Services.Service_ID, Services.Service_name, Available_Policies.Policy_ID, Available_Policies.policy_type_code, Available_Policies.Customer_Phone, ... | SELECT policy_type_code FROM available_policies GROUP BY policy_type_code HAVING count(*) > 4; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.