input stringlengths 191 7.13k | output stringlengths 19 578 |
|---|---|
Tables: Ref_Hotel_Star_Ratings, Locations, Ref_Attraction_Types, Visitors, Features, Hotels, Tourist_Attractions, Street_Markets, Shops, Museums, Royal_Family, Theme_Parks, Visits, Photos, Staff, Tourist_Attraction_Features
Columns: Ref_Hotel_Star_Ratings.star_rating_code, Ref_Hotel_Star_Ratings.star_rating_description... | SELECT Address FROM LOCATIONS WHERE Location_Name = "UK Gallery"; |
Tables: Ref_Hotel_Star_Ratings, Locations, Ref_Attraction_Types, Visitors, Features, Hotels, Tourist_Attractions, Street_Markets, Shops, Museums, Royal_Family, Theme_Parks, Visits, Photos, Staff, Tourist_Attraction_Features
Columns: Ref_Hotel_Star_Ratings.star_rating_code, Ref_Hotel_Star_Ratings.star_rating_description... | SELECT Other_Details FROM LOCATIONS WHERE Location_Name = "UK Gallery"; |
Tables: Ref_Hotel_Star_Ratings, Locations, Ref_Attraction_Types, Visitors, Features, Hotels, Tourist_Attractions, Street_Markets, Shops, Museums, Royal_Family, Theme_Parks, Visits, Photos, Staff, Tourist_Attraction_Features
Columns: Ref_Hotel_Star_Ratings.star_rating_code, Ref_Hotel_Star_Ratings.star_rating_description... | SELECT Other_Details FROM LOCATIONS WHERE Location_Name = "UK Gallery"; |
Tables: Ref_Hotel_Star_Ratings, Locations, Ref_Attraction_Types, Visitors, Features, Hotels, Tourist_Attractions, Street_Markets, Shops, Museums, Royal_Family, Theme_Parks, Visits, Photos, Staff, Tourist_Attraction_Features
Columns: Ref_Hotel_Star_Ratings.star_rating_code, Ref_Hotel_Star_Ratings.star_rating_description... | SELECT Location_Name FROM LOCATIONS WHERE Location_Name LIKE "%film%"; |
Tables: Ref_Hotel_Star_Ratings, Locations, Ref_Attraction_Types, Visitors, Features, Hotels, Tourist_Attractions, Street_Markets, Shops, Museums, Royal_Family, Theme_Parks, Visits, Photos, Staff, Tourist_Attraction_Features
Columns: Ref_Hotel_Star_Ratings.star_rating_code, Ref_Hotel_Star_Ratings.star_rating_description... | SELECT Location_Name FROM LOCATIONS WHERE Location_Name LIKE "%film%"; |
Tables: Ref_Hotel_Star_Ratings, Locations, Ref_Attraction_Types, Visitors, Features, Hotels, Tourist_Attractions, Street_Markets, Shops, Museums, Royal_Family, Theme_Parks, Visits, Photos, Staff, Tourist_Attraction_Features
Columns: Ref_Hotel_Star_Ratings.star_rating_code, Ref_Hotel_Star_Ratings.star_rating_description... | SELECT count(DISTINCT Name) FROM PHOTOS; |
Tables: Ref_Hotel_Star_Ratings, Locations, Ref_Attraction_Types, Visitors, Features, Hotels, Tourist_Attractions, Street_Markets, Shops, Museums, Royal_Family, Theme_Parks, Visits, Photos, Staff, Tourist_Attraction_Features
Columns: Ref_Hotel_Star_Ratings.star_rating_code, Ref_Hotel_Star_Ratings.star_rating_description... | SELECT count(DISTINCT Name) FROM PHOTOS; |
Tables: Ref_Hotel_Star_Ratings, Locations, Ref_Attraction_Types, Visitors, Features, Hotels, Tourist_Attractions, Street_Markets, Shops, Museums, Royal_Family, Theme_Parks, Visits, Photos, Staff, Tourist_Attraction_Features
Columns: Ref_Hotel_Star_Ratings.star_rating_code, Ref_Hotel_Star_Ratings.star_rating_description... | SELECT DISTINCT Visit_Date FROM VISITS; |
Tables: Ref_Hotel_Star_Ratings, Locations, Ref_Attraction_Types, Visitors, Features, Hotels, Tourist_Attractions, Street_Markets, Shops, Museums, Royal_Family, Theme_Parks, Visits, Photos, Staff, Tourist_Attraction_Features
Columns: Ref_Hotel_Star_Ratings.star_rating_code, Ref_Hotel_Star_Ratings.star_rating_description... | SELECT DISTINCT Visit_Date FROM VISITS; |
Tables: Ref_Hotel_Star_Ratings, Locations, Ref_Attraction_Types, Visitors, Features, Hotels, Tourist_Attractions, Street_Markets, Shops, Museums, Royal_Family, Theme_Parks, Visits, Photos, Staff, Tourist_Attraction_Features
Columns: Ref_Hotel_Star_Ratings.star_rating_code, Ref_Hotel_Star_Ratings.star_rating_description... | SELECT Name FROM TOURIST_ATTRACTIONS WHERE How_to_Get_There = "bus"; |
Tables: Ref_Hotel_Star_Ratings, Locations, Ref_Attraction_Types, Visitors, Features, Hotels, Tourist_Attractions, Street_Markets, Shops, Museums, Royal_Family, Theme_Parks, Visits, Photos, Staff, Tourist_Attraction_Features
Columns: Ref_Hotel_Star_Ratings.star_rating_code, Ref_Hotel_Star_Ratings.star_rating_description... | SELECT Name FROM TOURIST_ATTRACTIONS WHERE How_to_Get_There = "bus"; |
Tables: Ref_Hotel_Star_Ratings, Locations, Ref_Attraction_Types, Visitors, Features, Hotels, Tourist_Attractions, Street_Markets, Shops, Museums, Royal_Family, Theme_Parks, Visits, Photos, Staff, Tourist_Attraction_Features
Columns: Ref_Hotel_Star_Ratings.star_rating_code, Ref_Hotel_Star_Ratings.star_rating_description... | SELECT Name , Opening_Hours FROM TOURIST_ATTRACTIONS WHERE How_to_Get_There = "bus" OR How_to_Get_There = "walk"; |
Tables: Ref_Hotel_Star_Ratings, Locations, Ref_Attraction_Types, Visitors, Features, Hotels, Tourist_Attractions, Street_Markets, Shops, Museums, Royal_Family, Theme_Parks, Visits, Photos, Staff, Tourist_Attraction_Features
Columns: Ref_Hotel_Star_Ratings.star_rating_code, Ref_Hotel_Star_Ratings.star_rating_description... | SELECT Name , Opening_Hours FROM TOURIST_ATTRACTIONS WHERE How_to_Get_There = "bus" OR How_to_Get_There = "walk"; |
Tables: Ref_Hotel_Star_Ratings, Locations, Ref_Attraction_Types, Visitors, Features, Hotels, Tourist_Attractions, Street_Markets, Shops, Museums, Royal_Family, Theme_Parks, Visits, Photos, Staff, Tourist_Attraction_Features
Columns: Ref_Hotel_Star_Ratings.star_rating_code, Ref_Hotel_Star_Ratings.star_rating_description... | SELECT T2.star_rating_description FROM HOTELS AS T1 JOIN Ref_Hotel_Star_Ratings AS T2 ON T1.star_rating_code = T2.star_rating_code WHERE T1.price_range > 10000; |
Tables: Ref_Hotel_Star_Ratings, Locations, Ref_Attraction_Types, Visitors, Features, Hotels, Tourist_Attractions, Street_Markets, Shops, Museums, Royal_Family, Theme_Parks, Visits, Photos, Staff, Tourist_Attraction_Features
Columns: Ref_Hotel_Star_Ratings.star_rating_code, Ref_Hotel_Star_Ratings.star_rating_description... | SELECT T2.star_rating_description FROM HOTELS AS T1 JOIN Ref_Hotel_Star_Ratings AS T2 ON T1.star_rating_code = T2.star_rating_code WHERE T1.price_range > 10000; |
Tables: Ref_Hotel_Star_Ratings, Locations, Ref_Attraction_Types, Visitors, Features, Hotels, Tourist_Attractions, Street_Markets, Shops, Museums, Royal_Family, Theme_Parks, Visits, Photos, Staff, Tourist_Attraction_Features
Columns: Ref_Hotel_Star_Ratings.star_rating_code, Ref_Hotel_Star_Ratings.star_rating_description... | SELECT T1.Museum_Details , T2.Opening_Hours FROM MUSEUMS AS T1 JOIN TOURIST_ATTRACTIONS AS T2 ON T1.Museum_ID = T2.Tourist_Attraction_ID; |
Tables: Ref_Hotel_Star_Ratings, Locations, Ref_Attraction_Types, Visitors, Features, Hotels, Tourist_Attractions, Street_Markets, Shops, Museums, Royal_Family, Theme_Parks, Visits, Photos, Staff, Tourist_Attraction_Features
Columns: Ref_Hotel_Star_Ratings.star_rating_code, Ref_Hotel_Star_Ratings.star_rating_description... | SELECT T1.Museum_Details , T2.Opening_Hours FROM MUSEUMS AS T1 JOIN TOURIST_ATTRACTIONS AS T2 ON T1.Museum_ID = T2.Tourist_Attraction_ID; |
Tables: Ref_Hotel_Star_Ratings, Locations, Ref_Attraction_Types, Visitors, Features, Hotels, Tourist_Attractions, Street_Markets, Shops, Museums, Royal_Family, Theme_Parks, Visits, Photos, Staff, Tourist_Attraction_Features
Columns: Ref_Hotel_Star_Ratings.star_rating_code, Ref_Hotel_Star_Ratings.star_rating_description... | SELECT T2.Name FROM PHOTOS AS T1 JOIN TOURIST_ATTRACTIONS AS T2 ON T1.Tourist_Attraction_ID = T2.Tourist_Attraction_ID WHERE T1.Name = "game1"; |
Tables: Ref_Hotel_Star_Ratings, Locations, Ref_Attraction_Types, Visitors, Features, Hotels, Tourist_Attractions, Street_Markets, Shops, Museums, Royal_Family, Theme_Parks, Visits, Photos, Staff, Tourist_Attraction_Features
Columns: Ref_Hotel_Star_Ratings.star_rating_code, Ref_Hotel_Star_Ratings.star_rating_description... | SELECT T2.Name FROM PHOTOS AS T1 JOIN TOURIST_ATTRACTIONS AS T2 ON T1.Tourist_Attraction_ID = T2.Tourist_Attraction_ID WHERE T1.Name = "game1"; |
Tables: Ref_Hotel_Star_Ratings, Locations, Ref_Attraction_Types, Visitors, Features, Hotels, Tourist_Attractions, Street_Markets, Shops, Museums, Royal_Family, Theme_Parks, Visits, Photos, Staff, Tourist_Attraction_Features
Columns: Ref_Hotel_Star_Ratings.star_rating_code, Ref_Hotel_Star_Ratings.star_rating_description... | SELECT T1.Name , T1.Description FROM PHOTOS AS T1 JOIN TOURIST_ATTRACTIONS AS T2 ON T1.Tourist_Attraction_ID = T2.Tourist_Attraction_ID WHERE T2.Name = "film festival"; |
Tables: Ref_Hotel_Star_Ratings, Locations, Ref_Attraction_Types, Visitors, Features, Hotels, Tourist_Attractions, Street_Markets, Shops, Museums, Royal_Family, Theme_Parks, Visits, Photos, Staff, Tourist_Attraction_Features
Columns: Ref_Hotel_Star_Ratings.star_rating_code, Ref_Hotel_Star_Ratings.star_rating_description... | SELECT T1.Name , T1.Description FROM PHOTOS AS T1 JOIN TOURIST_ATTRACTIONS AS T2 ON T1.Tourist_Attraction_ID = T2.Tourist_Attraction_ID WHERE T2.Name = "film festival"; |
Tables: Ref_Hotel_Star_Ratings, Locations, Ref_Attraction_Types, Visitors, Features, Hotels, Tourist_Attractions, Street_Markets, Shops, Museums, Royal_Family, Theme_Parks, Visits, Photos, Staff, Tourist_Attraction_Features
Columns: Ref_Hotel_Star_Ratings.star_rating_code, Ref_Hotel_Star_Ratings.star_rating_description... | SELECT T1.Royal_Family_Details , T2.How_to_Get_There FROM ROYAL_FAMILY AS T1 JOIN TOURIST_ATTRACTIONS AS T2 ON T1.Royal_Family_ID = T2.Tourist_Attraction_ID; |
Tables: Ref_Hotel_Star_Ratings, Locations, Ref_Attraction_Types, Visitors, Features, Hotels, Tourist_Attractions, Street_Markets, Shops, Museums, Royal_Family, Theme_Parks, Visits, Photos, Staff, Tourist_Attraction_Features
Columns: Ref_Hotel_Star_Ratings.star_rating_code, Ref_Hotel_Star_Ratings.star_rating_description... | SELECT T1.Royal_Family_Details , T2.How_to_Get_There FROM ROYAL_FAMILY AS T1 JOIN TOURIST_ATTRACTIONS AS T2 ON T1.Royal_Family_ID = T2.Tourist_Attraction_ID; |
Tables: Ref_Hotel_Star_Ratings, Locations, Ref_Attraction_Types, Visitors, Features, Hotels, Tourist_Attractions, Street_Markets, Shops, Museums, Royal_Family, Theme_Parks, Visits, Photos, Staff, Tourist_Attraction_Features
Columns: Ref_Hotel_Star_Ratings.star_rating_code, Ref_Hotel_Star_Ratings.star_rating_description... | SELECT T1.Shop_Details FROM SHOPS AS T1 JOIN TOURIST_ATTRACTIONS AS T2 ON T1.Shop_ID = T2.Tourist_Attraction_ID WHERE T2.How_to_Get_There = "walk"; |
Tables: Ref_Hotel_Star_Ratings, Locations, Ref_Attraction_Types, Visitors, Features, Hotels, Tourist_Attractions, Street_Markets, Shops, Museums, Royal_Family, Theme_Parks, Visits, Photos, Staff, Tourist_Attraction_Features
Columns: Ref_Hotel_Star_Ratings.star_rating_code, Ref_Hotel_Star_Ratings.star_rating_description... | SELECT T1.Shop_Details FROM SHOPS AS T1 JOIN TOURIST_ATTRACTIONS AS T2 ON T1.Shop_ID = T2.Tourist_Attraction_ID WHERE T2.How_to_Get_There = "walk"; |
Tables: Ref_Hotel_Star_Ratings, Locations, Ref_Attraction_Types, Visitors, Features, Hotels, Tourist_Attractions, Street_Markets, Shops, Museums, Royal_Family, Theme_Parks, Visits, Photos, Staff, Tourist_Attraction_Features
Columns: Ref_Hotel_Star_Ratings.star_rating_code, Ref_Hotel_Star_Ratings.star_rating_description... | SELECT T1.Name FROM STAFF AS T1 JOIN TOURIST_ATTRACTIONS AS T2 ON T1.Tourist_Attraction_ID = T2.Tourist_Attraction_ID WHERE T2.Name = "US museum"; |
Tables: Ref_Hotel_Star_Ratings, Locations, Ref_Attraction_Types, Visitors, Features, Hotels, Tourist_Attractions, Street_Markets, Shops, Museums, Royal_Family, Theme_Parks, Visits, Photos, Staff, Tourist_Attraction_Features
Columns: Ref_Hotel_Star_Ratings.star_rating_code, Ref_Hotel_Star_Ratings.star_rating_description... | SELECT T1.Name FROM STAFF AS T1 JOIN TOURIST_ATTRACTIONS AS T2 ON T1.Tourist_Attraction_ID = T2.Tourist_Attraction_ID WHERE T2.Name = "US museum"; |
Tables: Ref_Hotel_Star_Ratings, Locations, Ref_Attraction_Types, Visitors, Features, Hotels, Tourist_Attractions, Street_Markets, Shops, Museums, Royal_Family, Theme_Parks, Visits, Photos, Staff, Tourist_Attraction_Features
Columns: Ref_Hotel_Star_Ratings.star_rating_code, Ref_Hotel_Star_Ratings.star_rating_description... | SELECT T1.Market_Details FROM Street_Markets AS T1 JOIN TOURIST_ATTRACTIONS AS T2 ON T1.Market_ID = T2.Tourist_Attraction_ID WHERE T2.How_to_Get_There = "walk" OR T2.How_to_Get_There = "bus"; |
Tables: Ref_Hotel_Star_Ratings, Locations, Ref_Attraction_Types, Visitors, Features, Hotels, Tourist_Attractions, Street_Markets, Shops, Museums, Royal_Family, Theme_Parks, Visits, Photos, Staff, Tourist_Attraction_Features
Columns: Ref_Hotel_Star_Ratings.star_rating_code, Ref_Hotel_Star_Ratings.star_rating_description... | SELECT T1.Market_Details FROM Street_Markets AS T1 JOIN TOURIST_ATTRACTIONS AS T2 ON T1.Market_ID = T2.Tourist_Attraction_ID WHERE T2.How_to_Get_There = "walk" OR T2.How_to_Get_There = "bus"; |
Tables: Ref_Hotel_Star_Ratings, Locations, Ref_Attraction_Types, Visitors, Features, Hotels, Tourist_Attractions, Street_Markets, Shops, Museums, Royal_Family, Theme_Parks, Visits, Photos, Staff, Tourist_Attraction_Features
Columns: Ref_Hotel_Star_Ratings.star_rating_code, Ref_Hotel_Star_Ratings.star_rating_description... | SELECT T2.Visit_Date , T2.Visit_Details FROM VISITORS AS T1 JOIN VISITS AS T2 ON T1.Tourist_ID = T2.Tourist_ID WHERE T1.Tourist_Details = "Vincent"; |
Tables: Ref_Hotel_Star_Ratings, Locations, Ref_Attraction_Types, Visitors, Features, Hotels, Tourist_Attractions, Street_Markets, Shops, Museums, Royal_Family, Theme_Parks, Visits, Photos, Staff, Tourist_Attraction_Features
Columns: Ref_Hotel_Star_Ratings.star_rating_code, Ref_Hotel_Star_Ratings.star_rating_description... | SELECT T2.Visit_Date , T2.Visit_Details FROM VISITORS AS T1 JOIN VISITS AS T2 ON T1.Tourist_ID = T2.Tourist_ID WHERE T1.Tourist_Details = "Vincent"; |
Tables: Ref_Hotel_Star_Ratings, Locations, Ref_Attraction_Types, Visitors, Features, Hotels, Tourist_Attractions, Street_Markets, Shops, Museums, Royal_Family, Theme_Parks, Visits, Photos, Staff, Tourist_Attraction_Features
Columns: Ref_Hotel_Star_Ratings.star_rating_code, Ref_Hotel_Star_Ratings.star_rating_description... | SELECT T1.Name FROM Tourist_Attractions AS T1 JOIN VISITS AS T2 ON T1.Tourist_Attraction_ID = T2.Tourist_Attraction_ID JOIN VISITORS AS T3 ON T2.Tourist_ID = T3.Tourist_ID WHERE T3.Tourist_Details = "Vincent"; |
Tables: Ref_Hotel_Star_Ratings, Locations, Ref_Attraction_Types, Visitors, Features, Hotels, Tourist_Attractions, Street_Markets, Shops, Museums, Royal_Family, Theme_Parks, Visits, Photos, Staff, Tourist_Attraction_Features
Columns: Ref_Hotel_Star_Ratings.star_rating_code, Ref_Hotel_Star_Ratings.star_rating_description... | SELECT T1.Name FROM Tourist_Attractions AS T1 JOIN VISITS AS T2 ON T1.Tourist_Attraction_ID = T2.Tourist_Attraction_ID JOIN VISITORS AS T3 ON T2.Tourist_ID = T3.Tourist_ID WHERE T3.Tourist_Details = "Vincent"; |
Tables: Ref_Hotel_Star_Ratings, Locations, Ref_Attraction_Types, Visitors, Features, Hotels, Tourist_Attractions, Street_Markets, Shops, Museums, Royal_Family, Theme_Parks, Visits, Photos, Staff, Tourist_Attraction_Features
Columns: Ref_Hotel_Star_Ratings.star_rating_code, Ref_Hotel_Star_Ratings.star_rating_description... | SELECT T1.Name , T3.Visit_Date FROM Tourist_Attractions AS T1 JOIN VISITORS AS T2 JOIN VISITS AS T3 ON T1.Tourist_Attraction_ID = T3.Tourist_Attraction_ID AND T2.Tourist_ID = T3.Tourist_ID WHERE T2.Tourist_Details = "Vincent" OR T2.Tourist_Details = "Vivian"; |
Tables: Ref_Hotel_Star_Ratings, Locations, Ref_Attraction_Types, Visitors, Features, Hotels, Tourist_Attractions, Street_Markets, Shops, Museums, Royal_Family, Theme_Parks, Visits, Photos, Staff, Tourist_Attraction_Features
Columns: Ref_Hotel_Star_Ratings.star_rating_code, Ref_Hotel_Star_Ratings.star_rating_description... | SELECT T1.Name , T3.Visit_Date FROM Tourist_Attractions AS T1 JOIN VISITORS AS T2 JOIN VISITS AS T3 ON T1.Tourist_Attraction_ID = T3.Tourist_Attraction_ID AND T2.Tourist_ID = T3.Tourist_ID WHERE T2.Tourist_Details = "Vincent" OR T2.Tourist_Details = "Vivian"; |
Tables: Ref_Hotel_Star_Ratings, Locations, Ref_Attraction_Types, Visitors, Features, Hotels, Tourist_Attractions, Street_Markets, Shops, Museums, Royal_Family, Theme_Parks, Visits, Photos, Staff, Tourist_Attraction_Features
Columns: Ref_Hotel_Star_Ratings.star_rating_code, Ref_Hotel_Star_Ratings.star_rating_description... | SELECT star_rating_code , avg(price_range) FROM HOTELS GROUP BY star_rating_code; |
Tables: Ref_Hotel_Star_Ratings, Locations, Ref_Attraction_Types, Visitors, Features, Hotels, Tourist_Attractions, Street_Markets, Shops, Museums, Royal_Family, Theme_Parks, Visits, Photos, Staff, Tourist_Attraction_Features
Columns: Ref_Hotel_Star_Ratings.star_rating_code, Ref_Hotel_Star_Ratings.star_rating_description... | SELECT star_rating_code , avg(price_range) FROM HOTELS GROUP BY star_rating_code; |
Tables: Ref_Hotel_Star_Ratings, Locations, Ref_Attraction_Types, Visitors, Features, Hotels, Tourist_Attractions, Street_Markets, Shops, Museums, Royal_Family, Theme_Parks, Visits, Photos, Staff, Tourist_Attraction_Features
Columns: Ref_Hotel_Star_Ratings.star_rating_code, Ref_Hotel_Star_Ratings.star_rating_description... | SELECT pets_allowed_yn , avg(price_range) FROM HOTELS GROUP BY pets_allowed_yn; |
Tables: Ref_Hotel_Star_Ratings, Locations, Ref_Attraction_Types, Visitors, Features, Hotels, Tourist_Attractions, Street_Markets, Shops, Museums, Royal_Family, Theme_Parks, Visits, Photos, Staff, Tourist_Attraction_Features
Columns: Ref_Hotel_Star_Ratings.star_rating_code, Ref_Hotel_Star_Ratings.star_rating_description... | SELECT pets_allowed_yn , avg(price_range) FROM HOTELS GROUP BY pets_allowed_yn; |
Tables: Ref_Hotel_Star_Ratings, Locations, Ref_Attraction_Types, Visitors, Features, Hotels, Tourist_Attractions, Street_Markets, Shops, Museums, Royal_Family, Theme_Parks, Visits, Photos, Staff, Tourist_Attraction_Features
Columns: Ref_Hotel_Star_Ratings.star_rating_code, Ref_Hotel_Star_Ratings.star_rating_description... | SELECT hotel_id , star_rating_code FROM HOTELS ORDER BY price_range ASC; |
Tables: Ref_Hotel_Star_Ratings, Locations, Ref_Attraction_Types, Visitors, Features, Hotels, Tourist_Attractions, Street_Markets, Shops, Museums, Royal_Family, Theme_Parks, Visits, Photos, Staff, Tourist_Attraction_Features
Columns: Ref_Hotel_Star_Ratings.star_rating_code, Ref_Hotel_Star_Ratings.star_rating_description... | SELECT hotel_id , star_rating_code FROM HOTELS ORDER BY price_range ASC; |
Tables: Ref_Hotel_Star_Ratings, Locations, Ref_Attraction_Types, Visitors, Features, Hotels, Tourist_Attractions, Street_Markets, Shops, Museums, Royal_Family, Theme_Parks, Visits, Photos, Staff, Tourist_Attraction_Features
Columns: Ref_Hotel_Star_Ratings.star_rating_code, Ref_Hotel_Star_Ratings.star_rating_description... | SELECT other_hotel_details FROM HOTELS ORDER BY price_range DESC LIMIT 3; |
Tables: Ref_Hotel_Star_Ratings, Locations, Ref_Attraction_Types, Visitors, Features, Hotels, Tourist_Attractions, Street_Markets, Shops, Museums, Royal_Family, Theme_Parks, Visits, Photos, Staff, Tourist_Attraction_Features
Columns: Ref_Hotel_Star_Ratings.star_rating_code, Ref_Hotel_Star_Ratings.star_rating_description... | SELECT other_hotel_details FROM HOTELS ORDER BY price_range DESC LIMIT 3; |
Tables: Ref_Hotel_Star_Ratings, Locations, Ref_Attraction_Types, Visitors, Features, Hotels, Tourist_Attractions, Street_Markets, Shops, Museums, Royal_Family, Theme_Parks, Visits, Photos, Staff, Tourist_Attraction_Features
Columns: Ref_Hotel_Star_Ratings.star_rating_code, Ref_Hotel_Star_Ratings.star_rating_description... | SELECT other_hotel_details , star_rating_code FROM HOTELS ORDER BY price_range ASC LIMIT 3; |
Tables: Ref_Hotel_Star_Ratings, Locations, Ref_Attraction_Types, Visitors, Features, Hotels, Tourist_Attractions, Street_Markets, Shops, Museums, Royal_Family, Theme_Parks, Visits, Photos, Staff, Tourist_Attraction_Features
Columns: Ref_Hotel_Star_Ratings.star_rating_code, Ref_Hotel_Star_Ratings.star_rating_description... | SELECT other_hotel_details , star_rating_code FROM HOTELS ORDER BY price_range ASC LIMIT 3; |
Tables: Ref_Hotel_Star_Ratings, Locations, Ref_Attraction_Types, Visitors, Features, Hotels, Tourist_Attractions, Street_Markets, Shops, Museums, Royal_Family, Theme_Parks, Visits, Photos, Staff, Tourist_Attraction_Features
Columns: Ref_Hotel_Star_Ratings.star_rating_code, Ref_Hotel_Star_Ratings.star_rating_description... | SELECT How_to_Get_There FROM Tourist_Attractions GROUP BY How_to_Get_There ORDER BY COUNT(*) DESC LIMIT 1; |
Tables: Ref_Hotel_Star_Ratings, Locations, Ref_Attraction_Types, Visitors, Features, Hotels, Tourist_Attractions, Street_Markets, Shops, Museums, Royal_Family, Theme_Parks, Visits, Photos, Staff, Tourist_Attraction_Features
Columns: Ref_Hotel_Star_Ratings.star_rating_code, Ref_Hotel_Star_Ratings.star_rating_description... | SELECT How_to_Get_There FROM Tourist_Attractions GROUP BY How_to_Get_There ORDER BY COUNT(*) DESC LIMIT 1; |
Tables: Ref_Hotel_Star_Ratings, Locations, Ref_Attraction_Types, Visitors, Features, Hotels, Tourist_Attractions, Street_Markets, Shops, Museums, Royal_Family, Theme_Parks, Visits, Photos, Staff, Tourist_Attraction_Features
Columns: Ref_Hotel_Star_Ratings.star_rating_code, Ref_Hotel_Star_Ratings.star_rating_description... | SELECT T1.Attraction_Type_Description , T2.Attraction_Type_Code FROM Ref_Attraction_Types AS T1 JOIN Tourist_Attractions AS T2 ON T1.Attraction_Type_Code = T2.Attraction_Type_Code GROUP BY T2.Attraction_Type_Code ORDER BY COUNT(*) DESC LIMIT 1; |
Tables: Ref_Hotel_Star_Ratings, Locations, Ref_Attraction_Types, Visitors, Features, Hotels, Tourist_Attractions, Street_Markets, Shops, Museums, Royal_Family, Theme_Parks, Visits, Photos, Staff, Tourist_Attraction_Features
Columns: Ref_Hotel_Star_Ratings.star_rating_code, Ref_Hotel_Star_Ratings.star_rating_description... | SELECT T1.Attraction_Type_Description , T2.Attraction_Type_Code FROM Ref_Attraction_Types AS T1 JOIN Tourist_Attractions AS T2 ON T1.Attraction_Type_Code = T2.Attraction_Type_Code GROUP BY T2.Attraction_Type_Code ORDER BY COUNT(*) DESC LIMIT 1; |
Tables: Ref_Hotel_Star_Ratings, Locations, Ref_Attraction_Types, Visitors, Features, Hotels, Tourist_Attractions, Street_Markets, Shops, Museums, Royal_Family, Theme_Parks, Visits, Photos, Staff, Tourist_Attraction_Features
Columns: Ref_Hotel_Star_Ratings.star_rating_code, Ref_Hotel_Star_Ratings.star_rating_description... | SELECT How_to_Get_There , COUNT(*) FROM Tourist_Attractions GROUP BY How_to_Get_There; |
Tables: Ref_Hotel_Star_Ratings, Locations, Ref_Attraction_Types, Visitors, Features, Hotels, Tourist_Attractions, Street_Markets, Shops, Museums, Royal_Family, Theme_Parks, Visits, Photos, Staff, Tourist_Attraction_Features
Columns: Ref_Hotel_Star_Ratings.star_rating_code, Ref_Hotel_Star_Ratings.star_rating_description... | SELECT How_to_Get_There , COUNT(*) FROM Tourist_Attractions GROUP BY How_to_Get_There; |
Tables: Ref_Hotel_Star_Ratings, Locations, Ref_Attraction_Types, Visitors, Features, Hotels, Tourist_Attractions, Street_Markets, Shops, Museums, Royal_Family, Theme_Parks, Visits, Photos, Staff, Tourist_Attraction_Features
Columns: Ref_Hotel_Star_Ratings.star_rating_code, Ref_Hotel_Star_Ratings.star_rating_description... | SELECT T1.Name , T2.Tourist_Attraction_ID , COUNT(*) FROM Tourist_Attractions AS T1 JOIN VISITS AS T2 ON T1.Tourist_Attraction_ID = T2.Tourist_Attraction_ID GROUP BY T2.Tourist_Attraction_ID; |
Tables: Ref_Hotel_Star_Ratings, Locations, Ref_Attraction_Types, Visitors, Features, Hotels, Tourist_Attractions, Street_Markets, Shops, Museums, Royal_Family, Theme_Parks, Visits, Photos, Staff, Tourist_Attraction_Features
Columns: Ref_Hotel_Star_Ratings.star_rating_code, Ref_Hotel_Star_Ratings.star_rating_description... | SELECT T1.Name , T2.Tourist_Attraction_ID , COUNT(*) FROM Tourist_Attractions AS T1 JOIN VISITS AS T2 ON T1.Tourist_Attraction_ID = T2.Tourist_Attraction_ID GROUP BY T2.Tourist_Attraction_ID; |
Tables: Ref_Hotel_Star_Ratings, Locations, Ref_Attraction_Types, Visitors, Features, Hotels, Tourist_Attractions, Street_Markets, Shops, Museums, Royal_Family, Theme_Parks, Visits, Photos, Staff, Tourist_Attraction_Features
Columns: Ref_Hotel_Star_Ratings.star_rating_code, Ref_Hotel_Star_Ratings.star_rating_description... | SELECT T1.Name , T2.Tourist_Attraction_ID FROM Tourist_Attractions AS T1 JOIN VISITS AS T2 ON T1.Tourist_Attraction_ID = T2.Tourist_Attraction_ID GROUP BY T2.Tourist_Attraction_ID HAVING count(*) >= 2; |
Tables: Ref_Hotel_Star_Ratings, Locations, Ref_Attraction_Types, Visitors, Features, Hotels, Tourist_Attractions, Street_Markets, Shops, Museums, Royal_Family, Theme_Parks, Visits, Photos, Staff, Tourist_Attraction_Features
Columns: Ref_Hotel_Star_Ratings.star_rating_code, Ref_Hotel_Star_Ratings.star_rating_description... | SELECT T1.Name , T2.Tourist_Attraction_ID FROM Tourist_Attractions AS T1 JOIN VISITS AS T2 ON T1.Tourist_Attraction_ID = T2.Tourist_Attraction_ID GROUP BY T2.Tourist_Attraction_ID HAVING count(*) >= 2; |
Tables: Ref_Hotel_Star_Ratings, Locations, Ref_Attraction_Types, Visitors, Features, Hotels, Tourist_Attractions, Street_Markets, Shops, Museums, Royal_Family, Theme_Parks, Visits, Photos, Staff, Tourist_Attraction_Features
Columns: Ref_Hotel_Star_Ratings.star_rating_code, Ref_Hotel_Star_Ratings.star_rating_description... | SELECT T1.Name , T1.Tourist_Attraction_ID FROM Tourist_Attractions AS T1 JOIN VISITS AS T2 ON T1.Tourist_Attraction_ID = T2.Tourist_Attraction_ID GROUP BY T2.Tourist_Attraction_ID HAVING count(*) <= 1; |
Tables: Ref_Hotel_Star_Ratings, Locations, Ref_Attraction_Types, Visitors, Features, Hotels, Tourist_Attractions, Street_Markets, Shops, Museums, Royal_Family, Theme_Parks, Visits, Photos, Staff, Tourist_Attraction_Features
Columns: Ref_Hotel_Star_Ratings.star_rating_code, Ref_Hotel_Star_Ratings.star_rating_description... | SELECT T1.Name , T1.Tourist_Attraction_ID FROM Tourist_Attractions AS T1 JOIN VISITS AS T2 ON T1.Tourist_Attraction_ID = T2.Tourist_Attraction_ID GROUP BY T2.Tourist_Attraction_ID HAVING count(*) <= 1; |
Tables: Ref_Hotel_Star_Ratings, Locations, Ref_Attraction_Types, Visitors, Features, Hotels, Tourist_Attractions, Street_Markets, Shops, Museums, Royal_Family, Theme_Parks, Visits, Photos, Staff, Tourist_Attraction_Features
Columns: Ref_Hotel_Star_Ratings.star_rating_code, Ref_Hotel_Star_Ratings.star_rating_description... | SELECT T2.Name FROM Locations AS T1 JOIN Tourist_Attractions AS T2 ON T1.Location_ID = T2.Location_ID WHERE T1.Address = "660 Shea Crescent" OR T2.How_to_Get_There = "walk"; |
Tables: Ref_Hotel_Star_Ratings, Locations, Ref_Attraction_Types, Visitors, Features, Hotels, Tourist_Attractions, Street_Markets, Shops, Museums, Royal_Family, Theme_Parks, Visits, Photos, Staff, Tourist_Attraction_Features
Columns: Ref_Hotel_Star_Ratings.star_rating_code, Ref_Hotel_Star_Ratings.star_rating_description... | SELECT T2.Name FROM Locations AS T1 JOIN Tourist_Attractions AS T2 ON T1.Location_ID = T2.Location_ID WHERE T1.Address = "660 Shea Crescent" OR T2.How_to_Get_There = "walk"; |
Tables: Ref_Hotel_Star_Ratings, Locations, Ref_Attraction_Types, Visitors, Features, Hotels, Tourist_Attractions, Street_Markets, Shops, Museums, Royal_Family, Theme_Parks, Visits, Photos, Staff, Tourist_Attraction_Features
Columns: Ref_Hotel_Star_Ratings.star_rating_code, Ref_Hotel_Star_Ratings.star_rating_description... | SELECT T1.Name FROM Tourist_Attractions AS T1 JOIN Tourist_Attraction_Features AS T2 ON T1.tourist_attraction_id = T2.tourist_attraction_id JOIN Features AS T3 ON T2.Feature_ID = T3.Feature_ID WHERE T3.feature_Details = 'park' UNION SELECT T1.Name FROM Tourist_Attractions AS T1 JOIN Tourist_Attraction_Features AS... |
Tables: Ref_Hotel_Star_Ratings, Locations, Ref_Attraction_Types, Visitors, Features, Hotels, Tourist_Attractions, Street_Markets, Shops, Museums, Royal_Family, Theme_Parks, Visits, Photos, Staff, Tourist_Attraction_Features
Columns: Ref_Hotel_Star_Ratings.star_rating_code, Ref_Hotel_Star_Ratings.star_rating_description... | SELECT T1.Name FROM Tourist_Attractions AS T1 JOIN Tourist_Attraction_Features AS T2 ON T1.tourist_attraction_id = T2.tourist_attraction_id JOIN Features AS T3 ON T2.Feature_ID = T3.Feature_ID WHERE T3.feature_Details = 'park' UNION SELECT T1.Name FROM Tourist_Attractions AS T1 JOIN Tourist_Attraction_Features AS... |
Tables: Ref_Hotel_Star_Ratings, Locations, Ref_Attraction_Types, Visitors, Features, Hotels, Tourist_Attractions, Street_Markets, Shops, Museums, Royal_Family, Theme_Parks, Visits, Photos, Staff, Tourist_Attraction_Features
Columns: Ref_Hotel_Star_Ratings.star_rating_code, Ref_Hotel_Star_Ratings.star_rating_description... | SELECT T2.Name FROM Locations AS T1 JOIN Tourist_Attractions AS T2 ON T1.Location_ID = T2.Location_ID WHERE T1.Address = "254 Ottilie Junction" OR T2.How_to_Get_There = "bus"; |
Tables: Ref_Hotel_Star_Ratings, Locations, Ref_Attraction_Types, Visitors, Features, Hotels, Tourist_Attractions, Street_Markets, Shops, Museums, Royal_Family, Theme_Parks, Visits, Photos, Staff, Tourist_Attraction_Features
Columns: Ref_Hotel_Star_Ratings.star_rating_code, Ref_Hotel_Star_Ratings.star_rating_description... | SELECT T2.Name FROM Locations AS T1 JOIN Tourist_Attractions AS T2 ON T1.Location_ID = T2.Location_ID WHERE T1.Address = "254 Ottilie Junction" OR T2.How_to_Get_There = "bus"; |
Tables: Ref_Hotel_Star_Ratings, Locations, Ref_Attraction_Types, Visitors, Features, Hotels, Tourist_Attractions, Street_Markets, Shops, Museums, Royal_Family, Theme_Parks, Visits, Photos, Staff, Tourist_Attraction_Features
Columns: Ref_Hotel_Star_Ratings.star_rating_code, Ref_Hotel_Star_Ratings.star_rating_description... | SELECT T1.Name FROM Tourist_Attractions AS T1 JOIN VISITORS AS T2 JOIN VISITS AS T3 ON T1.Tourist_Attraction_ID = T3.Tourist_Attraction_ID AND T2.Tourist_ID = T3.Tourist_ID WHERE T2.Tourist_Details = "Vincent" INTERSECT SELECT T1.Name FROM Tourist_Attractions AS T1 JOIN VISITORS AS T2 JOIN VISITS AS T3 ON T1.Tour... |
Tables: Ref_Hotel_Star_Ratings, Locations, Ref_Attraction_Types, Visitors, Features, Hotels, Tourist_Attractions, Street_Markets, Shops, Museums, Royal_Family, Theme_Parks, Visits, Photos, Staff, Tourist_Attraction_Features
Columns: Ref_Hotel_Star_Ratings.star_rating_code, Ref_Hotel_Star_Ratings.star_rating_description... | SELECT T1.Name FROM Tourist_Attractions AS T1 JOIN VISITORS AS T2 JOIN VISITS AS T3 ON T1.Tourist_Attraction_ID = T3.Tourist_Attraction_ID AND T2.Tourist_ID = T3.Tourist_ID WHERE T2.Tourist_Details = "Vincent" INTERSECT SELECT T1.Name FROM Tourist_Attractions AS T1 JOIN VISITORS AS T2 JOIN VISITS AS T3 ON T1.Tour... |
Tables: Ref_Hotel_Star_Ratings, Locations, Ref_Attraction_Types, Visitors, Features, Hotels, Tourist_Attractions, Street_Markets, Shops, Museums, Royal_Family, Theme_Parks, Visits, Photos, Staff, Tourist_Attraction_Features
Columns: Ref_Hotel_Star_Ratings.star_rating_code, Ref_Hotel_Star_Ratings.star_rating_description... | SELECT T1.Name FROM Tourist_Attractions AS T1 JOIN VISITORS AS T2 JOIN VISITS AS T3 ON T1.Tourist_Attraction_ID = T3.Tourist_Attraction_ID AND T2.Tourist_ID = T3.Tourist_ID WHERE T2.Tourist_Details = "Alison" EXCEPT SELECT T1.Name FROM Tourist_Attractions AS T1 JOIN VISITORS AS T2 JOIN VISITS AS T3 ON T1.Tourist_... |
Tables: Ref_Hotel_Star_Ratings, Locations, Ref_Attraction_Types, Visitors, Features, Hotels, Tourist_Attractions, Street_Markets, Shops, Museums, Royal_Family, Theme_Parks, Visits, Photos, Staff, Tourist_Attraction_Features
Columns: Ref_Hotel_Star_Ratings.star_rating_code, Ref_Hotel_Star_Ratings.star_rating_description... | SELECT T1.Name FROM Tourist_Attractions AS T1 JOIN VISITORS AS T2 JOIN VISITS AS T3 ON T1.Tourist_Attraction_ID = T3.Tourist_Attraction_ID AND T2.Tourist_ID = T3.Tourist_ID WHERE T2.Tourist_Details = "Alison" EXCEPT SELECT T1.Name FROM Tourist_Attractions AS T1 JOIN VISITORS AS T2 JOIN VISITS AS T3 ON T1.Tourist_... |
Tables: Ref_Hotel_Star_Ratings, Locations, Ref_Attraction_Types, Visitors, Features, Hotels, Tourist_Attractions, Street_Markets, Shops, Museums, Royal_Family, Theme_Parks, Visits, Photos, Staff, Tourist_Attraction_Features
Columns: Ref_Hotel_Star_Ratings.star_rating_code, Ref_Hotel_Star_Ratings.star_rating_description... | SELECT count(*) FROM Visitors WHERE Tourist_ID NOT IN ( SELECT Tourist_ID FROM Visits ); |
Tables: Ref_Hotel_Star_Ratings, Locations, Ref_Attraction_Types, Visitors, Features, Hotels, Tourist_Attractions, Street_Markets, Shops, Museums, Royal_Family, Theme_Parks, Visits, Photos, Staff, Tourist_Attraction_Features
Columns: Ref_Hotel_Star_Ratings.star_rating_code, Ref_Hotel_Star_Ratings.star_rating_description... | SELECT count(*) FROM Visitors WHERE Tourist_ID NOT IN ( SELECT Tourist_ID FROM Visits ); |
Tables: Student, Video_Games, Plays_Games, SportsInfo
Columns: Student.StuID, Student.LName, Student.Fname, Student.Age, Student.Sex, Student.Major, Student.Advisor, Student.city_code, Video_Games.GameID, Video_Games.GName, Video_Games.GType, Plays_Games.StuID, Plays_Games.GameID, Plays_Games.Hours_Played, SportsInfo.S... | SELECT count(*) FROM Video_games; |
Tables: Student, Video_Games, Plays_Games, SportsInfo
Columns: Student.StuID, Student.LName, Student.Fname, Student.Age, Student.Sex, Student.Major, Student.Advisor, Student.city_code, Video_Games.GameID, Video_Games.GName, Video_Games.GType, Plays_Games.StuID, Plays_Games.GameID, Plays_Games.Hours_Played, SportsInfo.S... | SELECT count(*) FROM Video_games; |
Tables: Student, Video_Games, Plays_Games, SportsInfo
Columns: Student.StuID, Student.LName, Student.Fname, Student.Age, Student.Sex, Student.Major, Student.Advisor, Student.city_code, Video_Games.GameID, Video_Games.GName, Video_Games.GType, Plays_Games.StuID, Plays_Games.GameID, Plays_Games.Hours_Played, SportsInfo.S... | SELECT count(DISTINCT gtype) FROM Video_games; |
Tables: Student, Video_Games, Plays_Games, SportsInfo
Columns: Student.StuID, Student.LName, Student.Fname, Student.Age, Student.Sex, Student.Major, Student.Advisor, Student.city_code, Video_Games.GameID, Video_Games.GName, Video_Games.GType, Plays_Games.StuID, Plays_Games.GameID, Plays_Games.Hours_Played, SportsInfo.S... | SELECT count(DISTINCT gtype) FROM Video_games; |
Tables: Student, Video_Games, Plays_Games, SportsInfo
Columns: Student.StuID, Student.LName, Student.Fname, Student.Age, Student.Sex, Student.Major, Student.Advisor, Student.city_code, Video_Games.GameID, Video_Games.GName, Video_Games.GType, Plays_Games.StuID, Plays_Games.GameID, Plays_Games.Hours_Played, SportsInfo.S... | SELECT DISTINCT gtype FROM Video_games; |
Tables: Student, Video_Games, Plays_Games, SportsInfo
Columns: Student.StuID, Student.LName, Student.Fname, Student.Age, Student.Sex, Student.Major, Student.Advisor, Student.city_code, Video_Games.GameID, Video_Games.GName, Video_Games.GType, Plays_Games.StuID, Plays_Games.GameID, Plays_Games.Hours_Played, SportsInfo.S... | SELECT DISTINCT gtype FROM Video_games; |
Tables: Student, Video_Games, Plays_Games, SportsInfo
Columns: Student.StuID, Student.LName, Student.Fname, Student.Age, Student.Sex, Student.Major, Student.Advisor, Student.city_code, Video_Games.GameID, Video_Games.GName, Video_Games.GType, Plays_Games.StuID, Plays_Games.GameID, Plays_Games.Hours_Played, SportsInfo.S... | SELECT gname , gtype FROM Video_games ORDER BY gname; |
Tables: Student, Video_Games, Plays_Games, SportsInfo
Columns: Student.StuID, Student.LName, Student.Fname, Student.Age, Student.Sex, Student.Major, Student.Advisor, Student.city_code, Video_Games.GameID, Video_Games.GName, Video_Games.GType, Plays_Games.StuID, Plays_Games.GameID, Plays_Games.Hours_Played, SportsInfo.S... | SELECT gname , gtype FROM Video_games ORDER BY gname; |
Tables: Student, Video_Games, Plays_Games, SportsInfo
Columns: Student.StuID, Student.LName, Student.Fname, Student.Age, Student.Sex, Student.Major, Student.Advisor, Student.city_code, Video_Games.GameID, Video_Games.GName, Video_Games.GType, Plays_Games.StuID, Plays_Games.GameID, Plays_Games.Hours_Played, SportsInfo.S... | SELECT gname FROM Video_games WHERE gtype = "Collectible card game"; |
Tables: Student, Video_Games, Plays_Games, SportsInfo
Columns: Student.StuID, Student.LName, Student.Fname, Student.Age, Student.Sex, Student.Major, Student.Advisor, Student.city_code, Video_Games.GameID, Video_Games.GName, Video_Games.GType, Plays_Games.StuID, Plays_Games.GameID, Plays_Games.Hours_Played, SportsInfo.S... | SELECT gname FROM Video_games WHERE gtype = "Collectible card game"; |
Tables: Student, Video_Games, Plays_Games, SportsInfo
Columns: Student.StuID, Student.LName, Student.Fname, Student.Age, Student.Sex, Student.Major, Student.Advisor, Student.city_code, Video_Games.GameID, Video_Games.GName, Video_Games.GType, Plays_Games.StuID, Plays_Games.GameID, Plays_Games.Hours_Played, SportsInfo.S... | SELECT gtype FROM Video_games WHERE gname = "Call of Destiny"; |
Tables: Student, Video_Games, Plays_Games, SportsInfo
Columns: Student.StuID, Student.LName, Student.Fname, Student.Age, Student.Sex, Student.Major, Student.Advisor, Student.city_code, Video_Games.GameID, Video_Games.GName, Video_Games.GType, Plays_Games.StuID, Plays_Games.GameID, Plays_Games.Hours_Played, SportsInfo.S... | SELECT gtype FROM Video_games WHERE gname = "Call of Destiny"; |
Tables: Student, Video_Games, Plays_Games, SportsInfo
Columns: Student.StuID, Student.LName, Student.Fname, Student.Age, Student.Sex, Student.Major, Student.Advisor, Student.city_code, Video_Games.GameID, Video_Games.GName, Video_Games.GType, Plays_Games.StuID, Plays_Games.GameID, Plays_Games.Hours_Played, SportsInfo.S... | SELECT count(*) FROM Video_games WHERE gtype = "Massively multiplayer online game"; |
Tables: Student, Video_Games, Plays_Games, SportsInfo
Columns: Student.StuID, Student.LName, Student.Fname, Student.Age, Student.Sex, Student.Major, Student.Advisor, Student.city_code, Video_Games.GameID, Video_Games.GName, Video_Games.GType, Plays_Games.StuID, Plays_Games.GameID, Plays_Games.Hours_Played, SportsInfo.S... | SELECT count(*) FROM Video_games WHERE gtype = "Massively multiplayer online game"; |
Tables: Student, Video_Games, Plays_Games, SportsInfo
Columns: Student.StuID, Student.LName, Student.Fname, Student.Age, Student.Sex, Student.Major, Student.Advisor, Student.city_code, Video_Games.GameID, Video_Games.GName, Video_Games.GType, Plays_Games.StuID, Plays_Games.GameID, Plays_Games.Hours_Played, SportsInfo.S... | SELECT gtype , count(*) FROM Video_games GROUP BY gtype; |
Tables: Student, Video_Games, Plays_Games, SportsInfo
Columns: Student.StuID, Student.LName, Student.Fname, Student.Age, Student.Sex, Student.Major, Student.Advisor, Student.city_code, Video_Games.GameID, Video_Games.GName, Video_Games.GType, Plays_Games.StuID, Plays_Games.GameID, Plays_Games.Hours_Played, SportsInfo.S... | SELECT gtype , count(*) FROM Video_games GROUP BY gtype; |
Tables: Student, Video_Games, Plays_Games, SportsInfo
Columns: Student.StuID, Student.LName, Student.Fname, Student.Age, Student.Sex, Student.Major, Student.Advisor, Student.city_code, Video_Games.GameID, Video_Games.GName, Video_Games.GType, Plays_Games.StuID, Plays_Games.GameID, Plays_Games.Hours_Played, SportsInfo.S... | SELECT gtype FROM Video_games GROUP BY gtype ORDER BY count(*) DESC LIMIT 1; |
Tables: Student, Video_Games, Plays_Games, SportsInfo
Columns: Student.StuID, Student.LName, Student.Fname, Student.Age, Student.Sex, Student.Major, Student.Advisor, Student.city_code, Video_Games.GameID, Video_Games.GName, Video_Games.GType, Plays_Games.StuID, Plays_Games.GameID, Plays_Games.Hours_Played, SportsInfo.S... | SELECT gtype FROM Video_games GROUP BY gtype ORDER BY count(*) DESC LIMIT 1; |
Tables: Student, Video_Games, Plays_Games, SportsInfo
Columns: Student.StuID, Student.LName, Student.Fname, Student.Age, Student.Sex, Student.Major, Student.Advisor, Student.city_code, Video_Games.GameID, Video_Games.GName, Video_Games.GType, Plays_Games.StuID, Plays_Games.GameID, Plays_Games.Hours_Played, SportsInfo.S... | SELECT gtype FROM Video_games GROUP BY gtype ORDER BY count(*) LIMIT 1; |
Tables: Student, Video_Games, Plays_Games, SportsInfo
Columns: Student.StuID, Student.LName, Student.Fname, Student.Age, Student.Sex, Student.Major, Student.Advisor, Student.city_code, Video_Games.GameID, Video_Games.GName, Video_Games.GType, Plays_Games.StuID, Plays_Games.GameID, Plays_Games.Hours_Played, SportsInfo.S... | SELECT gtype FROM Video_games GROUP BY gtype ORDER BY count(*) LIMIT 1; |
Tables: Student, Video_Games, Plays_Games, SportsInfo
Columns: Student.StuID, Student.LName, Student.Fname, Student.Age, Student.Sex, Student.Major, Student.Advisor, Student.city_code, Video_Games.GameID, Video_Games.GName, Video_Games.GType, Plays_Games.StuID, Plays_Games.GameID, Plays_Games.Hours_Played, SportsInfo.S... | SELECT StuID FROM Student WHERE city_code = "CHI"; |
Tables: Student, Video_Games, Plays_Games, SportsInfo
Columns: Student.StuID, Student.LName, Student.Fname, Student.Age, Student.Sex, Student.Major, Student.Advisor, Student.city_code, Video_Games.GameID, Video_Games.GName, Video_Games.GType, Plays_Games.StuID, Plays_Games.GameID, Plays_Games.Hours_Played, SportsInfo.S... | SELECT StuID FROM Student WHERE city_code = "CHI"; |
Tables: Student, Video_Games, Plays_Games, SportsInfo
Columns: Student.StuID, Student.LName, Student.Fname, Student.Age, Student.Sex, Student.Major, Student.Advisor, Student.city_code, Video_Games.GameID, Video_Games.GName, Video_Games.GType, Plays_Games.StuID, Plays_Games.GameID, Plays_Games.Hours_Played, SportsInfo.S... | SELECT StuID FROM Student WHERE Advisor = 1121; |
Tables: Student, Video_Games, Plays_Games, SportsInfo
Columns: Student.StuID, Student.LName, Student.Fname, Student.Age, Student.Sex, Student.Major, Student.Advisor, Student.city_code, Video_Games.GameID, Video_Games.GName, Video_Games.GType, Plays_Games.StuID, Plays_Games.GameID, Plays_Games.Hours_Played, SportsInfo.S... | SELECT StuID FROM Student WHERE Advisor = 1121; |
Tables: Student, Video_Games, Plays_Games, SportsInfo
Columns: Student.StuID, Student.LName, Student.Fname, Student.Age, Student.Sex, Student.Major, Student.Advisor, Student.city_code, Video_Games.GameID, Video_Games.GName, Video_Games.GType, Plays_Games.StuID, Plays_Games.GameID, Plays_Games.Hours_Played, SportsInfo.S... | SELECT Fname FROM Student WHERE Major = 600; |
Tables: Student, Video_Games, Plays_Games, SportsInfo
Columns: Student.StuID, Student.LName, Student.Fname, Student.Age, Student.Sex, Student.Major, Student.Advisor, Student.city_code, Video_Games.GameID, Video_Games.GName, Video_Games.GType, Plays_Games.StuID, Plays_Games.GameID, Plays_Games.Hours_Played, SportsInfo.S... | SELECT Fname FROM Student WHERE Major = 600; |
Tables: Student, Video_Games, Plays_Games, SportsInfo
Columns: Student.StuID, Student.LName, Student.Fname, Student.Age, Student.Sex, Student.Major, Student.Advisor, Student.city_code, Video_Games.GameID, Video_Games.GName, Video_Games.GType, Plays_Games.StuID, Plays_Games.GameID, Plays_Games.Hours_Played, SportsInfo.S... | SELECT major , avg(age) , min(age) , max(age) FROM Student GROUP BY major; |
Tables: Student, Video_Games, Plays_Games, SportsInfo
Columns: Student.StuID, Student.LName, Student.Fname, Student.Age, Student.Sex, Student.Major, Student.Advisor, Student.city_code, Video_Games.GameID, Video_Games.GName, Video_Games.GType, Plays_Games.StuID, Plays_Games.GameID, Plays_Games.Hours_Played, SportsInfo.S... | SELECT major , avg(age) , min(age) , max(age) FROM Student GROUP BY major; |
Tables: Student, Video_Games, Plays_Games, SportsInfo
Columns: Student.StuID, Student.LName, Student.Fname, Student.Age, Student.Sex, Student.Major, Student.Advisor, Student.city_code, Video_Games.GameID, Video_Games.GName, Video_Games.GType, Plays_Games.StuID, Plays_Games.GameID, Plays_Games.Hours_Played, SportsInfo.S... | SELECT advisor FROM Student GROUP BY advisor HAVING count(*) >= 2; |
Tables: Student, Video_Games, Plays_Games, SportsInfo
Columns: Student.StuID, Student.LName, Student.Fname, Student.Age, Student.Sex, Student.Major, Student.Advisor, Student.city_code, Video_Games.GameID, Video_Games.GName, Video_Games.GType, Plays_Games.StuID, Plays_Games.GameID, Plays_Games.Hours_Played, SportsInfo.S... | SELECT advisor FROM Student GROUP BY advisor HAVING count(*) >= 2; |
Tables: Student, Video_Games, Plays_Games, SportsInfo
Columns: Student.StuID, Student.LName, Student.Fname, Student.Age, Student.Sex, Student.Major, Student.Advisor, Student.city_code, Video_Games.GameID, Video_Games.GName, Video_Games.GType, Plays_Games.StuID, Plays_Games.GameID, Plays_Games.Hours_Played, SportsInfo.S... | SELECT count(DISTINCT sportname) FROM Sportsinfo; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.