db_id
stringlengths
3
31
query
stringlengths
18
577
question
stringlengths
3
224
schema
stringlengths
177
6.14k
primary_keys
stringlengths
16
545
foreign_keys
stringlengths
16
1.48k
cre_Theme_park
SELECT Address FROM LOCATIONS WHERE Location_Name = "UK Gallery"
Find the address of the location named "UK Gallery".
[Schema (values) (types)]: | cre_Theme_park | Ref_Hotel_Star_Ratings : star_rating_code (text) , star_rating_description (text) | Locations : location_id (text) , location_name (text) , address (text) , other_details (number) | Ref_Attraction_Types : attraction_type_code (text) , attraction_type_description (text) | Visitors : tourist_id (text) , tourist_details (text) | Features : feature_id (text) , feature_details (text) | Hotels : hotel_id (text) , star_rating_code (text) , pets_allowed_yn (text) , price_range (number) , other_hotel_details (text) | Tourist_Attractions : tourist_attraction_id (text) , attraction_type_code (text) , location_id (text) , how_to_get_there (number) , name (text) , description (text) , opening_hours (text) , other_details (text) | Street_Markets : market_id (text) , market_details (text) | Shops : shop_id (text) , shop_details (text) | Museums : museum_id (text) , museum_details (text) | Royal_Family : royal_family_id (text) , royal_family_details (text) | Theme_Parks : theme_park_id (text) , theme_park_details (text) | Visits : visit_id (text) , tourist_attraction_id (text) , tourist_id (text) , visit_date (number) , visit_details (text) | Photos : photo_id (text) , tourist_attraction_id (text) , name (text) , description (number) , filename (text) , other_details (text) | Staff : staff_id (text) , tourist_attraction_id (text) , name (text) , other_details (number) | Tourist_Attraction_Features : tourist_attraction_id (text) , feature_id (text);
[Primary Keys]: ref_hotel_star_ratings : star_rating_code, locations : location_id, ref_attraction_types : attraction_type_code, visitors : tourist_id, features : feature_id, hotels : hotel_id, tourist_attractions : tourist_attraction_id, street_markets : market_id, shops : shop_id, museums : museum_id, royal_family : royal_family_id, theme_parks : theme_park_id, visits : visit_id, photos : photo_id, staff : staff_id, tourist_attraction_features : tourist_attraction_id
[Foreign Keys]: hotels : star_rating_code = ref_hotel_star_ratings : star_rating_code | tourist_attractions : attraction_type_code = ref_attraction_types : attraction_type_code | tourist_attractions : location_id = locations : location_id | street_markets : market_id = tourist_attractions : tourist_attraction_id | shops : shop_id = tourist_attractions : tourist_attraction_id | museums : museum_id = tourist_attractions : tourist_attraction_id | royal_family : royal_family_id = tourist_attractions : tourist_attraction_id | theme_parks : theme_park_id = tourist_attractions : tourist_attraction_id | visits : tourist_id = visitors : tourist_id | visits : tourist_attraction_id = tourist_attractions : tourist_attraction_id | photos : tourist_attraction_id = tourist_attractions : tourist_attraction_id | staff : tourist_attraction_id = tourist_attractions : tourist_attraction_id | tourist_attraction_features : feature_id = features : feature_id | tourist_attraction_features : tourist_attraction_id = tourist_attractions : tourist_attraction_id
cre_Theme_park
SELECT Other_Details FROM LOCATIONS WHERE Location_Name = "UK Gallery"
What is the detail of the location UK Gallery?
[Schema (values) (types)]: | cre_Theme_park | Ref_Hotel_Star_Ratings : star_rating_code (text) , star_rating_description (text) | Locations : location_id (text) , location_name (text) , address (text) , other_details (number) | Ref_Attraction_Types : attraction_type_code (text) , attraction_type_description (text) | Visitors : tourist_id (text) , tourist_details (text) | Features : feature_id (text) , feature_details (text) | Hotels : hotel_id (text) , star_rating_code (text) , pets_allowed_yn (text) , price_range (number) , other_hotel_details (text) | Tourist_Attractions : tourist_attraction_id (text) , attraction_type_code (text) , location_id (text) , how_to_get_there (number) , name (text) , description (text) , opening_hours (text) , other_details (text) | Street_Markets : market_id (text) , market_details (text) | Shops : shop_id (text) , shop_details (text) | Museums : museum_id (text) , museum_details (text) | Royal_Family : royal_family_id (text) , royal_family_details (text) | Theme_Parks : theme_park_id (text) , theme_park_details (text) | Visits : visit_id (text) , tourist_attraction_id (text) , tourist_id (text) , visit_date (number) , visit_details (text) | Photos : photo_id (text) , tourist_attraction_id (text) , name (text) , description (number) , filename (text) , other_details (text) | Staff : staff_id (text) , tourist_attraction_id (text) , name (text) , other_details (number) | Tourist_Attraction_Features : tourist_attraction_id (text) , feature_id (text);
[Primary Keys]: ref_hotel_star_ratings : star_rating_code, locations : location_id, ref_attraction_types : attraction_type_code, visitors : tourist_id, features : feature_id, hotels : hotel_id, tourist_attractions : tourist_attraction_id, street_markets : market_id, shops : shop_id, museums : museum_id, royal_family : royal_family_id, theme_parks : theme_park_id, visits : visit_id, photos : photo_id, staff : staff_id, tourist_attraction_features : tourist_attraction_id
[Foreign Keys]: hotels : star_rating_code = ref_hotel_star_ratings : star_rating_code | tourist_attractions : attraction_type_code = ref_attraction_types : attraction_type_code | tourist_attractions : location_id = locations : location_id | street_markets : market_id = tourist_attractions : tourist_attraction_id | shops : shop_id = tourist_attractions : tourist_attraction_id | museums : museum_id = tourist_attractions : tourist_attraction_id | royal_family : royal_family_id = tourist_attractions : tourist_attraction_id | theme_parks : theme_park_id = tourist_attractions : tourist_attraction_id | visits : tourist_id = visitors : tourist_id | visits : tourist_attraction_id = tourist_attractions : tourist_attraction_id | photos : tourist_attraction_id = tourist_attractions : tourist_attraction_id | staff : tourist_attraction_id = tourist_attractions : tourist_attraction_id | tourist_attraction_features : feature_id = features : feature_id | tourist_attraction_features : tourist_attraction_id = tourist_attractions : tourist_attraction_id
cre_Theme_park
SELECT Other_Details FROM LOCATIONS WHERE Location_Name = "UK Gallery"
Return the detail of the location named "UK Gallery".
[Schema (values) (types)]: | cre_Theme_park | Ref_Hotel_Star_Ratings : star_rating_code (text) , star_rating_description (text) | Locations : location_id (text) , location_name (text) , address (text) , other_details (number) | Ref_Attraction_Types : attraction_type_code (text) , attraction_type_description (text) | Visitors : tourist_id (text) , tourist_details (text) | Features : feature_id (text) , feature_details (text) | Hotels : hotel_id (text) , star_rating_code (text) , pets_allowed_yn (text) , price_range (number) , other_hotel_details (text) | Tourist_Attractions : tourist_attraction_id (text) , attraction_type_code (text) , location_id (text) , how_to_get_there (number) , name (text) , description (text) , opening_hours (text) , other_details (text) | Street_Markets : market_id (text) , market_details (text) | Shops : shop_id (text) , shop_details (text) | Museums : museum_id (text) , museum_details (text) | Royal_Family : royal_family_id (text) , royal_family_details (text) | Theme_Parks : theme_park_id (text) , theme_park_details (text) | Visits : visit_id (text) , tourist_attraction_id (text) , tourist_id (text) , visit_date (number) , visit_details (text) | Photos : photo_id (text) , tourist_attraction_id (text) , name (text) , description (number) , filename (text) , other_details (text) | Staff : staff_id (text) , tourist_attraction_id (text) , name (text) , other_details (number) | Tourist_Attraction_Features : tourist_attraction_id (text) , feature_id (text);
[Primary Keys]: ref_hotel_star_ratings : star_rating_code, locations : location_id, ref_attraction_types : attraction_type_code, visitors : tourist_id, features : feature_id, hotels : hotel_id, tourist_attractions : tourist_attraction_id, street_markets : market_id, shops : shop_id, museums : museum_id, royal_family : royal_family_id, theme_parks : theme_park_id, visits : visit_id, photos : photo_id, staff : staff_id, tourist_attraction_features : tourist_attraction_id
[Foreign Keys]: hotels : star_rating_code = ref_hotel_star_ratings : star_rating_code | tourist_attractions : attraction_type_code = ref_attraction_types : attraction_type_code | tourist_attractions : location_id = locations : location_id | street_markets : market_id = tourist_attractions : tourist_attraction_id | shops : shop_id = tourist_attractions : tourist_attraction_id | museums : museum_id = tourist_attractions : tourist_attraction_id | royal_family : royal_family_id = tourist_attractions : tourist_attraction_id | theme_parks : theme_park_id = tourist_attractions : tourist_attraction_id | visits : tourist_id = visitors : tourist_id | visits : tourist_attraction_id = tourist_attractions : tourist_attraction_id | photos : tourist_attraction_id = tourist_attractions : tourist_attraction_id | staff : tourist_attraction_id = tourist_attractions : tourist_attraction_id | tourist_attraction_features : feature_id = features : feature_id | tourist_attraction_features : tourist_attraction_id = tourist_attractions : tourist_attraction_id
cre_Theme_park
SELECT Location_Name FROM LOCATIONS WHERE Location_Name LIKE "%film%"
Which location names contain the word "film"?
[Schema (values) (types)]: | cre_Theme_park | Ref_Hotel_Star_Ratings : star_rating_code (text) , star_rating_description (text) | Locations : location_id (text) , location_name (text) , address (text) , other_details (number) | Ref_Attraction_Types : attraction_type_code (text) , attraction_type_description (text) | Visitors : tourist_id (text) , tourist_details (text) | Features : feature_id (text) , feature_details (text) | Hotels : hotel_id (text) , star_rating_code (text) , pets_allowed_yn (text) , price_range (number) , other_hotel_details (text) | Tourist_Attractions : tourist_attraction_id (text) , attraction_type_code (text) , location_id (text) , how_to_get_there (number) , name (text) , description (text) , opening_hours (text) , other_details (text) | Street_Markets : market_id (text) , market_details (text) | Shops : shop_id (text) , shop_details (text) | Museums : museum_id (text) , museum_details (text) | Royal_Family : royal_family_id (text) , royal_family_details (text) | Theme_Parks : theme_park_id (text) , theme_park_details (text) | Visits : visit_id (text) , tourist_attraction_id (text) , tourist_id (text) , visit_date (number) , visit_details (text) | Photos : photo_id (text) , tourist_attraction_id (text) , name (text) , description (number) , filename (text) , other_details (text) | Staff : staff_id (text) , tourist_attraction_id (text) , name (text) , other_details (number) | Tourist_Attraction_Features : tourist_attraction_id (text) , feature_id (text);
[Primary Keys]: ref_hotel_star_ratings : star_rating_code, locations : location_id, ref_attraction_types : attraction_type_code, visitors : tourist_id, features : feature_id, hotels : hotel_id, tourist_attractions : tourist_attraction_id, street_markets : market_id, shops : shop_id, museums : museum_id, royal_family : royal_family_id, theme_parks : theme_park_id, visits : visit_id, photos : photo_id, staff : staff_id, tourist_attraction_features : tourist_attraction_id
[Foreign Keys]: hotels : star_rating_code = ref_hotel_star_ratings : star_rating_code | tourist_attractions : attraction_type_code = ref_attraction_types : attraction_type_code | tourist_attractions : location_id = locations : location_id | street_markets : market_id = tourist_attractions : tourist_attraction_id | shops : shop_id = tourist_attractions : tourist_attraction_id | museums : museum_id = tourist_attractions : tourist_attraction_id | royal_family : royal_family_id = tourist_attractions : tourist_attraction_id | theme_parks : theme_park_id = tourist_attractions : tourist_attraction_id | visits : tourist_id = visitors : tourist_id | visits : tourist_attraction_id = tourist_attractions : tourist_attraction_id | photos : tourist_attraction_id = tourist_attractions : tourist_attraction_id | staff : tourist_attraction_id = tourist_attractions : tourist_attraction_id | tourist_attraction_features : feature_id = features : feature_id | tourist_attraction_features : tourist_attraction_id = tourist_attractions : tourist_attraction_id
cre_Theme_park
SELECT Location_Name FROM LOCATIONS WHERE Location_Name LIKE "%film%"
Find all the locations whose names contain the word "film".
[Schema (values) (types)]: | cre_Theme_park | Ref_Hotel_Star_Ratings : star_rating_code (text) , star_rating_description (text) | Locations : location_id (text) , location_name (text) , address (text) , other_details (number) | Ref_Attraction_Types : attraction_type_code (text) , attraction_type_description (text) | Visitors : tourist_id (text) , tourist_details (text) | Features : feature_id (text) , feature_details (text) | Hotels : hotel_id (text) , star_rating_code (text) , pets_allowed_yn (text) , price_range (number) , other_hotel_details (text) | Tourist_Attractions : tourist_attraction_id (text) , attraction_type_code (text) , location_id (text) , how_to_get_there (number) , name (text) , description (text) , opening_hours (text) , other_details (text) | Street_Markets : market_id (text) , market_details (text) | Shops : shop_id (text) , shop_details (text) | Museums : museum_id (text) , museum_details (text) | Royal_Family : royal_family_id (text) , royal_family_details (text) | Theme_Parks : theme_park_id (text) , theme_park_details (text) | Visits : visit_id (text) , tourist_attraction_id (text) , tourist_id (text) , visit_date (number) , visit_details (text) | Photos : photo_id (text) , tourist_attraction_id (text) , name (text) , description (number) , filename (text) , other_details (text) | Staff : staff_id (text) , tourist_attraction_id (text) , name (text) , other_details (number) | Tourist_Attraction_Features : tourist_attraction_id (text) , feature_id (text);
[Primary Keys]: ref_hotel_star_ratings : star_rating_code, locations : location_id, ref_attraction_types : attraction_type_code, visitors : tourist_id, features : feature_id, hotels : hotel_id, tourist_attractions : tourist_attraction_id, street_markets : market_id, shops : shop_id, museums : museum_id, royal_family : royal_family_id, theme_parks : theme_park_id, visits : visit_id, photos : photo_id, staff : staff_id, tourist_attraction_features : tourist_attraction_id
[Foreign Keys]: hotels : star_rating_code = ref_hotel_star_ratings : star_rating_code | tourist_attractions : attraction_type_code = ref_attraction_types : attraction_type_code | tourist_attractions : location_id = locations : location_id | street_markets : market_id = tourist_attractions : tourist_attraction_id | shops : shop_id = tourist_attractions : tourist_attraction_id | museums : museum_id = tourist_attractions : tourist_attraction_id | royal_family : royal_family_id = tourist_attractions : tourist_attraction_id | theme_parks : theme_park_id = tourist_attractions : tourist_attraction_id | visits : tourist_id = visitors : tourist_id | visits : tourist_attraction_id = tourist_attractions : tourist_attraction_id | photos : tourist_attraction_id = tourist_attractions : tourist_attraction_id | staff : tourist_attraction_id = tourist_attractions : tourist_attraction_id | tourist_attraction_features : feature_id = features : feature_id | tourist_attraction_features : tourist_attraction_id = tourist_attractions : tourist_attraction_id
cre_Theme_park
SELECT count(DISTINCT Name) FROM PHOTOS
How many distinct names are associated with all the photos?
[Schema (values) (types)]: | cre_Theme_park | Ref_Hotel_Star_Ratings : star_rating_code (text) , star_rating_description (text) | Locations : location_id (text) , location_name (text) , address (text) , other_details (number) | Ref_Attraction_Types : attraction_type_code (text) , attraction_type_description (text) | Visitors : tourist_id (text) , tourist_details (text) | Features : feature_id (text) , feature_details (text) | Hotels : hotel_id (text) , star_rating_code (text) , pets_allowed_yn (text) , price_range (number) , other_hotel_details (text) | Tourist_Attractions : tourist_attraction_id (text) , attraction_type_code (text) , location_id (text) , how_to_get_there (number) , name (text) , description (text) , opening_hours (text) , other_details (text) | Street_Markets : market_id (text) , market_details (text) | Shops : shop_id (text) , shop_details (text) | Museums : museum_id (text) , museum_details (text) | Royal_Family : royal_family_id (text) , royal_family_details (text) | Theme_Parks : theme_park_id (text) , theme_park_details (text) | Visits : visit_id (text) , tourist_attraction_id (text) , tourist_id (text) , visit_date (number) , visit_details (text) | Photos : photo_id (text) , tourist_attraction_id (text) , name (text) , description (number) , filename (text) , other_details (text) | Staff : staff_id (text) , tourist_attraction_id (text) , name (text) , other_details (number) | Tourist_Attraction_Features : tourist_attraction_id (text) , feature_id (text);
[Primary Keys]: ref_hotel_star_ratings : star_rating_code, locations : location_id, ref_attraction_types : attraction_type_code, visitors : tourist_id, features : feature_id, hotels : hotel_id, tourist_attractions : tourist_attraction_id, street_markets : market_id, shops : shop_id, museums : museum_id, royal_family : royal_family_id, theme_parks : theme_park_id, visits : visit_id, photos : photo_id, staff : staff_id, tourist_attraction_features : tourist_attraction_id
[Foreign Keys]: hotels : star_rating_code = ref_hotel_star_ratings : star_rating_code | tourist_attractions : attraction_type_code = ref_attraction_types : attraction_type_code | tourist_attractions : location_id = locations : location_id | street_markets : market_id = tourist_attractions : tourist_attraction_id | shops : shop_id = tourist_attractions : tourist_attraction_id | museums : museum_id = tourist_attractions : tourist_attraction_id | royal_family : royal_family_id = tourist_attractions : tourist_attraction_id | theme_parks : theme_park_id = tourist_attractions : tourist_attraction_id | visits : tourist_id = visitors : tourist_id | visits : tourist_attraction_id = tourist_attractions : tourist_attraction_id | photos : tourist_attraction_id = tourist_attractions : tourist_attraction_id | staff : tourist_attraction_id = tourist_attractions : tourist_attraction_id | tourist_attraction_features : feature_id = features : feature_id | tourist_attraction_features : tourist_attraction_id = tourist_attractions : tourist_attraction_id
cre_Theme_park
SELECT count(DISTINCT Name) FROM PHOTOS
Count the number of distinct names associated with the photos.
[Schema (values) (types)]: | cre_Theme_park | Ref_Hotel_Star_Ratings : star_rating_code (text) , star_rating_description (text) | Locations : location_id (text) , location_name (text) , address (text) , other_details (number) | Ref_Attraction_Types : attraction_type_code (text) , attraction_type_description (text) | Visitors : tourist_id (text) , tourist_details (text) | Features : feature_id (text) , feature_details (text) | Hotels : hotel_id (text) , star_rating_code (text) , pets_allowed_yn (text) , price_range (number) , other_hotel_details (text) | Tourist_Attractions : tourist_attraction_id (text) , attraction_type_code (text) , location_id (text) , how_to_get_there (number) , name (text) , description (text) , opening_hours (text) , other_details (text) | Street_Markets : market_id (text) , market_details (text) | Shops : shop_id (text) , shop_details (text) | Museums : museum_id (text) , museum_details (text) | Royal_Family : royal_family_id (text) , royal_family_details (text) | Theme_Parks : theme_park_id (text) , theme_park_details (text) | Visits : visit_id (text) , tourist_attraction_id (text) , tourist_id (text) , visit_date (number) , visit_details (text) | Photos : photo_id (text) , tourist_attraction_id (text) , name (text) , description (number) , filename (text) , other_details (text) | Staff : staff_id (text) , tourist_attraction_id (text) , name (text) , other_details (number) | Tourist_Attraction_Features : tourist_attraction_id (text) , feature_id (text);
[Primary Keys]: ref_hotel_star_ratings : star_rating_code, locations : location_id, ref_attraction_types : attraction_type_code, visitors : tourist_id, features : feature_id, hotels : hotel_id, tourist_attractions : tourist_attraction_id, street_markets : market_id, shops : shop_id, museums : museum_id, royal_family : royal_family_id, theme_parks : theme_park_id, visits : visit_id, photos : photo_id, staff : staff_id, tourist_attraction_features : tourist_attraction_id
[Foreign Keys]: hotels : star_rating_code = ref_hotel_star_ratings : star_rating_code | tourist_attractions : attraction_type_code = ref_attraction_types : attraction_type_code | tourist_attractions : location_id = locations : location_id | street_markets : market_id = tourist_attractions : tourist_attraction_id | shops : shop_id = tourist_attractions : tourist_attraction_id | museums : museum_id = tourist_attractions : tourist_attraction_id | royal_family : royal_family_id = tourist_attractions : tourist_attraction_id | theme_parks : theme_park_id = tourist_attractions : tourist_attraction_id | visits : tourist_id = visitors : tourist_id | visits : tourist_attraction_id = tourist_attractions : tourist_attraction_id | photos : tourist_attraction_id = tourist_attractions : tourist_attraction_id | staff : tourist_attraction_id = tourist_attractions : tourist_attraction_id | tourist_attraction_features : feature_id = features : feature_id | tourist_attraction_features : tourist_attraction_id = tourist_attractions : tourist_attraction_id
cre_Theme_park
SELECT DISTINCT Visit_Date FROM VISITS
What are the distinct visit dates?
[Schema (values) (types)]: | cre_Theme_park | Ref_Hotel_Star_Ratings : star_rating_code (text) , star_rating_description (text) | Locations : location_id (text) , location_name (text) , address (text) , other_details (number) | Ref_Attraction_Types : attraction_type_code (text) , attraction_type_description (text) | Visitors : tourist_id (text) , tourist_details (text) | Features : feature_id (text) , feature_details (text) | Hotels : hotel_id (text) , star_rating_code (text) , pets_allowed_yn (text) , price_range (number) , other_hotel_details (text) | Tourist_Attractions : tourist_attraction_id (text) , attraction_type_code (text) , location_id (text) , how_to_get_there (number) , name (text) , description (text) , opening_hours (text) , other_details (text) | Street_Markets : market_id (text) , market_details (text) | Shops : shop_id (text) , shop_details (text) | Museums : museum_id (text) , museum_details (text) | Royal_Family : royal_family_id (text) , royal_family_details (text) | Theme_Parks : theme_park_id (text) , theme_park_details (text) | Visits : visit_id (text) , tourist_attraction_id (text) , tourist_id (text) , visit_date (number) , visit_details (text) | Photos : photo_id (text) , tourist_attraction_id (text) , name (text) , description (number) , filename (text) , other_details (text) | Staff : staff_id (text) , tourist_attraction_id (text) , name (text) , other_details (number) | Tourist_Attraction_Features : tourist_attraction_id (text) , feature_id (text);
[Primary Keys]: ref_hotel_star_ratings : star_rating_code, locations : location_id, ref_attraction_types : attraction_type_code, visitors : tourist_id, features : feature_id, hotels : hotel_id, tourist_attractions : tourist_attraction_id, street_markets : market_id, shops : shop_id, museums : museum_id, royal_family : royal_family_id, theme_parks : theme_park_id, visits : visit_id, photos : photo_id, staff : staff_id, tourist_attraction_features : tourist_attraction_id
[Foreign Keys]: hotels : star_rating_code = ref_hotel_star_ratings : star_rating_code | tourist_attractions : attraction_type_code = ref_attraction_types : attraction_type_code | tourist_attractions : location_id = locations : location_id | street_markets : market_id = tourist_attractions : tourist_attraction_id | shops : shop_id = tourist_attractions : tourist_attraction_id | museums : museum_id = tourist_attractions : tourist_attraction_id | royal_family : royal_family_id = tourist_attractions : tourist_attraction_id | theme_parks : theme_park_id = tourist_attractions : tourist_attraction_id | visits : tourist_id = visitors : tourist_id | visits : tourist_attraction_id = tourist_attractions : tourist_attraction_id | photos : tourist_attraction_id = tourist_attractions : tourist_attraction_id | staff : tourist_attraction_id = tourist_attractions : tourist_attraction_id | tourist_attraction_features : feature_id = features : feature_id | tourist_attraction_features : tourist_attraction_id = tourist_attractions : tourist_attraction_id
cre_Theme_park
SELECT DISTINCT Visit_Date FROM VISITS
Find all the distinct visit dates.
[Schema (values) (types)]: | cre_Theme_park | Ref_Hotel_Star_Ratings : star_rating_code (text) , star_rating_description (text) | Locations : location_id (text) , location_name (text) , address (text) , other_details (number) | Ref_Attraction_Types : attraction_type_code (text) , attraction_type_description (text) | Visitors : tourist_id (text) , tourist_details (text) | Features : feature_id (text) , feature_details (text) | Hotels : hotel_id (text) , star_rating_code (text) , pets_allowed_yn (text) , price_range (number) , other_hotel_details (text) | Tourist_Attractions : tourist_attraction_id (text) , attraction_type_code (text) , location_id (text) , how_to_get_there (number) , name (text) , description (text) , opening_hours (text) , other_details (text) | Street_Markets : market_id (text) , market_details (text) | Shops : shop_id (text) , shop_details (text) | Museums : museum_id (text) , museum_details (text) | Royal_Family : royal_family_id (text) , royal_family_details (text) | Theme_Parks : theme_park_id (text) , theme_park_details (text) | Visits : visit_id (text) , tourist_attraction_id (text) , tourist_id (text) , visit_date (number) , visit_details (text) | Photos : photo_id (text) , tourist_attraction_id (text) , name (text) , description (number) , filename (text) , other_details (text) | Staff : staff_id (text) , tourist_attraction_id (text) , name (text) , other_details (number) | Tourist_Attraction_Features : tourist_attraction_id (text) , feature_id (text);
[Primary Keys]: ref_hotel_star_ratings : star_rating_code, locations : location_id, ref_attraction_types : attraction_type_code, visitors : tourist_id, features : feature_id, hotels : hotel_id, tourist_attractions : tourist_attraction_id, street_markets : market_id, shops : shop_id, museums : museum_id, royal_family : royal_family_id, theme_parks : theme_park_id, visits : visit_id, photos : photo_id, staff : staff_id, tourist_attraction_features : tourist_attraction_id
[Foreign Keys]: hotels : star_rating_code = ref_hotel_star_ratings : star_rating_code | tourist_attractions : attraction_type_code = ref_attraction_types : attraction_type_code | tourist_attractions : location_id = locations : location_id | street_markets : market_id = tourist_attractions : tourist_attraction_id | shops : shop_id = tourist_attractions : tourist_attraction_id | museums : museum_id = tourist_attractions : tourist_attraction_id | royal_family : royal_family_id = tourist_attractions : tourist_attraction_id | theme_parks : theme_park_id = tourist_attractions : tourist_attraction_id | visits : tourist_id = visitors : tourist_id | visits : tourist_attraction_id = tourist_attractions : tourist_attraction_id | photos : tourist_attraction_id = tourist_attractions : tourist_attraction_id | staff : tourist_attraction_id = tourist_attractions : tourist_attraction_id | tourist_attraction_features : feature_id = features : feature_id | tourist_attraction_features : tourist_attraction_id = tourist_attractions : tourist_attraction_id
cre_Theme_park
SELECT Name FROM TOURIST_ATTRACTIONS WHERE How_to_Get_There = "bus"
What are the names of the tourist attractions that can be accessed by bus?
[Schema (values) (types)]: | cre_Theme_park | Ref_Hotel_Star_Ratings : star_rating_code (text) , star_rating_description (text) | Locations : location_id (text) , location_name (text) , address (text) , other_details (number) | Ref_Attraction_Types : attraction_type_code (text) , attraction_type_description (text) | Visitors : tourist_id (text) , tourist_details (text) | Features : feature_id (text) , feature_details (text) | Hotels : hotel_id (text) , star_rating_code (text) , pets_allowed_yn (text) , price_range (number) , other_hotel_details (text) | Tourist_Attractions : tourist_attraction_id (text) , attraction_type_code (text) , location_id (text) , how_to_get_there (number) , name (text) , description (text) , opening_hours (text) , other_details (text) | Street_Markets : market_id (text) , market_details (text) | Shops : shop_id (text) , shop_details (text) | Museums : museum_id (text) , museum_details (text) | Royal_Family : royal_family_id (text) , royal_family_details (text) | Theme_Parks : theme_park_id (text) , theme_park_details (text) | Visits : visit_id (text) , tourist_attraction_id (text) , tourist_id (text) , visit_date (number) , visit_details (text) | Photos : photo_id (text) , tourist_attraction_id (text) , name (text) , description (number) , filename (text) , other_details (text) | Staff : staff_id (text) , tourist_attraction_id (text) , name (text) , other_details (number) | Tourist_Attraction_Features : tourist_attraction_id (text) , feature_id (text);
[Primary Keys]: ref_hotel_star_ratings : star_rating_code, locations : location_id, ref_attraction_types : attraction_type_code, visitors : tourist_id, features : feature_id, hotels : hotel_id, tourist_attractions : tourist_attraction_id, street_markets : market_id, shops : shop_id, museums : museum_id, royal_family : royal_family_id, theme_parks : theme_park_id, visits : visit_id, photos : photo_id, staff : staff_id, tourist_attraction_features : tourist_attraction_id
[Foreign Keys]: hotels : star_rating_code = ref_hotel_star_ratings : star_rating_code | tourist_attractions : attraction_type_code = ref_attraction_types : attraction_type_code | tourist_attractions : location_id = locations : location_id | street_markets : market_id = tourist_attractions : tourist_attraction_id | shops : shop_id = tourist_attractions : tourist_attraction_id | museums : museum_id = tourist_attractions : tourist_attraction_id | royal_family : royal_family_id = tourist_attractions : tourist_attraction_id | theme_parks : theme_park_id = tourist_attractions : tourist_attraction_id | visits : tourist_id = visitors : tourist_id | visits : tourist_attraction_id = tourist_attractions : tourist_attraction_id | photos : tourist_attraction_id = tourist_attractions : tourist_attraction_id | staff : tourist_attraction_id = tourist_attractions : tourist_attraction_id | tourist_attraction_features : feature_id = features : feature_id | tourist_attraction_features : tourist_attraction_id = tourist_attractions : tourist_attraction_id
cre_Theme_park
SELECT Name FROM TOURIST_ATTRACTIONS WHERE How_to_Get_There = "bus"
Which tourist attractions can we get to by bus? Tell me the names of the attractions.
[Schema (values) (types)]: | cre_Theme_park | Ref_Hotel_Star_Ratings : star_rating_code (text) , star_rating_description (text) | Locations : location_id (text) , location_name (text) , address (text) , other_details (number) | Ref_Attraction_Types : attraction_type_code (text) , attraction_type_description (text) | Visitors : tourist_id (text) , tourist_details (text) | Features : feature_id (text) , feature_details (text) | Hotels : hotel_id (text) , star_rating_code (text) , pets_allowed_yn (text) , price_range (number) , other_hotel_details (text) | Tourist_Attractions : tourist_attraction_id (text) , attraction_type_code (text) , location_id (text) , how_to_get_there (number) , name (text) , description (text) , opening_hours (text) , other_details (text) | Street_Markets : market_id (text) , market_details (text) | Shops : shop_id (text) , shop_details (text) | Museums : museum_id (text) , museum_details (text) | Royal_Family : royal_family_id (text) , royal_family_details (text) | Theme_Parks : theme_park_id (text) , theme_park_details (text) | Visits : visit_id (text) , tourist_attraction_id (text) , tourist_id (text) , visit_date (number) , visit_details (text) | Photos : photo_id (text) , tourist_attraction_id (text) , name (text) , description (number) , filename (text) , other_details (text) | Staff : staff_id (text) , tourist_attraction_id (text) , name (text) , other_details (number) | Tourist_Attraction_Features : tourist_attraction_id (text) , feature_id (text);
[Primary Keys]: ref_hotel_star_ratings : star_rating_code, locations : location_id, ref_attraction_types : attraction_type_code, visitors : tourist_id, features : feature_id, hotels : hotel_id, tourist_attractions : tourist_attraction_id, street_markets : market_id, shops : shop_id, museums : museum_id, royal_family : royal_family_id, theme_parks : theme_park_id, visits : visit_id, photos : photo_id, staff : staff_id, tourist_attraction_features : tourist_attraction_id
[Foreign Keys]: hotels : star_rating_code = ref_hotel_star_ratings : star_rating_code | tourist_attractions : attraction_type_code = ref_attraction_types : attraction_type_code | tourist_attractions : location_id = locations : location_id | street_markets : market_id = tourist_attractions : tourist_attraction_id | shops : shop_id = tourist_attractions : tourist_attraction_id | museums : museum_id = tourist_attractions : tourist_attraction_id | royal_family : royal_family_id = tourist_attractions : tourist_attraction_id | theme_parks : theme_park_id = tourist_attractions : tourist_attraction_id | visits : tourist_id = visitors : tourist_id | visits : tourist_attraction_id = tourist_attractions : tourist_attraction_id | photos : tourist_attraction_id = tourist_attractions : tourist_attraction_id | staff : tourist_attraction_id = tourist_attractions : tourist_attraction_id | tourist_attraction_features : feature_id = features : feature_id | tourist_attraction_features : tourist_attraction_id = tourist_attractions : tourist_attraction_id
cre_Theme_park
SELECT Name , Opening_Hours FROM TOURIST_ATTRACTIONS WHERE How_to_Get_There = "bus" OR How_to_Get_There = "walk"
What are the names and opening hours of the tourist attractions that can be accessed by bus or walk?
[Schema (values) (types)]: | cre_Theme_park | Ref_Hotel_Star_Ratings : star_rating_code (text) , star_rating_description (text) | Locations : location_id (text) , location_name (text) , address (text) , other_details (number) | Ref_Attraction_Types : attraction_type_code (text) , attraction_type_description (text) | Visitors : tourist_id (text) , tourist_details (text) | Features : feature_id (text) , feature_details (text) | Hotels : hotel_id (text) , star_rating_code (text) , pets_allowed_yn (text) , price_range (number) , other_hotel_details (text) | Tourist_Attractions : tourist_attraction_id (text) , attraction_type_code (text) , location_id (text) , how_to_get_there (number) , name (text) , description (text) , opening_hours (text) , other_details (text) | Street_Markets : market_id (text) , market_details (text) | Shops : shop_id (text) , shop_details (text) | Museums : museum_id (text) , museum_details (text) | Royal_Family : royal_family_id (text) , royal_family_details (text) | Theme_Parks : theme_park_id (text) , theme_park_details (text) | Visits : visit_id (text) , tourist_attraction_id (text) , tourist_id (text) , visit_date (number) , visit_details (text) | Photos : photo_id (text) , tourist_attraction_id (text) , name (text) , description (number) , filename (text) , other_details (text) | Staff : staff_id (text) , tourist_attraction_id (text) , name (text) , other_details (number) | Tourist_Attraction_Features : tourist_attraction_id (text) , feature_id (text);
[Primary Keys]: ref_hotel_star_ratings : star_rating_code, locations : location_id, ref_attraction_types : attraction_type_code, visitors : tourist_id, features : feature_id, hotels : hotel_id, tourist_attractions : tourist_attraction_id, street_markets : market_id, shops : shop_id, museums : museum_id, royal_family : royal_family_id, theme_parks : theme_park_id, visits : visit_id, photos : photo_id, staff : staff_id, tourist_attraction_features : tourist_attraction_id
[Foreign Keys]: hotels : star_rating_code = ref_hotel_star_ratings : star_rating_code | tourist_attractions : attraction_type_code = ref_attraction_types : attraction_type_code | tourist_attractions : location_id = locations : location_id | street_markets : market_id = tourist_attractions : tourist_attraction_id | shops : shop_id = tourist_attractions : tourist_attraction_id | museums : museum_id = tourist_attractions : tourist_attraction_id | royal_family : royal_family_id = tourist_attractions : tourist_attraction_id | theme_parks : theme_park_id = tourist_attractions : tourist_attraction_id | visits : tourist_id = visitors : tourist_id | visits : tourist_attraction_id = tourist_attractions : tourist_attraction_id | photos : tourist_attraction_id = tourist_attractions : tourist_attraction_id | staff : tourist_attraction_id = tourist_attractions : tourist_attraction_id | tourist_attraction_features : feature_id = features : feature_id | tourist_attraction_features : tourist_attraction_id = tourist_attractions : tourist_attraction_id
cre_Theme_park
SELECT Name , Opening_Hours FROM TOURIST_ATTRACTIONS WHERE How_to_Get_There = "bus" OR How_to_Get_There = "walk"
Find the names and opening hours of the tourist attractions that we get to by bus or walk.
[Schema (values) (types)]: | cre_Theme_park | Ref_Hotel_Star_Ratings : star_rating_code (text) , star_rating_description (text) | Locations : location_id (text) , location_name (text) , address (text) , other_details (number) | Ref_Attraction_Types : attraction_type_code (text) , attraction_type_description (text) | Visitors : tourist_id (text) , tourist_details (text) | Features : feature_id (text) , feature_details (text) | Hotels : hotel_id (text) , star_rating_code (text) , pets_allowed_yn (text) , price_range (number) , other_hotel_details (text) | Tourist_Attractions : tourist_attraction_id (text) , attraction_type_code (text) , location_id (text) , how_to_get_there (number) , name (text) , description (text) , opening_hours (text) , other_details (text) | Street_Markets : market_id (text) , market_details (text) | Shops : shop_id (text) , shop_details (text) | Museums : museum_id (text) , museum_details (text) | Royal_Family : royal_family_id (text) , royal_family_details (text) | Theme_Parks : theme_park_id (text) , theme_park_details (text) | Visits : visit_id (text) , tourist_attraction_id (text) , tourist_id (text) , visit_date (number) , visit_details (text) | Photos : photo_id (text) , tourist_attraction_id (text) , name (text) , description (number) , filename (text) , other_details (text) | Staff : staff_id (text) , tourist_attraction_id (text) , name (text) , other_details (number) | Tourist_Attraction_Features : tourist_attraction_id (text) , feature_id (text);
[Primary Keys]: ref_hotel_star_ratings : star_rating_code, locations : location_id, ref_attraction_types : attraction_type_code, visitors : tourist_id, features : feature_id, hotels : hotel_id, tourist_attractions : tourist_attraction_id, street_markets : market_id, shops : shop_id, museums : museum_id, royal_family : royal_family_id, theme_parks : theme_park_id, visits : visit_id, photos : photo_id, staff : staff_id, tourist_attraction_features : tourist_attraction_id
[Foreign Keys]: hotels : star_rating_code = ref_hotel_star_ratings : star_rating_code | tourist_attractions : attraction_type_code = ref_attraction_types : attraction_type_code | tourist_attractions : location_id = locations : location_id | street_markets : market_id = tourist_attractions : tourist_attraction_id | shops : shop_id = tourist_attractions : tourist_attraction_id | museums : museum_id = tourist_attractions : tourist_attraction_id | royal_family : royal_family_id = tourist_attractions : tourist_attraction_id | theme_parks : theme_park_id = tourist_attractions : tourist_attraction_id | visits : tourist_id = visitors : tourist_id | visits : tourist_attraction_id = tourist_attractions : tourist_attraction_id | photos : tourist_attraction_id = tourist_attractions : tourist_attraction_id | staff : tourist_attraction_id = tourist_attractions : tourist_attraction_id | tourist_attraction_features : feature_id = features : feature_id | tourist_attraction_features : tourist_attraction_id = tourist_attractions : tourist_attraction_id
cre_Theme_park
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
What are the star rating descriptions of the hotels with price above 10000?
[Schema (values) (types)]: | cre_Theme_park | Ref_Hotel_Star_Ratings : star_rating_code (text) , star_rating_description (text) | Locations : location_id (text) , location_name (text) , address (text) , other_details (number) | Ref_Attraction_Types : attraction_type_code (text) , attraction_type_description (text) | Visitors : tourist_id (text) , tourist_details (text) | Features : feature_id (text) , feature_details (text) | Hotels : hotel_id (text) , star_rating_code (text) , pets_allowed_yn (text) , price_range (number) , other_hotel_details (text) | Tourist_Attractions : tourist_attraction_id (text) , attraction_type_code (text) , location_id (text) , how_to_get_there (number) , name (text) , description (text) , opening_hours (text) , other_details (text) | Street_Markets : market_id (text) , market_details (text) | Shops : shop_id (text) , shop_details (text) | Museums : museum_id (text) , museum_details (text) | Royal_Family : royal_family_id (text) , royal_family_details (text) | Theme_Parks : theme_park_id (text) , theme_park_details (text) | Visits : visit_id (text) , tourist_attraction_id (text) , tourist_id (text) , visit_date (number) , visit_details (text) | Photos : photo_id (text) , tourist_attraction_id (text) , name (text) , description (number) , filename (text) , other_details (text) | Staff : staff_id (text) , tourist_attraction_id (text) , name (text) , other_details (number) | Tourist_Attraction_Features : tourist_attraction_id (text) , feature_id (text);
[Primary Keys]: ref_hotel_star_ratings : star_rating_code, locations : location_id, ref_attraction_types : attraction_type_code, visitors : tourist_id, features : feature_id, hotels : hotel_id, tourist_attractions : tourist_attraction_id, street_markets : market_id, shops : shop_id, museums : museum_id, royal_family : royal_family_id, theme_parks : theme_park_id, visits : visit_id, photos : photo_id, staff : staff_id, tourist_attraction_features : tourist_attraction_id
[Foreign Keys]: hotels : star_rating_code = ref_hotel_star_ratings : star_rating_code | tourist_attractions : attraction_type_code = ref_attraction_types : attraction_type_code | tourist_attractions : location_id = locations : location_id | street_markets : market_id = tourist_attractions : tourist_attraction_id | shops : shop_id = tourist_attractions : tourist_attraction_id | museums : museum_id = tourist_attractions : tourist_attraction_id | royal_family : royal_family_id = tourist_attractions : tourist_attraction_id | theme_parks : theme_park_id = tourist_attractions : tourist_attraction_id | visits : tourist_id = visitors : tourist_id | visits : tourist_attraction_id = tourist_attractions : tourist_attraction_id | photos : tourist_attraction_id = tourist_attractions : tourist_attraction_id | staff : tourist_attraction_id = tourist_attractions : tourist_attraction_id | tourist_attraction_features : feature_id = features : feature_id | tourist_attraction_features : tourist_attraction_id = tourist_attractions : tourist_attraction_id
cre_Theme_park
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
Give me the star rating descriptions of the hotels that cost more than 10000.
[Schema (values) (types)]: | cre_Theme_park | Ref_Hotel_Star_Ratings : star_rating_code (text) , star_rating_description (text) | Locations : location_id (text) , location_name (text) , address (text) , other_details (number) | Ref_Attraction_Types : attraction_type_code (text) , attraction_type_description (text) | Visitors : tourist_id (text) , tourist_details (text) | Features : feature_id (text) , feature_details (text) | Hotels : hotel_id (text) , star_rating_code (text) , pets_allowed_yn (text) , price_range (number) , other_hotel_details (text) | Tourist_Attractions : tourist_attraction_id (text) , attraction_type_code (text) , location_id (text) , how_to_get_there (number) , name (text) , description (text) , opening_hours (text) , other_details (text) | Street_Markets : market_id (text) , market_details (text) | Shops : shop_id (text) , shop_details (text) | Museums : museum_id (text) , museum_details (text) | Royal_Family : royal_family_id (text) , royal_family_details (text) | Theme_Parks : theme_park_id (text) , theme_park_details (text) | Visits : visit_id (text) , tourist_attraction_id (text) , tourist_id (text) , visit_date (number) , visit_details (text) | Photos : photo_id (text) , tourist_attraction_id (text) , name (text) , description (number) , filename (text) , other_details (text) | Staff : staff_id (text) , tourist_attraction_id (text) , name (text) , other_details (number) | Tourist_Attraction_Features : tourist_attraction_id (text) , feature_id (text);
[Primary Keys]: ref_hotel_star_ratings : star_rating_code, locations : location_id, ref_attraction_types : attraction_type_code, visitors : tourist_id, features : feature_id, hotels : hotel_id, tourist_attractions : tourist_attraction_id, street_markets : market_id, shops : shop_id, museums : museum_id, royal_family : royal_family_id, theme_parks : theme_park_id, visits : visit_id, photos : photo_id, staff : staff_id, tourist_attraction_features : tourist_attraction_id
[Foreign Keys]: hotels : star_rating_code = ref_hotel_star_ratings : star_rating_code | tourist_attractions : attraction_type_code = ref_attraction_types : attraction_type_code | tourist_attractions : location_id = locations : location_id | street_markets : market_id = tourist_attractions : tourist_attraction_id | shops : shop_id = tourist_attractions : tourist_attraction_id | museums : museum_id = tourist_attractions : tourist_attraction_id | royal_family : royal_family_id = tourist_attractions : tourist_attraction_id | theme_parks : theme_park_id = tourist_attractions : tourist_attraction_id | visits : tourist_id = visitors : tourist_id | visits : tourist_attraction_id = tourist_attractions : tourist_attraction_id | photos : tourist_attraction_id = tourist_attractions : tourist_attraction_id | staff : tourist_attraction_id = tourist_attractions : tourist_attraction_id | tourist_attraction_features : feature_id = features : feature_id | tourist_attraction_features : tourist_attraction_id = tourist_attractions : tourist_attraction_id
cre_Theme_park
SELECT T1.Museum_Details , T2.Opening_Hours FROM MUSEUMS AS T1 JOIN TOURIST_ATTRACTIONS AS T2 ON T1.Museum_ID = T2.Tourist_Attraction_ID
What are the details and opening hours of the museums?
[Schema (values) (types)]: | cre_Theme_park | Ref_Hotel_Star_Ratings : star_rating_code (text) , star_rating_description (text) | Locations : location_id (text) , location_name (text) , address (text) , other_details (number) | Ref_Attraction_Types : attraction_type_code (text) , attraction_type_description (text) | Visitors : tourist_id (text) , tourist_details (text) | Features : feature_id (text) , feature_details (text) | Hotels : hotel_id (text) , star_rating_code (text) , pets_allowed_yn (text) , price_range (number) , other_hotel_details (text) | Tourist_Attractions : tourist_attraction_id (text) , attraction_type_code (text) , location_id (text) , how_to_get_there (number) , name (text) , description (text) , opening_hours (text) , other_details (text) | Street_Markets : market_id (text) , market_details (text) | Shops : shop_id (text) , shop_details (text) | Museums : museum_id (text) , museum_details (text) | Royal_Family : royal_family_id (text) , royal_family_details (text) | Theme_Parks : theme_park_id (text) , theme_park_details (text) | Visits : visit_id (text) , tourist_attraction_id (text) , tourist_id (text) , visit_date (number) , visit_details (text) | Photos : photo_id (text) , tourist_attraction_id (text) , name (text) , description (number) , filename (text) , other_details (text) | Staff : staff_id (text) , tourist_attraction_id (text) , name (text) , other_details (number) | Tourist_Attraction_Features : tourist_attraction_id (text) , feature_id (text);
[Primary Keys]: ref_hotel_star_ratings : star_rating_code, locations : location_id, ref_attraction_types : attraction_type_code, visitors : tourist_id, features : feature_id, hotels : hotel_id, tourist_attractions : tourist_attraction_id, street_markets : market_id, shops : shop_id, museums : museum_id, royal_family : royal_family_id, theme_parks : theme_park_id, visits : visit_id, photos : photo_id, staff : staff_id, tourist_attraction_features : tourist_attraction_id
[Foreign Keys]: hotels : star_rating_code = ref_hotel_star_ratings : star_rating_code | tourist_attractions : attraction_type_code = ref_attraction_types : attraction_type_code | tourist_attractions : location_id = locations : location_id | street_markets : market_id = tourist_attractions : tourist_attraction_id | shops : shop_id = tourist_attractions : tourist_attraction_id | museums : museum_id = tourist_attractions : tourist_attraction_id | royal_family : royal_family_id = tourist_attractions : tourist_attraction_id | theme_parks : theme_park_id = tourist_attractions : tourist_attraction_id | visits : tourist_id = visitors : tourist_id | visits : tourist_attraction_id = tourist_attractions : tourist_attraction_id | photos : tourist_attraction_id = tourist_attractions : tourist_attraction_id | staff : tourist_attraction_id = tourist_attractions : tourist_attraction_id | tourist_attraction_features : feature_id = features : feature_id | tourist_attraction_features : tourist_attraction_id = tourist_attractions : tourist_attraction_id
cre_Theme_park
SELECT T1.Museum_Details , T2.Opening_Hours FROM MUSEUMS AS T1 JOIN TOURIST_ATTRACTIONS AS T2 ON T1.Museum_ID = T2.Tourist_Attraction_ID
Give me the detail and opening hour for each museum.
[Schema (values) (types)]: | cre_Theme_park | Ref_Hotel_Star_Ratings : star_rating_code (text) , star_rating_description (text) | Locations : location_id (text) , location_name (text) , address (text) , other_details (number) | Ref_Attraction_Types : attraction_type_code (text) , attraction_type_description (text) | Visitors : tourist_id (text) , tourist_details (text) | Features : feature_id (text) , feature_details (text) | Hotels : hotel_id (text) , star_rating_code (text) , pets_allowed_yn (text) , price_range (number) , other_hotel_details (text) | Tourist_Attractions : tourist_attraction_id (text) , attraction_type_code (text) , location_id (text) , how_to_get_there (number) , name (text) , description (text) , opening_hours (text) , other_details (text) | Street_Markets : market_id (text) , market_details (text) | Shops : shop_id (text) , shop_details (text) | Museums : museum_id (text) , museum_details (text) | Royal_Family : royal_family_id (text) , royal_family_details (text) | Theme_Parks : theme_park_id (text) , theme_park_details (text) | Visits : visit_id (text) , tourist_attraction_id (text) , tourist_id (text) , visit_date (number) , visit_details (text) | Photos : photo_id (text) , tourist_attraction_id (text) , name (text) , description (number) , filename (text) , other_details (text) | Staff : staff_id (text) , tourist_attraction_id (text) , name (text) , other_details (number) | Tourist_Attraction_Features : tourist_attraction_id (text) , feature_id (text);
[Primary Keys]: ref_hotel_star_ratings : star_rating_code, locations : location_id, ref_attraction_types : attraction_type_code, visitors : tourist_id, features : feature_id, hotels : hotel_id, tourist_attractions : tourist_attraction_id, street_markets : market_id, shops : shop_id, museums : museum_id, royal_family : royal_family_id, theme_parks : theme_park_id, visits : visit_id, photos : photo_id, staff : staff_id, tourist_attraction_features : tourist_attraction_id
[Foreign Keys]: hotels : star_rating_code = ref_hotel_star_ratings : star_rating_code | tourist_attractions : attraction_type_code = ref_attraction_types : attraction_type_code | tourist_attractions : location_id = locations : location_id | street_markets : market_id = tourist_attractions : tourist_attraction_id | shops : shop_id = tourist_attractions : tourist_attraction_id | museums : museum_id = tourist_attractions : tourist_attraction_id | royal_family : royal_family_id = tourist_attractions : tourist_attraction_id | theme_parks : theme_park_id = tourist_attractions : tourist_attraction_id | visits : tourist_id = visitors : tourist_id | visits : tourist_attraction_id = tourist_attractions : tourist_attraction_id | photos : tourist_attraction_id = tourist_attractions : tourist_attraction_id | staff : tourist_attraction_id = tourist_attractions : tourist_attraction_id | tourist_attraction_features : feature_id = features : feature_id | tourist_attraction_features : tourist_attraction_id = tourist_attractions : tourist_attraction_id
cre_Theme_park
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"
What is the name of the tourist attraction that is associated with the photo "game1"?
[Schema (values) (types)]: | cre_Theme_park | Ref_Hotel_Star_Ratings : star_rating_code (text) , star_rating_description (text) | Locations : location_id (text) , location_name (text) , address (text) , other_details (number) | Ref_Attraction_Types : attraction_type_code (text) , attraction_type_description (text) | Visitors : tourist_id (text) , tourist_details (text) | Features : feature_id (text) , feature_details (text) | Hotels : hotel_id (text) , star_rating_code (text) , pets_allowed_yn (text) , price_range (number) , other_hotel_details (text) | Tourist_Attractions : tourist_attraction_id (text) , attraction_type_code (text) , location_id (text) , how_to_get_there (number) , name (text) , description (text) , opening_hours (text) , other_details (text) | Street_Markets : market_id (text) , market_details (text) | Shops : shop_id (text) , shop_details (text) | Museums : museum_id (text) , museum_details (text) | Royal_Family : royal_family_id (text) , royal_family_details (text) | Theme_Parks : theme_park_id (text) , theme_park_details (text) | Visits : visit_id (text) , tourist_attraction_id (text) , tourist_id (text) , visit_date (number) , visit_details (text) | Photos : photo_id (text) , tourist_attraction_id (text) , name (text) , description (number) , filename (text) , other_details (text) | Staff : staff_id (text) , tourist_attraction_id (text) , name (text) , other_details (number) | Tourist_Attraction_Features : tourist_attraction_id (text) , feature_id (text);
[Primary Keys]: ref_hotel_star_ratings : star_rating_code, locations : location_id, ref_attraction_types : attraction_type_code, visitors : tourist_id, features : feature_id, hotels : hotel_id, tourist_attractions : tourist_attraction_id, street_markets : market_id, shops : shop_id, museums : museum_id, royal_family : royal_family_id, theme_parks : theme_park_id, visits : visit_id, photos : photo_id, staff : staff_id, tourist_attraction_features : tourist_attraction_id
[Foreign Keys]: hotels : star_rating_code = ref_hotel_star_ratings : star_rating_code | tourist_attractions : attraction_type_code = ref_attraction_types : attraction_type_code | tourist_attractions : location_id = locations : location_id | street_markets : market_id = tourist_attractions : tourist_attraction_id | shops : shop_id = tourist_attractions : tourist_attraction_id | museums : museum_id = tourist_attractions : tourist_attraction_id | royal_family : royal_family_id = tourist_attractions : tourist_attraction_id | theme_parks : theme_park_id = tourist_attractions : tourist_attraction_id | visits : tourist_id = visitors : tourist_id | visits : tourist_attraction_id = tourist_attractions : tourist_attraction_id | photos : tourist_attraction_id = tourist_attractions : tourist_attraction_id | staff : tourist_attraction_id = tourist_attractions : tourist_attraction_id | tourist_attraction_features : feature_id = features : feature_id | tourist_attraction_features : tourist_attraction_id = tourist_attractions : tourist_attraction_id
cre_Theme_park
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"
Which tourist attraction is associated with the photo "game1"? Return its name.
[Schema (values) (types)]: | cre_Theme_park | Ref_Hotel_Star_Ratings : star_rating_code (text) , star_rating_description (text) | Locations : location_id (text) , location_name (text) , address (text) , other_details (number) | Ref_Attraction_Types : attraction_type_code (text) , attraction_type_description (text) | Visitors : tourist_id (text) , tourist_details (text) | Features : feature_id (text) , feature_details (text) | Hotels : hotel_id (text) , star_rating_code (text) , pets_allowed_yn (text) , price_range (number) , other_hotel_details (text) | Tourist_Attractions : tourist_attraction_id (text) , attraction_type_code (text) , location_id (text) , how_to_get_there (number) , name (text) , description (text) , opening_hours (text) , other_details (text) | Street_Markets : market_id (text) , market_details (text) | Shops : shop_id (text) , shop_details (text) | Museums : museum_id (text) , museum_details (text) | Royal_Family : royal_family_id (text) , royal_family_details (text) | Theme_Parks : theme_park_id (text) , theme_park_details (text) | Visits : visit_id (text) , tourist_attraction_id (text) , tourist_id (text) , visit_date (number) , visit_details (text) | Photos : photo_id (text) , tourist_attraction_id (text) , name (text) , description (number) , filename (text) , other_details (text) | Staff : staff_id (text) , tourist_attraction_id (text) , name (text) , other_details (number) | Tourist_Attraction_Features : tourist_attraction_id (text) , feature_id (text);
[Primary Keys]: ref_hotel_star_ratings : star_rating_code, locations : location_id, ref_attraction_types : attraction_type_code, visitors : tourist_id, features : feature_id, hotels : hotel_id, tourist_attractions : tourist_attraction_id, street_markets : market_id, shops : shop_id, museums : museum_id, royal_family : royal_family_id, theme_parks : theme_park_id, visits : visit_id, photos : photo_id, staff : staff_id, tourist_attraction_features : tourist_attraction_id
[Foreign Keys]: hotels : star_rating_code = ref_hotel_star_ratings : star_rating_code | tourist_attractions : attraction_type_code = ref_attraction_types : attraction_type_code | tourist_attractions : location_id = locations : location_id | street_markets : market_id = tourist_attractions : tourist_attraction_id | shops : shop_id = tourist_attractions : tourist_attraction_id | museums : museum_id = tourist_attractions : tourist_attraction_id | royal_family : royal_family_id = tourist_attractions : tourist_attraction_id | theme_parks : theme_park_id = tourist_attractions : tourist_attraction_id | visits : tourist_id = visitors : tourist_id | visits : tourist_attraction_id = tourist_attractions : tourist_attraction_id | photos : tourist_attraction_id = tourist_attractions : tourist_attraction_id | staff : tourist_attraction_id = tourist_attractions : tourist_attraction_id | tourist_attraction_features : feature_id = features : feature_id | tourist_attraction_features : tourist_attraction_id = tourist_attractions : tourist_attraction_id
cre_Theme_park
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"
What are the names and descriptions of the photos taken at the tourist attraction "film festival"?
[Schema (values) (types)]: | cre_Theme_park | Ref_Hotel_Star_Ratings : star_rating_code (text) , star_rating_description (text) | Locations : location_id (text) , location_name (text) , address (text) , other_details (number) | Ref_Attraction_Types : attraction_type_code (text) , attraction_type_description (text) | Visitors : tourist_id (text) , tourist_details (text) | Features : feature_id (text) , feature_details (text) | Hotels : hotel_id (text) , star_rating_code (text) , pets_allowed_yn (text) , price_range (number) , other_hotel_details (text) | Tourist_Attractions : tourist_attraction_id (text) , attraction_type_code (text) , location_id (text) , how_to_get_there (number) , name (text) , description (text) , opening_hours (text) , other_details (text) | Street_Markets : market_id (text) , market_details (text) | Shops : shop_id (text) , shop_details (text) | Museums : museum_id (text) , museum_details (text) | Royal_Family : royal_family_id (text) , royal_family_details (text) | Theme_Parks : theme_park_id (text) , theme_park_details (text) | Visits : visit_id (text) , tourist_attraction_id (text) , tourist_id (text) , visit_date (number) , visit_details (text) | Photos : photo_id (text) , tourist_attraction_id (text) , name (text) , description (number) , filename (text) , other_details (text) | Staff : staff_id (text) , tourist_attraction_id (text) , name (text) , other_details (number) | Tourist_Attraction_Features : tourist_attraction_id (text) , feature_id (text);
[Primary Keys]: ref_hotel_star_ratings : star_rating_code, locations : location_id, ref_attraction_types : attraction_type_code, visitors : tourist_id, features : feature_id, hotels : hotel_id, tourist_attractions : tourist_attraction_id, street_markets : market_id, shops : shop_id, museums : museum_id, royal_family : royal_family_id, theme_parks : theme_park_id, visits : visit_id, photos : photo_id, staff : staff_id, tourist_attraction_features : tourist_attraction_id
[Foreign Keys]: hotels : star_rating_code = ref_hotel_star_ratings : star_rating_code | tourist_attractions : attraction_type_code = ref_attraction_types : attraction_type_code | tourist_attractions : location_id = locations : location_id | street_markets : market_id = tourist_attractions : tourist_attraction_id | shops : shop_id = tourist_attractions : tourist_attraction_id | museums : museum_id = tourist_attractions : tourist_attraction_id | royal_family : royal_family_id = tourist_attractions : tourist_attraction_id | theme_parks : theme_park_id = tourist_attractions : tourist_attraction_id | visits : tourist_id = visitors : tourist_id | visits : tourist_attraction_id = tourist_attractions : tourist_attraction_id | photos : tourist_attraction_id = tourist_attractions : tourist_attraction_id | staff : tourist_attraction_id = tourist_attractions : tourist_attraction_id | tourist_attraction_features : feature_id = features : feature_id | tourist_attraction_features : tourist_attraction_id = tourist_attractions : tourist_attraction_id
cre_Theme_park
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"
Find the names and descriptions of the photos taken at the tourist attraction called "film festival".
[Schema (values) (types)]: | cre_Theme_park | Ref_Hotel_Star_Ratings : star_rating_code (text) , star_rating_description (text) | Locations : location_id (text) , location_name (text) , address (text) , other_details (number) | Ref_Attraction_Types : attraction_type_code (text) , attraction_type_description (text) | Visitors : tourist_id (text) , tourist_details (text) | Features : feature_id (text) , feature_details (text) | Hotels : hotel_id (text) , star_rating_code (text) , pets_allowed_yn (text) , price_range (number) , other_hotel_details (text) | Tourist_Attractions : tourist_attraction_id (text) , attraction_type_code (text) , location_id (text) , how_to_get_there (number) , name (text) , description (text) , opening_hours (text) , other_details (text) | Street_Markets : market_id (text) , market_details (text) | Shops : shop_id (text) , shop_details (text) | Museums : museum_id (text) , museum_details (text) | Royal_Family : royal_family_id (text) , royal_family_details (text) | Theme_Parks : theme_park_id (text) , theme_park_details (text) | Visits : visit_id (text) , tourist_attraction_id (text) , tourist_id (text) , visit_date (number) , visit_details (text) | Photos : photo_id (text) , tourist_attraction_id (text) , name (text) , description (number) , filename (text) , other_details (text) | Staff : staff_id (text) , tourist_attraction_id (text) , name (text) , other_details (number) | Tourist_Attraction_Features : tourist_attraction_id (text) , feature_id (text);
[Primary Keys]: ref_hotel_star_ratings : star_rating_code, locations : location_id, ref_attraction_types : attraction_type_code, visitors : tourist_id, features : feature_id, hotels : hotel_id, tourist_attractions : tourist_attraction_id, street_markets : market_id, shops : shop_id, museums : museum_id, royal_family : royal_family_id, theme_parks : theme_park_id, visits : visit_id, photos : photo_id, staff : staff_id, tourist_attraction_features : tourist_attraction_id
[Foreign Keys]: hotels : star_rating_code = ref_hotel_star_ratings : star_rating_code | tourist_attractions : attraction_type_code = ref_attraction_types : attraction_type_code | tourist_attractions : location_id = locations : location_id | street_markets : market_id = tourist_attractions : tourist_attraction_id | shops : shop_id = tourist_attractions : tourist_attraction_id | museums : museum_id = tourist_attractions : tourist_attraction_id | royal_family : royal_family_id = tourist_attractions : tourist_attraction_id | theme_parks : theme_park_id = tourist_attractions : tourist_attraction_id | visits : tourist_id = visitors : tourist_id | visits : tourist_attraction_id = tourist_attractions : tourist_attraction_id | photos : tourist_attraction_id = tourist_attractions : tourist_attraction_id | staff : tourist_attraction_id = tourist_attractions : tourist_attraction_id | tourist_attraction_features : feature_id = features : feature_id | tourist_attraction_features : tourist_attraction_id = tourist_attractions : tourist_attraction_id
cre_Theme_park
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
What are the details and ways to get to tourist attractions related to royal family?
[Schema (values) (types)]: | cre_Theme_park | Ref_Hotel_Star_Ratings : star_rating_code (text) , star_rating_description (text) | Locations : location_id (text) , location_name (text) , address (text) , other_details (number) | Ref_Attraction_Types : attraction_type_code (text) , attraction_type_description (text) | Visitors : tourist_id (text) , tourist_details (text) | Features : feature_id (text) , feature_details (text) | Hotels : hotel_id (text) , star_rating_code (text) , pets_allowed_yn (text) , price_range (number) , other_hotel_details (text) | Tourist_Attractions : tourist_attraction_id (text) , attraction_type_code (text) , location_id (text) , how_to_get_there (number) , name (text) , description (text) , opening_hours (text) , other_details (text) | Street_Markets : market_id (text) , market_details (text) | Shops : shop_id (text) , shop_details (text) | Museums : museum_id (text) , museum_details (text) | Royal_Family : royal_family_id (text) , royal_family_details (text) | Theme_Parks : theme_park_id (text) , theme_park_details (text) | Visits : visit_id (text) , tourist_attraction_id (text) , tourist_id (text) , visit_date (number) , visit_details (text) | Photos : photo_id (text) , tourist_attraction_id (text) , name (text) , description (number) , filename (text) , other_details (text) | Staff : staff_id (text) , tourist_attraction_id (text) , name (text) , other_details (number) | Tourist_Attraction_Features : tourist_attraction_id (text) , feature_id (text);
[Primary Keys]: ref_hotel_star_ratings : star_rating_code, locations : location_id, ref_attraction_types : attraction_type_code, visitors : tourist_id, features : feature_id, hotels : hotel_id, tourist_attractions : tourist_attraction_id, street_markets : market_id, shops : shop_id, museums : museum_id, royal_family : royal_family_id, theme_parks : theme_park_id, visits : visit_id, photos : photo_id, staff : staff_id, tourist_attraction_features : tourist_attraction_id
[Foreign Keys]: hotels : star_rating_code = ref_hotel_star_ratings : star_rating_code | tourist_attractions : attraction_type_code = ref_attraction_types : attraction_type_code | tourist_attractions : location_id = locations : location_id | street_markets : market_id = tourist_attractions : tourist_attraction_id | shops : shop_id = tourist_attractions : tourist_attraction_id | museums : museum_id = tourist_attractions : tourist_attraction_id | royal_family : royal_family_id = tourist_attractions : tourist_attraction_id | theme_parks : theme_park_id = tourist_attractions : tourist_attraction_id | visits : tourist_id = visitors : tourist_id | visits : tourist_attraction_id = tourist_attractions : tourist_attraction_id | photos : tourist_attraction_id = tourist_attractions : tourist_attraction_id | staff : tourist_attraction_id = tourist_attractions : tourist_attraction_id | tourist_attraction_features : feature_id = features : feature_id | tourist_attraction_features : tourist_attraction_id = tourist_attractions : tourist_attraction_id
cre_Theme_park
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
Which tourist attractions are related to royal family? Tell me their details and how we can get there.
[Schema (values) (types)]: | cre_Theme_park | Ref_Hotel_Star_Ratings : star_rating_code (text) , star_rating_description (text) | Locations : location_id (text) , location_name (text) , address (text) , other_details (number) | Ref_Attraction_Types : attraction_type_code (text) , attraction_type_description (text) | Visitors : tourist_id (text) , tourist_details (text) | Features : feature_id (text) , feature_details (text) | Hotels : hotel_id (text) , star_rating_code (text) , pets_allowed_yn (text) , price_range (number) , other_hotel_details (text) | Tourist_Attractions : tourist_attraction_id (text) , attraction_type_code (text) , location_id (text) , how_to_get_there (number) , name (text) , description (text) , opening_hours (text) , other_details (text) | Street_Markets : market_id (text) , market_details (text) | Shops : shop_id (text) , shop_details (text) | Museums : museum_id (text) , museum_details (text) | Royal_Family : royal_family_id (text) , royal_family_details (text) | Theme_Parks : theme_park_id (text) , theme_park_details (text) | Visits : visit_id (text) , tourist_attraction_id (text) , tourist_id (text) , visit_date (number) , visit_details (text) | Photos : photo_id (text) , tourist_attraction_id (text) , name (text) , description (number) , filename (text) , other_details (text) | Staff : staff_id (text) , tourist_attraction_id (text) , name (text) , other_details (number) | Tourist_Attraction_Features : tourist_attraction_id (text) , feature_id (text);
[Primary Keys]: ref_hotel_star_ratings : star_rating_code, locations : location_id, ref_attraction_types : attraction_type_code, visitors : tourist_id, features : feature_id, hotels : hotel_id, tourist_attractions : tourist_attraction_id, street_markets : market_id, shops : shop_id, museums : museum_id, royal_family : royal_family_id, theme_parks : theme_park_id, visits : visit_id, photos : photo_id, staff : staff_id, tourist_attraction_features : tourist_attraction_id
[Foreign Keys]: hotels : star_rating_code = ref_hotel_star_ratings : star_rating_code | tourist_attractions : attraction_type_code = ref_attraction_types : attraction_type_code | tourist_attractions : location_id = locations : location_id | street_markets : market_id = tourist_attractions : tourist_attraction_id | shops : shop_id = tourist_attractions : tourist_attraction_id | museums : museum_id = tourist_attractions : tourist_attraction_id | royal_family : royal_family_id = tourist_attractions : tourist_attraction_id | theme_parks : theme_park_id = tourist_attractions : tourist_attraction_id | visits : tourist_id = visitors : tourist_id | visits : tourist_attraction_id = tourist_attractions : tourist_attraction_id | photos : tourist_attraction_id = tourist_attractions : tourist_attraction_id | staff : tourist_attraction_id = tourist_attractions : tourist_attraction_id | tourist_attraction_features : feature_id = features : feature_id | tourist_attraction_features : tourist_attraction_id = tourist_attractions : tourist_attraction_id
cre_Theme_park
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"
What are the details of the shops that can be accessed by walk?
[Schema (values) (types)]: | cre_Theme_park | Ref_Hotel_Star_Ratings : star_rating_code (text) , star_rating_description (text) | Locations : location_id (text) , location_name (text) , address (text) , other_details (number) | Ref_Attraction_Types : attraction_type_code (text) , attraction_type_description (text) | Visitors : tourist_id (text) , tourist_details (text) | Features : feature_id (text) , feature_details (text) | Hotels : hotel_id (text) , star_rating_code (text) , pets_allowed_yn (text) , price_range (number) , other_hotel_details (text) | Tourist_Attractions : tourist_attraction_id (text) , attraction_type_code (text) , location_id (text) , how_to_get_there (number) , name (text) , description (text) , opening_hours (text) , other_details (text) | Street_Markets : market_id (text) , market_details (text) | Shops : shop_id (text) , shop_details (text) | Museums : museum_id (text) , museum_details (text) | Royal_Family : royal_family_id (text) , royal_family_details (text) | Theme_Parks : theme_park_id (text) , theme_park_details (text) | Visits : visit_id (text) , tourist_attraction_id (text) , tourist_id (text) , visit_date (number) , visit_details (text) | Photos : photo_id (text) , tourist_attraction_id (text) , name (text) , description (number) , filename (text) , other_details (text) | Staff : staff_id (text) , tourist_attraction_id (text) , name (text) , other_details (number) | Tourist_Attraction_Features : tourist_attraction_id (text) , feature_id (text);
[Primary Keys]: ref_hotel_star_ratings : star_rating_code, locations : location_id, ref_attraction_types : attraction_type_code, visitors : tourist_id, features : feature_id, hotels : hotel_id, tourist_attractions : tourist_attraction_id, street_markets : market_id, shops : shop_id, museums : museum_id, royal_family : royal_family_id, theme_parks : theme_park_id, visits : visit_id, photos : photo_id, staff : staff_id, tourist_attraction_features : tourist_attraction_id
[Foreign Keys]: hotels : star_rating_code = ref_hotel_star_ratings : star_rating_code | tourist_attractions : attraction_type_code = ref_attraction_types : attraction_type_code | tourist_attractions : location_id = locations : location_id | street_markets : market_id = tourist_attractions : tourist_attraction_id | shops : shop_id = tourist_attractions : tourist_attraction_id | museums : museum_id = tourist_attractions : tourist_attraction_id | royal_family : royal_family_id = tourist_attractions : tourist_attraction_id | theme_parks : theme_park_id = tourist_attractions : tourist_attraction_id | visits : tourist_id = visitors : tourist_id | visits : tourist_attraction_id = tourist_attractions : tourist_attraction_id | photos : tourist_attraction_id = tourist_attractions : tourist_attraction_id | staff : tourist_attraction_id = tourist_attractions : tourist_attraction_id | tourist_attraction_features : feature_id = features : feature_id | tourist_attraction_features : tourist_attraction_id = tourist_attractions : tourist_attraction_id
cre_Theme_park
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"
Find the details of the shops that can be reached by walk.
[Schema (values) (types)]: | cre_Theme_park | Ref_Hotel_Star_Ratings : star_rating_code (text) , star_rating_description (text) | Locations : location_id (text) , location_name (text) , address (text) , other_details (number) | Ref_Attraction_Types : attraction_type_code (text) , attraction_type_description (text) | Visitors : tourist_id (text) , tourist_details (text) | Features : feature_id (text) , feature_details (text) | Hotels : hotel_id (text) , star_rating_code (text) , pets_allowed_yn (text) , price_range (number) , other_hotel_details (text) | Tourist_Attractions : tourist_attraction_id (text) , attraction_type_code (text) , location_id (text) , how_to_get_there (number) , name (text) , description (text) , opening_hours (text) , other_details (text) | Street_Markets : market_id (text) , market_details (text) | Shops : shop_id (text) , shop_details (text) | Museums : museum_id (text) , museum_details (text) | Royal_Family : royal_family_id (text) , royal_family_details (text) | Theme_Parks : theme_park_id (text) , theme_park_details (text) | Visits : visit_id (text) , tourist_attraction_id (text) , tourist_id (text) , visit_date (number) , visit_details (text) | Photos : photo_id (text) , tourist_attraction_id (text) , name (text) , description (number) , filename (text) , other_details (text) | Staff : staff_id (text) , tourist_attraction_id (text) , name (text) , other_details (number) | Tourist_Attraction_Features : tourist_attraction_id (text) , feature_id (text);
[Primary Keys]: ref_hotel_star_ratings : star_rating_code, locations : location_id, ref_attraction_types : attraction_type_code, visitors : tourist_id, features : feature_id, hotels : hotel_id, tourist_attractions : tourist_attraction_id, street_markets : market_id, shops : shop_id, museums : museum_id, royal_family : royal_family_id, theme_parks : theme_park_id, visits : visit_id, photos : photo_id, staff : staff_id, tourist_attraction_features : tourist_attraction_id
[Foreign Keys]: hotels : star_rating_code = ref_hotel_star_ratings : star_rating_code | tourist_attractions : attraction_type_code = ref_attraction_types : attraction_type_code | tourist_attractions : location_id = locations : location_id | street_markets : market_id = tourist_attractions : tourist_attraction_id | shops : shop_id = tourist_attractions : tourist_attraction_id | museums : museum_id = tourist_attractions : tourist_attraction_id | royal_family : royal_family_id = tourist_attractions : tourist_attraction_id | theme_parks : theme_park_id = tourist_attractions : tourist_attraction_id | visits : tourist_id = visitors : tourist_id | visits : tourist_attraction_id = tourist_attractions : tourist_attraction_id | photos : tourist_attraction_id = tourist_attractions : tourist_attraction_id | staff : tourist_attraction_id = tourist_attractions : tourist_attraction_id | tourist_attraction_features : feature_id = features : feature_id | tourist_attraction_features : tourist_attraction_id = tourist_attractions : tourist_attraction_id
cre_Theme_park
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"
What is the name of the staff that is in charge of the attraction named "US museum"?
[Schema (values) (types)]: | cre_Theme_park | Ref_Hotel_Star_Ratings : star_rating_code (text) , star_rating_description (text) | Locations : location_id (text) , location_name (text) , address (text) , other_details (number) | Ref_Attraction_Types : attraction_type_code (text) , attraction_type_description (text) | Visitors : tourist_id (text) , tourist_details (text) | Features : feature_id (text) , feature_details (text) | Hotels : hotel_id (text) , star_rating_code (text) , pets_allowed_yn (text) , price_range (number) , other_hotel_details (text) | Tourist_Attractions : tourist_attraction_id (text) , attraction_type_code (text) , location_id (text) , how_to_get_there (number) , name (text) , description (text) , opening_hours (text) , other_details (text) | Street_Markets : market_id (text) , market_details (text) | Shops : shop_id (text) , shop_details (text) | Museums : museum_id (text) , museum_details (text) | Royal_Family : royal_family_id (text) , royal_family_details (text) | Theme_Parks : theme_park_id (text) , theme_park_details (text) | Visits : visit_id (text) , tourist_attraction_id (text) , tourist_id (text) , visit_date (number) , visit_details (text) | Photos : photo_id (text) , tourist_attraction_id (text) , name (text) , description (number) , filename (text) , other_details (text) | Staff : staff_id (text) , tourist_attraction_id (text) , name (text) , other_details (number) | Tourist_Attraction_Features : tourist_attraction_id (text) , feature_id (text);
[Primary Keys]: ref_hotel_star_ratings : star_rating_code, locations : location_id, ref_attraction_types : attraction_type_code, visitors : tourist_id, features : feature_id, hotels : hotel_id, tourist_attractions : tourist_attraction_id, street_markets : market_id, shops : shop_id, museums : museum_id, royal_family : royal_family_id, theme_parks : theme_park_id, visits : visit_id, photos : photo_id, staff : staff_id, tourist_attraction_features : tourist_attraction_id
[Foreign Keys]: hotels : star_rating_code = ref_hotel_star_ratings : star_rating_code | tourist_attractions : attraction_type_code = ref_attraction_types : attraction_type_code | tourist_attractions : location_id = locations : location_id | street_markets : market_id = tourist_attractions : tourist_attraction_id | shops : shop_id = tourist_attractions : tourist_attraction_id | museums : museum_id = tourist_attractions : tourist_attraction_id | royal_family : royal_family_id = tourist_attractions : tourist_attraction_id | theme_parks : theme_park_id = tourist_attractions : tourist_attraction_id | visits : tourist_id = visitors : tourist_id | visits : tourist_attraction_id = tourist_attractions : tourist_attraction_id | photos : tourist_attraction_id = tourist_attractions : tourist_attraction_id | staff : tourist_attraction_id = tourist_attractions : tourist_attraction_id | tourist_attraction_features : feature_id = features : feature_id | tourist_attraction_features : tourist_attraction_id = tourist_attractions : tourist_attraction_id
cre_Theme_park
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"
Tell me the name of the staff in charge of the attraction called "US museum".
[Schema (values) (types)]: | cre_Theme_park | Ref_Hotel_Star_Ratings : star_rating_code (text) , star_rating_description (text) | Locations : location_id (text) , location_name (text) , address (text) , other_details (number) | Ref_Attraction_Types : attraction_type_code (text) , attraction_type_description (text) | Visitors : tourist_id (text) , tourist_details (text) | Features : feature_id (text) , feature_details (text) | Hotels : hotel_id (text) , star_rating_code (text) , pets_allowed_yn (text) , price_range (number) , other_hotel_details (text) | Tourist_Attractions : tourist_attraction_id (text) , attraction_type_code (text) , location_id (text) , how_to_get_there (number) , name (text) , description (text) , opening_hours (text) , other_details (text) | Street_Markets : market_id (text) , market_details (text) | Shops : shop_id (text) , shop_details (text) | Museums : museum_id (text) , museum_details (text) | Royal_Family : royal_family_id (text) , royal_family_details (text) | Theme_Parks : theme_park_id (text) , theme_park_details (text) | Visits : visit_id (text) , tourist_attraction_id (text) , tourist_id (text) , visit_date (number) , visit_details (text) | Photos : photo_id (text) , tourist_attraction_id (text) , name (text) , description (number) , filename (text) , other_details (text) | Staff : staff_id (text) , tourist_attraction_id (text) , name (text) , other_details (number) | Tourist_Attraction_Features : tourist_attraction_id (text) , feature_id (text);
[Primary Keys]: ref_hotel_star_ratings : star_rating_code, locations : location_id, ref_attraction_types : attraction_type_code, visitors : tourist_id, features : feature_id, hotels : hotel_id, tourist_attractions : tourist_attraction_id, street_markets : market_id, shops : shop_id, museums : museum_id, royal_family : royal_family_id, theme_parks : theme_park_id, visits : visit_id, photos : photo_id, staff : staff_id, tourist_attraction_features : tourist_attraction_id
[Foreign Keys]: hotels : star_rating_code = ref_hotel_star_ratings : star_rating_code | tourist_attractions : attraction_type_code = ref_attraction_types : attraction_type_code | tourist_attractions : location_id = locations : location_id | street_markets : market_id = tourist_attractions : tourist_attraction_id | shops : shop_id = tourist_attractions : tourist_attraction_id | museums : museum_id = tourist_attractions : tourist_attraction_id | royal_family : royal_family_id = tourist_attractions : tourist_attraction_id | theme_parks : theme_park_id = tourist_attractions : tourist_attraction_id | visits : tourist_id = visitors : tourist_id | visits : tourist_attraction_id = tourist_attractions : tourist_attraction_id | photos : tourist_attraction_id = tourist_attractions : tourist_attraction_id | staff : tourist_attraction_id = tourist_attractions : tourist_attraction_id | tourist_attraction_features : feature_id = features : feature_id | tourist_attraction_features : tourist_attraction_id = tourist_attractions : tourist_attraction_id
cre_Theme_park
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"
What are the details of the markets that can be accessed by walk or bus?
[Schema (values) (types)]: | cre_Theme_park | Ref_Hotel_Star_Ratings : star_rating_code (text) , star_rating_description (text) | Locations : location_id (text) , location_name (text) , address (text) , other_details (number) | Ref_Attraction_Types : attraction_type_code (text) , attraction_type_description (text) | Visitors : tourist_id (text) , tourist_details (text) | Features : feature_id (text) , feature_details (text) | Hotels : hotel_id (text) , star_rating_code (text) , pets_allowed_yn (text) , price_range (number) , other_hotel_details (text) | Tourist_Attractions : tourist_attraction_id (text) , attraction_type_code (text) , location_id (text) , how_to_get_there (number) , name (text) , description (text) , opening_hours (text) , other_details (text) | Street_Markets : market_id (text) , market_details (text) | Shops : shop_id (text) , shop_details (text) | Museums : museum_id (text) , museum_details (text) | Royal_Family : royal_family_id (text) , royal_family_details (text) | Theme_Parks : theme_park_id (text) , theme_park_details (text) | Visits : visit_id (text) , tourist_attraction_id (text) , tourist_id (text) , visit_date (number) , visit_details (text) | Photos : photo_id (text) , tourist_attraction_id (text) , name (text) , description (number) , filename (text) , other_details (text) | Staff : staff_id (text) , tourist_attraction_id (text) , name (text) , other_details (number) | Tourist_Attraction_Features : tourist_attraction_id (text) , feature_id (text);
[Primary Keys]: ref_hotel_star_ratings : star_rating_code, locations : location_id, ref_attraction_types : attraction_type_code, visitors : tourist_id, features : feature_id, hotels : hotel_id, tourist_attractions : tourist_attraction_id, street_markets : market_id, shops : shop_id, museums : museum_id, royal_family : royal_family_id, theme_parks : theme_park_id, visits : visit_id, photos : photo_id, staff : staff_id, tourist_attraction_features : tourist_attraction_id
[Foreign Keys]: hotels : star_rating_code = ref_hotel_star_ratings : star_rating_code | tourist_attractions : attraction_type_code = ref_attraction_types : attraction_type_code | tourist_attractions : location_id = locations : location_id | street_markets : market_id = tourist_attractions : tourist_attraction_id | shops : shop_id = tourist_attractions : tourist_attraction_id | museums : museum_id = tourist_attractions : tourist_attraction_id | royal_family : royal_family_id = tourist_attractions : tourist_attraction_id | theme_parks : theme_park_id = tourist_attractions : tourist_attraction_id | visits : tourist_id = visitors : tourist_id | visits : tourist_attraction_id = tourist_attractions : tourist_attraction_id | photos : tourist_attraction_id = tourist_attractions : tourist_attraction_id | staff : tourist_attraction_id = tourist_attractions : tourist_attraction_id | tourist_attraction_features : feature_id = features : feature_id | tourist_attraction_features : tourist_attraction_id = tourist_attractions : tourist_attraction_id
cre_Theme_park
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"
Find the details of all the markets that are accessible by walk or bus.
[Schema (values) (types)]: | cre_Theme_park | Ref_Hotel_Star_Ratings : star_rating_code (text) , star_rating_description (text) | Locations : location_id (text) , location_name (text) , address (text) , other_details (number) | Ref_Attraction_Types : attraction_type_code (text) , attraction_type_description (text) | Visitors : tourist_id (text) , tourist_details (text) | Features : feature_id (text) , feature_details (text) | Hotels : hotel_id (text) , star_rating_code (text) , pets_allowed_yn (text) , price_range (number) , other_hotel_details (text) | Tourist_Attractions : tourist_attraction_id (text) , attraction_type_code (text) , location_id (text) , how_to_get_there (number) , name (text) , description (text) , opening_hours (text) , other_details (text) | Street_Markets : market_id (text) , market_details (text) | Shops : shop_id (text) , shop_details (text) | Museums : museum_id (text) , museum_details (text) | Royal_Family : royal_family_id (text) , royal_family_details (text) | Theme_Parks : theme_park_id (text) , theme_park_details (text) | Visits : visit_id (text) , tourist_attraction_id (text) , tourist_id (text) , visit_date (number) , visit_details (text) | Photos : photo_id (text) , tourist_attraction_id (text) , name (text) , description (number) , filename (text) , other_details (text) | Staff : staff_id (text) , tourist_attraction_id (text) , name (text) , other_details (number) | Tourist_Attraction_Features : tourist_attraction_id (text) , feature_id (text);
[Primary Keys]: ref_hotel_star_ratings : star_rating_code, locations : location_id, ref_attraction_types : attraction_type_code, visitors : tourist_id, features : feature_id, hotels : hotel_id, tourist_attractions : tourist_attraction_id, street_markets : market_id, shops : shop_id, museums : museum_id, royal_family : royal_family_id, theme_parks : theme_park_id, visits : visit_id, photos : photo_id, staff : staff_id, tourist_attraction_features : tourist_attraction_id
[Foreign Keys]: hotels : star_rating_code = ref_hotel_star_ratings : star_rating_code | tourist_attractions : attraction_type_code = ref_attraction_types : attraction_type_code | tourist_attractions : location_id = locations : location_id | street_markets : market_id = tourist_attractions : tourist_attraction_id | shops : shop_id = tourist_attractions : tourist_attraction_id | museums : museum_id = tourist_attractions : tourist_attraction_id | royal_family : royal_family_id = tourist_attractions : tourist_attraction_id | theme_parks : theme_park_id = tourist_attractions : tourist_attraction_id | visits : tourist_id = visitors : tourist_id | visits : tourist_attraction_id = tourist_attractions : tourist_attraction_id | photos : tourist_attraction_id = tourist_attractions : tourist_attraction_id | staff : tourist_attraction_id = tourist_attractions : tourist_attraction_id | tourist_attraction_features : feature_id = features : feature_id | tourist_attraction_features : tourist_attraction_id = tourist_attractions : tourist_attraction_id
cre_Theme_park
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"
What are the visit date and details of the visitor whose detail is 'Vincent'?
[Schema (values) (types)]: | cre_Theme_park | Ref_Hotel_Star_Ratings : star_rating_code (text) , star_rating_description (text) | Locations : location_id (text) , location_name (text) , address (text) , other_details (number) | Ref_Attraction_Types : attraction_type_code (text) , attraction_type_description (text) | Visitors : tourist_id (text) , tourist_details (text) | Features : feature_id (text) , feature_details (text) | Hotels : hotel_id (text) , star_rating_code (text) , pets_allowed_yn (text) , price_range (number) , other_hotel_details (text) | Tourist_Attractions : tourist_attraction_id (text) , attraction_type_code (text) , location_id (text) , how_to_get_there (number) , name (text) , description (text) , opening_hours (text) , other_details (text) | Street_Markets : market_id (text) , market_details (text) | Shops : shop_id (text) , shop_details (text) | Museums : museum_id (text) , museum_details (text) | Royal_Family : royal_family_id (text) , royal_family_details (text) | Theme_Parks : theme_park_id (text) , theme_park_details (text) | Visits : visit_id (text) , tourist_attraction_id (text) , tourist_id (text) , visit_date (number) , visit_details (text) | Photos : photo_id (text) , tourist_attraction_id (text) , name (text) , description (number) , filename (text) , other_details (text) | Staff : staff_id (text) , tourist_attraction_id (text) , name (text) , other_details (number) | Tourist_Attraction_Features : tourist_attraction_id (text) , feature_id (text);
[Primary Keys]: ref_hotel_star_ratings : star_rating_code, locations : location_id, ref_attraction_types : attraction_type_code, visitors : tourist_id, features : feature_id, hotels : hotel_id, tourist_attractions : tourist_attraction_id, street_markets : market_id, shops : shop_id, museums : museum_id, royal_family : royal_family_id, theme_parks : theme_park_id, visits : visit_id, photos : photo_id, staff : staff_id, tourist_attraction_features : tourist_attraction_id
[Foreign Keys]: hotels : star_rating_code = ref_hotel_star_ratings : star_rating_code | tourist_attractions : attraction_type_code = ref_attraction_types : attraction_type_code | tourist_attractions : location_id = locations : location_id | street_markets : market_id = tourist_attractions : tourist_attraction_id | shops : shop_id = tourist_attractions : tourist_attraction_id | museums : museum_id = tourist_attractions : tourist_attraction_id | royal_family : royal_family_id = tourist_attractions : tourist_attraction_id | theme_parks : theme_park_id = tourist_attractions : tourist_attraction_id | visits : tourist_id = visitors : tourist_id | visits : tourist_attraction_id = tourist_attractions : tourist_attraction_id | photos : tourist_attraction_id = tourist_attractions : tourist_attraction_id | staff : tourist_attraction_id = tourist_attractions : tourist_attraction_id | tourist_attraction_features : feature_id = features : feature_id | tourist_attraction_features : tourist_attraction_id = tourist_attractions : tourist_attraction_id
cre_Theme_park
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"
Find the visit date and details of the tourist whose detail is 'Vincent'
[Schema (values) (types)]: | cre_Theme_park | Ref_Hotel_Star_Ratings : star_rating_code (text) , star_rating_description (text) | Locations : location_id (text) , location_name (text) , address (text) , other_details (number) | Ref_Attraction_Types : attraction_type_code (text) , attraction_type_description (text) | Visitors : tourist_id (text) , tourist_details (text) | Features : feature_id (text) , feature_details (text) | Hotels : hotel_id (text) , star_rating_code (text) , pets_allowed_yn (text) , price_range (number) , other_hotel_details (text) | Tourist_Attractions : tourist_attraction_id (text) , attraction_type_code (text) , location_id (text) , how_to_get_there (number) , name (text) , description (text) , opening_hours (text) , other_details (text) | Street_Markets : market_id (text) , market_details (text) | Shops : shop_id (text) , shop_details (text) | Museums : museum_id (text) , museum_details (text) | Royal_Family : royal_family_id (text) , royal_family_details (text) | Theme_Parks : theme_park_id (text) , theme_park_details (text) | Visits : visit_id (text) , tourist_attraction_id (text) , tourist_id (text) , visit_date (number) , visit_details (text) | Photos : photo_id (text) , tourist_attraction_id (text) , name (text) , description (number) , filename (text) , other_details (text) | Staff : staff_id (text) , tourist_attraction_id (text) , name (text) , other_details (number) | Tourist_Attraction_Features : tourist_attraction_id (text) , feature_id (text);
[Primary Keys]: ref_hotel_star_ratings : star_rating_code, locations : location_id, ref_attraction_types : attraction_type_code, visitors : tourist_id, features : feature_id, hotels : hotel_id, tourist_attractions : tourist_attraction_id, street_markets : market_id, shops : shop_id, museums : museum_id, royal_family : royal_family_id, theme_parks : theme_park_id, visits : visit_id, photos : photo_id, staff : staff_id, tourist_attraction_features : tourist_attraction_id
[Foreign Keys]: hotels : star_rating_code = ref_hotel_star_ratings : star_rating_code | tourist_attractions : attraction_type_code = ref_attraction_types : attraction_type_code | tourist_attractions : location_id = locations : location_id | street_markets : market_id = tourist_attractions : tourist_attraction_id | shops : shop_id = tourist_attractions : tourist_attraction_id | museums : museum_id = tourist_attractions : tourist_attraction_id | royal_family : royal_family_id = tourist_attractions : tourist_attraction_id | theme_parks : theme_park_id = tourist_attractions : tourist_attraction_id | visits : tourist_id = visitors : tourist_id | visits : tourist_attraction_id = tourist_attractions : tourist_attraction_id | photos : tourist_attraction_id = tourist_attractions : tourist_attraction_id | staff : tourist_attraction_id = tourist_attractions : tourist_attraction_id | tourist_attraction_features : feature_id = features : feature_id | tourist_attraction_features : tourist_attraction_id = tourist_attractions : tourist_attraction_id
cre_Theme_park
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"
Which tourist attractions does the visitor with detail 'Vincent' visit?
[Schema (values) (types)]: | cre_Theme_park | Ref_Hotel_Star_Ratings : star_rating_code (text) , star_rating_description (text) | Locations : location_id (text) , location_name (text) , address (text) , other_details (number) | Ref_Attraction_Types : attraction_type_code (text) , attraction_type_description (text) | Visitors : tourist_id (text) , tourist_details (text) | Features : feature_id (text) , feature_details (text) | Hotels : hotel_id (text) , star_rating_code (text) , pets_allowed_yn (text) , price_range (number) , other_hotel_details (text) | Tourist_Attractions : tourist_attraction_id (text) , attraction_type_code (text) , location_id (text) , how_to_get_there (number) , name (text) , description (text) , opening_hours (text) , other_details (text) | Street_Markets : market_id (text) , market_details (text) | Shops : shop_id (text) , shop_details (text) | Museums : museum_id (text) , museum_details (text) | Royal_Family : royal_family_id (text) , royal_family_details (text) | Theme_Parks : theme_park_id (text) , theme_park_details (text) | Visits : visit_id (text) , tourist_attraction_id (text) , tourist_id (text) , visit_date (number) , visit_details (text) | Photos : photo_id (text) , tourist_attraction_id (text) , name (text) , description (number) , filename (text) , other_details (text) | Staff : staff_id (text) , tourist_attraction_id (text) , name (text) , other_details (number) | Tourist_Attraction_Features : tourist_attraction_id (text) , feature_id (text);
[Primary Keys]: ref_hotel_star_ratings : star_rating_code, locations : location_id, ref_attraction_types : attraction_type_code, visitors : tourist_id, features : feature_id, hotels : hotel_id, tourist_attractions : tourist_attraction_id, street_markets : market_id, shops : shop_id, museums : museum_id, royal_family : royal_family_id, theme_parks : theme_park_id, visits : visit_id, photos : photo_id, staff : staff_id, tourist_attraction_features : tourist_attraction_id
[Foreign Keys]: hotels : star_rating_code = ref_hotel_star_ratings : star_rating_code | tourist_attractions : attraction_type_code = ref_attraction_types : attraction_type_code | tourist_attractions : location_id = locations : location_id | street_markets : market_id = tourist_attractions : tourist_attraction_id | shops : shop_id = tourist_attractions : tourist_attraction_id | museums : museum_id = tourist_attractions : tourist_attraction_id | royal_family : royal_family_id = tourist_attractions : tourist_attraction_id | theme_parks : theme_park_id = tourist_attractions : tourist_attraction_id | visits : tourist_id = visitors : tourist_id | visits : tourist_attraction_id = tourist_attractions : tourist_attraction_id | photos : tourist_attraction_id = tourist_attractions : tourist_attraction_id | staff : tourist_attraction_id = tourist_attractions : tourist_attraction_id | tourist_attraction_features : feature_id = features : feature_id | tourist_attraction_features : tourist_attraction_id = tourist_attractions : tourist_attraction_id
cre_Theme_park
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"
Show the tourist attractions visited by the tourist whose detail is 'Vincent'.
[Schema (values) (types)]: | cre_Theme_park | Ref_Hotel_Star_Ratings : star_rating_code (text) , star_rating_description (text) | Locations : location_id (text) , location_name (text) , address (text) , other_details (number) | Ref_Attraction_Types : attraction_type_code (text) , attraction_type_description (text) | Visitors : tourist_id (text) , tourist_details (text) | Features : feature_id (text) , feature_details (text) | Hotels : hotel_id (text) , star_rating_code (text) , pets_allowed_yn (text) , price_range (number) , other_hotel_details (text) | Tourist_Attractions : tourist_attraction_id (text) , attraction_type_code (text) , location_id (text) , how_to_get_there (number) , name (text) , description (text) , opening_hours (text) , other_details (text) | Street_Markets : market_id (text) , market_details (text) | Shops : shop_id (text) , shop_details (text) | Museums : museum_id (text) , museum_details (text) | Royal_Family : royal_family_id (text) , royal_family_details (text) | Theme_Parks : theme_park_id (text) , theme_park_details (text) | Visits : visit_id (text) , tourist_attraction_id (text) , tourist_id (text) , visit_date (number) , visit_details (text) | Photos : photo_id (text) , tourist_attraction_id (text) , name (text) , description (number) , filename (text) , other_details (text) | Staff : staff_id (text) , tourist_attraction_id (text) , name (text) , other_details (number) | Tourist_Attraction_Features : tourist_attraction_id (text) , feature_id (text);
[Primary Keys]: ref_hotel_star_ratings : star_rating_code, locations : location_id, ref_attraction_types : attraction_type_code, visitors : tourist_id, features : feature_id, hotels : hotel_id, tourist_attractions : tourist_attraction_id, street_markets : market_id, shops : shop_id, museums : museum_id, royal_family : royal_family_id, theme_parks : theme_park_id, visits : visit_id, photos : photo_id, staff : staff_id, tourist_attraction_features : tourist_attraction_id
[Foreign Keys]: hotels : star_rating_code = ref_hotel_star_ratings : star_rating_code | tourist_attractions : attraction_type_code = ref_attraction_types : attraction_type_code | tourist_attractions : location_id = locations : location_id | street_markets : market_id = tourist_attractions : tourist_attraction_id | shops : shop_id = tourist_attractions : tourist_attraction_id | museums : museum_id = tourist_attractions : tourist_attraction_id | royal_family : royal_family_id = tourist_attractions : tourist_attraction_id | theme_parks : theme_park_id = tourist_attractions : tourist_attraction_id | visits : tourist_id = visitors : tourist_id | visits : tourist_attraction_id = tourist_attractions : tourist_attraction_id | photos : tourist_attraction_id = tourist_attractions : tourist_attraction_id | staff : tourist_attraction_id = tourist_attractions : tourist_attraction_id | tourist_attraction_features : feature_id = features : feature_id | tourist_attraction_features : tourist_attraction_id = tourist_attractions : tourist_attraction_id
cre_Theme_park
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"
What are the names of the tourist attractions and the dates when the tourists named Vincent or Vivian visited there?
[Schema (values) (types)]: | cre_Theme_park | Ref_Hotel_Star_Ratings : star_rating_code (text) , star_rating_description (text) | Locations : location_id (text) , location_name (text) , address (text) , other_details (number) | Ref_Attraction_Types : attraction_type_code (text) , attraction_type_description (text) | Visitors : tourist_id (text) , tourist_details (text) | Features : feature_id (text) , feature_details (text) | Hotels : hotel_id (text) , star_rating_code (text) , pets_allowed_yn (text) , price_range (number) , other_hotel_details (text) | Tourist_Attractions : tourist_attraction_id (text) , attraction_type_code (text) , location_id (text) , how_to_get_there (number) , name (text) , description (text) , opening_hours (text) , other_details (text) | Street_Markets : market_id (text) , market_details (text) | Shops : shop_id (text) , shop_details (text) | Museums : museum_id (text) , museum_details (text) | Royal_Family : royal_family_id (text) , royal_family_details (text) | Theme_Parks : theme_park_id (text) , theme_park_details (text) | Visits : visit_id (text) , tourist_attraction_id (text) , tourist_id (text) , visit_date (number) , visit_details (text) | Photos : photo_id (text) , tourist_attraction_id (text) , name (text) , description (number) , filename (text) , other_details (text) | Staff : staff_id (text) , tourist_attraction_id (text) , name (text) , other_details (number) | Tourist_Attraction_Features : tourist_attraction_id (text) , feature_id (text);
[Primary Keys]: ref_hotel_star_ratings : star_rating_code, locations : location_id, ref_attraction_types : attraction_type_code, visitors : tourist_id, features : feature_id, hotels : hotel_id, tourist_attractions : tourist_attraction_id, street_markets : market_id, shops : shop_id, museums : museum_id, royal_family : royal_family_id, theme_parks : theme_park_id, visits : visit_id, photos : photo_id, staff : staff_id, tourist_attraction_features : tourist_attraction_id
[Foreign Keys]: hotels : star_rating_code = ref_hotel_star_ratings : star_rating_code | tourist_attractions : attraction_type_code = ref_attraction_types : attraction_type_code | tourist_attractions : location_id = locations : location_id | street_markets : market_id = tourist_attractions : tourist_attraction_id | shops : shop_id = tourist_attractions : tourist_attraction_id | museums : museum_id = tourist_attractions : tourist_attraction_id | royal_family : royal_family_id = tourist_attractions : tourist_attraction_id | theme_parks : theme_park_id = tourist_attractions : tourist_attraction_id | visits : tourist_id = visitors : tourist_id | visits : tourist_attraction_id = tourist_attractions : tourist_attraction_id | photos : tourist_attraction_id = tourist_attractions : tourist_attraction_id | staff : tourist_attraction_id = tourist_attractions : tourist_attraction_id | tourist_attraction_features : feature_id = features : feature_id | tourist_attraction_features : tourist_attraction_id = tourist_attractions : tourist_attraction_id
cre_Theme_park
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"
For each tourist attraction, return its name and the date when the tourists named Vincent or Vivian visited there.
[Schema (values) (types)]: | cre_Theme_park | Ref_Hotel_Star_Ratings : star_rating_code (text) , star_rating_description (text) | Locations : location_id (text) , location_name (text) , address (text) , other_details (number) | Ref_Attraction_Types : attraction_type_code (text) , attraction_type_description (text) | Visitors : tourist_id (text) , tourist_details (text) | Features : feature_id (text) , feature_details (text) | Hotels : hotel_id (text) , star_rating_code (text) , pets_allowed_yn (text) , price_range (number) , other_hotel_details (text) | Tourist_Attractions : tourist_attraction_id (text) , attraction_type_code (text) , location_id (text) , how_to_get_there (number) , name (text) , description (text) , opening_hours (text) , other_details (text) | Street_Markets : market_id (text) , market_details (text) | Shops : shop_id (text) , shop_details (text) | Museums : museum_id (text) , museum_details (text) | Royal_Family : royal_family_id (text) , royal_family_details (text) | Theme_Parks : theme_park_id (text) , theme_park_details (text) | Visits : visit_id (text) , tourist_attraction_id (text) , tourist_id (text) , visit_date (number) , visit_details (text) | Photos : photo_id (text) , tourist_attraction_id (text) , name (text) , description (number) , filename (text) , other_details (text) | Staff : staff_id (text) , tourist_attraction_id (text) , name (text) , other_details (number) | Tourist_Attraction_Features : tourist_attraction_id (text) , feature_id (text);
[Primary Keys]: ref_hotel_star_ratings : star_rating_code, locations : location_id, ref_attraction_types : attraction_type_code, visitors : tourist_id, features : feature_id, hotels : hotel_id, tourist_attractions : tourist_attraction_id, street_markets : market_id, shops : shop_id, museums : museum_id, royal_family : royal_family_id, theme_parks : theme_park_id, visits : visit_id, photos : photo_id, staff : staff_id, tourist_attraction_features : tourist_attraction_id
[Foreign Keys]: hotels : star_rating_code = ref_hotel_star_ratings : star_rating_code | tourist_attractions : attraction_type_code = ref_attraction_types : attraction_type_code | tourist_attractions : location_id = locations : location_id | street_markets : market_id = tourist_attractions : tourist_attraction_id | shops : shop_id = tourist_attractions : tourist_attraction_id | museums : museum_id = tourist_attractions : tourist_attraction_id | royal_family : royal_family_id = tourist_attractions : tourist_attraction_id | theme_parks : theme_park_id = tourist_attractions : tourist_attraction_id | visits : tourist_id = visitors : tourist_id | visits : tourist_attraction_id = tourist_attractions : tourist_attraction_id | photos : tourist_attraction_id = tourist_attractions : tourist_attraction_id | staff : tourist_attraction_id = tourist_attractions : tourist_attraction_id | tourist_attraction_features : feature_id = features : feature_id | tourist_attraction_features : tourist_attraction_id = tourist_attractions : tourist_attraction_id
cre_Theme_park
SELECT star_rating_code , avg(price_range) FROM HOTELS GROUP BY star_rating_code
Show the average price of hotels for each star rating code.
[Schema (values) (types)]: | cre_Theme_park | Ref_Hotel_Star_Ratings : star_rating_code (text) , star_rating_description (text) | Locations : location_id (text) , location_name (text) , address (text) , other_details (number) | Ref_Attraction_Types : attraction_type_code (text) , attraction_type_description (text) | Visitors : tourist_id (text) , tourist_details (text) | Features : feature_id (text) , feature_details (text) | Hotels : hotel_id (text) , star_rating_code (text) , pets_allowed_yn (text) , price_range (number) , other_hotel_details (text) | Tourist_Attractions : tourist_attraction_id (text) , attraction_type_code (text) , location_id (text) , how_to_get_there (number) , name (text) , description (text) , opening_hours (text) , other_details (text) | Street_Markets : market_id (text) , market_details (text) | Shops : shop_id (text) , shop_details (text) | Museums : museum_id (text) , museum_details (text) | Royal_Family : royal_family_id (text) , royal_family_details (text) | Theme_Parks : theme_park_id (text) , theme_park_details (text) | Visits : visit_id (text) , tourist_attraction_id (text) , tourist_id (text) , visit_date (number) , visit_details (text) | Photos : photo_id (text) , tourist_attraction_id (text) , name (text) , description (number) , filename (text) , other_details (text) | Staff : staff_id (text) , tourist_attraction_id (text) , name (text) , other_details (number) | Tourist_Attraction_Features : tourist_attraction_id (text) , feature_id (text);
[Primary Keys]: ref_hotel_star_ratings : star_rating_code, locations : location_id, ref_attraction_types : attraction_type_code, visitors : tourist_id, features : feature_id, hotels : hotel_id, tourist_attractions : tourist_attraction_id, street_markets : market_id, shops : shop_id, museums : museum_id, royal_family : royal_family_id, theme_parks : theme_park_id, visits : visit_id, photos : photo_id, staff : staff_id, tourist_attraction_features : tourist_attraction_id
[Foreign Keys]: hotels : star_rating_code = ref_hotel_star_ratings : star_rating_code | tourist_attractions : attraction_type_code = ref_attraction_types : attraction_type_code | tourist_attractions : location_id = locations : location_id | street_markets : market_id = tourist_attractions : tourist_attraction_id | shops : shop_id = tourist_attractions : tourist_attraction_id | museums : museum_id = tourist_attractions : tourist_attraction_id | royal_family : royal_family_id = tourist_attractions : tourist_attraction_id | theme_parks : theme_park_id = tourist_attractions : tourist_attraction_id | visits : tourist_id = visitors : tourist_id | visits : tourist_attraction_id = tourist_attractions : tourist_attraction_id | photos : tourist_attraction_id = tourist_attractions : tourist_attraction_id | staff : tourist_attraction_id = tourist_attractions : tourist_attraction_id | tourist_attraction_features : feature_id = features : feature_id | tourist_attraction_features : tourist_attraction_id = tourist_attractions : tourist_attraction_id
cre_Theme_park
SELECT star_rating_code , avg(price_range) FROM HOTELS GROUP BY star_rating_code
What is the average price range of hotels for each each star rating code?
[Schema (values) (types)]: | cre_Theme_park | Ref_Hotel_Star_Ratings : star_rating_code (text) , star_rating_description (text) | Locations : location_id (text) , location_name (text) , address (text) , other_details (number) | Ref_Attraction_Types : attraction_type_code (text) , attraction_type_description (text) | Visitors : tourist_id (text) , tourist_details (text) | Features : feature_id (text) , feature_details (text) | Hotels : hotel_id (text) , star_rating_code (text) , pets_allowed_yn (text) , price_range (number) , other_hotel_details (text) | Tourist_Attractions : tourist_attraction_id (text) , attraction_type_code (text) , location_id (text) , how_to_get_there (number) , name (text) , description (text) , opening_hours (text) , other_details (text) | Street_Markets : market_id (text) , market_details (text) | Shops : shop_id (text) , shop_details (text) | Museums : museum_id (text) , museum_details (text) | Royal_Family : royal_family_id (text) , royal_family_details (text) | Theme_Parks : theme_park_id (text) , theme_park_details (text) | Visits : visit_id (text) , tourist_attraction_id (text) , tourist_id (text) , visit_date (number) , visit_details (text) | Photos : photo_id (text) , tourist_attraction_id (text) , name (text) , description (number) , filename (text) , other_details (text) | Staff : staff_id (text) , tourist_attraction_id (text) , name (text) , other_details (number) | Tourist_Attraction_Features : tourist_attraction_id (text) , feature_id (text);
[Primary Keys]: ref_hotel_star_ratings : star_rating_code, locations : location_id, ref_attraction_types : attraction_type_code, visitors : tourist_id, features : feature_id, hotels : hotel_id, tourist_attractions : tourist_attraction_id, street_markets : market_id, shops : shop_id, museums : museum_id, royal_family : royal_family_id, theme_parks : theme_park_id, visits : visit_id, photos : photo_id, staff : staff_id, tourist_attraction_features : tourist_attraction_id
[Foreign Keys]: hotels : star_rating_code = ref_hotel_star_ratings : star_rating_code | tourist_attractions : attraction_type_code = ref_attraction_types : attraction_type_code | tourist_attractions : location_id = locations : location_id | street_markets : market_id = tourist_attractions : tourist_attraction_id | shops : shop_id = tourist_attractions : tourist_attraction_id | museums : museum_id = tourist_attractions : tourist_attraction_id | royal_family : royal_family_id = tourist_attractions : tourist_attraction_id | theme_parks : theme_park_id = tourist_attractions : tourist_attraction_id | visits : tourist_id = visitors : tourist_id | visits : tourist_attraction_id = tourist_attractions : tourist_attraction_id | photos : tourist_attraction_id = tourist_attractions : tourist_attraction_id | staff : tourist_attraction_id = tourist_attractions : tourist_attraction_id | tourist_attraction_features : feature_id = features : feature_id | tourist_attraction_features : tourist_attraction_id = tourist_attractions : tourist_attraction_id
cre_Theme_park
SELECT pets_allowed_yn , avg(price_range) FROM HOTELS GROUP BY pets_allowed_yn
Show the average price of hotels for different pet policy.
[Schema (values) (types)]: | cre_Theme_park | Ref_Hotel_Star_Ratings : star_rating_code (text) , star_rating_description (text) | Locations : location_id (text) , location_name (text) , address (text) , other_details (number) | Ref_Attraction_Types : attraction_type_code (text) , attraction_type_description (text) | Visitors : tourist_id (text) , tourist_details (text) | Features : feature_id (text) , feature_details (text) | Hotels : hotel_id (text) , star_rating_code (text) , pets_allowed_yn (text) , price_range (number) , other_hotel_details (text) | Tourist_Attractions : tourist_attraction_id (text) , attraction_type_code (text) , location_id (text) , how_to_get_there (number) , name (text) , description (text) , opening_hours (text) , other_details (text) | Street_Markets : market_id (text) , market_details (text) | Shops : shop_id (text) , shop_details (text) | Museums : museum_id (text) , museum_details (text) | Royal_Family : royal_family_id (text) , royal_family_details (text) | Theme_Parks : theme_park_id (text) , theme_park_details (text) | Visits : visit_id (text) , tourist_attraction_id (text) , tourist_id (text) , visit_date (number) , visit_details (text) | Photos : photo_id (text) , tourist_attraction_id (text) , name (text) , description (number) , filename (text) , other_details (text) | Staff : staff_id (text) , tourist_attraction_id (text) , name (text) , other_details (number) | Tourist_Attraction_Features : tourist_attraction_id (text) , feature_id (text);
[Primary Keys]: ref_hotel_star_ratings : star_rating_code, locations : location_id, ref_attraction_types : attraction_type_code, visitors : tourist_id, features : feature_id, hotels : hotel_id, tourist_attractions : tourist_attraction_id, street_markets : market_id, shops : shop_id, museums : museum_id, royal_family : royal_family_id, theme_parks : theme_park_id, visits : visit_id, photos : photo_id, staff : staff_id, tourist_attraction_features : tourist_attraction_id
[Foreign Keys]: hotels : star_rating_code = ref_hotel_star_ratings : star_rating_code | tourist_attractions : attraction_type_code = ref_attraction_types : attraction_type_code | tourist_attractions : location_id = locations : location_id | street_markets : market_id = tourist_attractions : tourist_attraction_id | shops : shop_id = tourist_attractions : tourist_attraction_id | museums : museum_id = tourist_attractions : tourist_attraction_id | royal_family : royal_family_id = tourist_attractions : tourist_attraction_id | theme_parks : theme_park_id = tourist_attractions : tourist_attraction_id | visits : tourist_id = visitors : tourist_id | visits : tourist_attraction_id = tourist_attractions : tourist_attraction_id | photos : tourist_attraction_id = tourist_attractions : tourist_attraction_id | staff : tourist_attraction_id = tourist_attractions : tourist_attraction_id | tourist_attraction_features : feature_id = features : feature_id | tourist_attraction_features : tourist_attraction_id = tourist_attractions : tourist_attraction_id
cre_Theme_park
SELECT pets_allowed_yn , avg(price_range) FROM HOTELS GROUP BY pets_allowed_yn
What are the average prices of hotels grouped by their pet policy.
[Schema (values) (types)]: | cre_Theme_park | Ref_Hotel_Star_Ratings : star_rating_code (text) , star_rating_description (text) | Locations : location_id (text) , location_name (text) , address (text) , other_details (number) | Ref_Attraction_Types : attraction_type_code (text) , attraction_type_description (text) | Visitors : tourist_id (text) , tourist_details (text) | Features : feature_id (text) , feature_details (text) | Hotels : hotel_id (text) , star_rating_code (text) , pets_allowed_yn (text) , price_range (number) , other_hotel_details (text) | Tourist_Attractions : tourist_attraction_id (text) , attraction_type_code (text) , location_id (text) , how_to_get_there (number) , name (text) , description (text) , opening_hours (text) , other_details (text) | Street_Markets : market_id (text) , market_details (text) | Shops : shop_id (text) , shop_details (text) | Museums : museum_id (text) , museum_details (text) | Royal_Family : royal_family_id (text) , royal_family_details (text) | Theme_Parks : theme_park_id (text) , theme_park_details (text) | Visits : visit_id (text) , tourist_attraction_id (text) , tourist_id (text) , visit_date (number) , visit_details (text) | Photos : photo_id (text) , tourist_attraction_id (text) , name (text) , description (number) , filename (text) , other_details (text) | Staff : staff_id (text) , tourist_attraction_id (text) , name (text) , other_details (number) | Tourist_Attraction_Features : tourist_attraction_id (text) , feature_id (text);
[Primary Keys]: ref_hotel_star_ratings : star_rating_code, locations : location_id, ref_attraction_types : attraction_type_code, visitors : tourist_id, features : feature_id, hotels : hotel_id, tourist_attractions : tourist_attraction_id, street_markets : market_id, shops : shop_id, museums : museum_id, royal_family : royal_family_id, theme_parks : theme_park_id, visits : visit_id, photos : photo_id, staff : staff_id, tourist_attraction_features : tourist_attraction_id
[Foreign Keys]: hotels : star_rating_code = ref_hotel_star_ratings : star_rating_code | tourist_attractions : attraction_type_code = ref_attraction_types : attraction_type_code | tourist_attractions : location_id = locations : location_id | street_markets : market_id = tourist_attractions : tourist_attraction_id | shops : shop_id = tourist_attractions : tourist_attraction_id | museums : museum_id = tourist_attractions : tourist_attraction_id | royal_family : royal_family_id = tourist_attractions : tourist_attraction_id | theme_parks : theme_park_id = tourist_attractions : tourist_attraction_id | visits : tourist_id = visitors : tourist_id | visits : tourist_attraction_id = tourist_attractions : tourist_attraction_id | photos : tourist_attraction_id = tourist_attractions : tourist_attraction_id | staff : tourist_attraction_id = tourist_attractions : tourist_attraction_id | tourist_attraction_features : feature_id = features : feature_id | tourist_attraction_features : tourist_attraction_id = tourist_attractions : tourist_attraction_id
cre_Theme_park
SELECT hotel_id , star_rating_code FROM HOTELS ORDER BY price_range ASC
Show the id and star rating of each hotel, ordered by its price from low to high.
[Schema (values) (types)]: | cre_Theme_park | Ref_Hotel_Star_Ratings : star_rating_code (text) , star_rating_description (text) | Locations : location_id (text) , location_name (text) , address (text) , other_details (number) | Ref_Attraction_Types : attraction_type_code (text) , attraction_type_description (text) | Visitors : tourist_id (text) , tourist_details (text) | Features : feature_id (text) , feature_details (text) | Hotels : hotel_id (text) , star_rating_code (text) , pets_allowed_yn (text) , price_range (number) , other_hotel_details (text) | Tourist_Attractions : tourist_attraction_id (text) , attraction_type_code (text) , location_id (text) , how_to_get_there (number) , name (text) , description (text) , opening_hours (text) , other_details (text) | Street_Markets : market_id (text) , market_details (text) | Shops : shop_id (text) , shop_details (text) | Museums : museum_id (text) , museum_details (text) | Royal_Family : royal_family_id (text) , royal_family_details (text) | Theme_Parks : theme_park_id (text) , theme_park_details (text) | Visits : visit_id (text) , tourist_attraction_id (text) , tourist_id (text) , visit_date (number) , visit_details (text) | Photos : photo_id (text) , tourist_attraction_id (text) , name (text) , description (number) , filename (text) , other_details (text) | Staff : staff_id (text) , tourist_attraction_id (text) , name (text) , other_details (number) | Tourist_Attraction_Features : tourist_attraction_id (text) , feature_id (text);
[Primary Keys]: ref_hotel_star_ratings : star_rating_code, locations : location_id, ref_attraction_types : attraction_type_code, visitors : tourist_id, features : feature_id, hotels : hotel_id, tourist_attractions : tourist_attraction_id, street_markets : market_id, shops : shop_id, museums : museum_id, royal_family : royal_family_id, theme_parks : theme_park_id, visits : visit_id, photos : photo_id, staff : staff_id, tourist_attraction_features : tourist_attraction_id
[Foreign Keys]: hotels : star_rating_code = ref_hotel_star_ratings : star_rating_code | tourist_attractions : attraction_type_code = ref_attraction_types : attraction_type_code | tourist_attractions : location_id = locations : location_id | street_markets : market_id = tourist_attractions : tourist_attraction_id | shops : shop_id = tourist_attractions : tourist_attraction_id | museums : museum_id = tourist_attractions : tourist_attraction_id | royal_family : royal_family_id = tourist_attractions : tourist_attraction_id | theme_parks : theme_park_id = tourist_attractions : tourist_attraction_id | visits : tourist_id = visitors : tourist_id | visits : tourist_attraction_id = tourist_attractions : tourist_attraction_id | photos : tourist_attraction_id = tourist_attractions : tourist_attraction_id | staff : tourist_attraction_id = tourist_attractions : tourist_attraction_id | tourist_attraction_features : feature_id = features : feature_id | tourist_attraction_features : tourist_attraction_id = tourist_attractions : tourist_attraction_id
cre_Theme_park
SELECT hotel_id , star_rating_code FROM HOTELS ORDER BY price_range ASC
Find the id and star rating of each hotel and sort them in increasing order of price.
[Schema (values) (types)]: | cre_Theme_park | Ref_Hotel_Star_Ratings : star_rating_code (text) , star_rating_description (text) | Locations : location_id (text) , location_name (text) , address (text) , other_details (number) | Ref_Attraction_Types : attraction_type_code (text) , attraction_type_description (text) | Visitors : tourist_id (text) , tourist_details (text) | Features : feature_id (text) , feature_details (text) | Hotels : hotel_id (text) , star_rating_code (text) , pets_allowed_yn (text) , price_range (number) , other_hotel_details (text) | Tourist_Attractions : tourist_attraction_id (text) , attraction_type_code (text) , location_id (text) , how_to_get_there (number) , name (text) , description (text) , opening_hours (text) , other_details (text) | Street_Markets : market_id (text) , market_details (text) | Shops : shop_id (text) , shop_details (text) | Museums : museum_id (text) , museum_details (text) | Royal_Family : royal_family_id (text) , royal_family_details (text) | Theme_Parks : theme_park_id (text) , theme_park_details (text) | Visits : visit_id (text) , tourist_attraction_id (text) , tourist_id (text) , visit_date (number) , visit_details (text) | Photos : photo_id (text) , tourist_attraction_id (text) , name (text) , description (number) , filename (text) , other_details (text) | Staff : staff_id (text) , tourist_attraction_id (text) , name (text) , other_details (number) | Tourist_Attraction_Features : tourist_attraction_id (text) , feature_id (text);
[Primary Keys]: ref_hotel_star_ratings : star_rating_code, locations : location_id, ref_attraction_types : attraction_type_code, visitors : tourist_id, features : feature_id, hotels : hotel_id, tourist_attractions : tourist_attraction_id, street_markets : market_id, shops : shop_id, museums : museum_id, royal_family : royal_family_id, theme_parks : theme_park_id, visits : visit_id, photos : photo_id, staff : staff_id, tourist_attraction_features : tourist_attraction_id
[Foreign Keys]: hotels : star_rating_code = ref_hotel_star_ratings : star_rating_code | tourist_attractions : attraction_type_code = ref_attraction_types : attraction_type_code | tourist_attractions : location_id = locations : location_id | street_markets : market_id = tourist_attractions : tourist_attraction_id | shops : shop_id = tourist_attractions : tourist_attraction_id | museums : museum_id = tourist_attractions : tourist_attraction_id | royal_family : royal_family_id = tourist_attractions : tourist_attraction_id | theme_parks : theme_park_id = tourist_attractions : tourist_attraction_id | visits : tourist_id = visitors : tourist_id | visits : tourist_attraction_id = tourist_attractions : tourist_attraction_id | photos : tourist_attraction_id = tourist_attractions : tourist_attraction_id | staff : tourist_attraction_id = tourist_attractions : tourist_attraction_id | tourist_attraction_features : feature_id = features : feature_id | tourist_attraction_features : tourist_attraction_id = tourist_attractions : tourist_attraction_id
cre_Theme_park
SELECT other_hotel_details FROM HOTELS ORDER BY price_range DESC LIMIT 3
Show the details of the top 3 most expensive hotels.
[Schema (values) (types)]: | cre_Theme_park | Ref_Hotel_Star_Ratings : star_rating_code (text) , star_rating_description (text) | Locations : location_id (text) , location_name (text) , address (text) , other_details (number) | Ref_Attraction_Types : attraction_type_code (text) , attraction_type_description (text) | Visitors : tourist_id (text) , tourist_details (text) | Features : feature_id (text) , feature_details (text) | Hotels : hotel_id (text) , star_rating_code (text) , pets_allowed_yn (text) , price_range (number) , other_hotel_details (text) | Tourist_Attractions : tourist_attraction_id (text) , attraction_type_code (text) , location_id (text) , how_to_get_there (number) , name (text) , description (text) , opening_hours (text) , other_details (text) | Street_Markets : market_id (text) , market_details (text) | Shops : shop_id (text) , shop_details (text) | Museums : museum_id (text) , museum_details (text) | Royal_Family : royal_family_id (text) , royal_family_details (text) | Theme_Parks : theme_park_id (text) , theme_park_details (text) | Visits : visit_id (text) , tourist_attraction_id (text) , tourist_id (text) , visit_date (number) , visit_details (text) | Photos : photo_id (text) , tourist_attraction_id (text) , name (text) , description (number) , filename (text) , other_details (text) | Staff : staff_id (text) , tourist_attraction_id (text) , name (text) , other_details (number) | Tourist_Attraction_Features : tourist_attraction_id (text) , feature_id (text);
[Primary Keys]: ref_hotel_star_ratings : star_rating_code, locations : location_id, ref_attraction_types : attraction_type_code, visitors : tourist_id, features : feature_id, hotels : hotel_id, tourist_attractions : tourist_attraction_id, street_markets : market_id, shops : shop_id, museums : museum_id, royal_family : royal_family_id, theme_parks : theme_park_id, visits : visit_id, photos : photo_id, staff : staff_id, tourist_attraction_features : tourist_attraction_id
[Foreign Keys]: hotels : star_rating_code = ref_hotel_star_ratings : star_rating_code | tourist_attractions : attraction_type_code = ref_attraction_types : attraction_type_code | tourist_attractions : location_id = locations : location_id | street_markets : market_id = tourist_attractions : tourist_attraction_id | shops : shop_id = tourist_attractions : tourist_attraction_id | museums : museum_id = tourist_attractions : tourist_attraction_id | royal_family : royal_family_id = tourist_attractions : tourist_attraction_id | theme_parks : theme_park_id = tourist_attractions : tourist_attraction_id | visits : tourist_id = visitors : tourist_id | visits : tourist_attraction_id = tourist_attractions : tourist_attraction_id | photos : tourist_attraction_id = tourist_attractions : tourist_attraction_id | staff : tourist_attraction_id = tourist_attractions : tourist_attraction_id | tourist_attraction_features : feature_id = features : feature_id | tourist_attraction_features : tourist_attraction_id = tourist_attractions : tourist_attraction_id
cre_Theme_park
SELECT other_hotel_details FROM HOTELS ORDER BY price_range DESC LIMIT 3
What are the details of the three most expensive hotels?
[Schema (values) (types)]: | cre_Theme_park | Ref_Hotel_Star_Ratings : star_rating_code (text) , star_rating_description (text) | Locations : location_id (text) , location_name (text) , address (text) , other_details (number) | Ref_Attraction_Types : attraction_type_code (text) , attraction_type_description (text) | Visitors : tourist_id (text) , tourist_details (text) | Features : feature_id (text) , feature_details (text) | Hotels : hotel_id (text) , star_rating_code (text) , pets_allowed_yn (text) , price_range (number) , other_hotel_details (text) | Tourist_Attractions : tourist_attraction_id (text) , attraction_type_code (text) , location_id (text) , how_to_get_there (number) , name (text) , description (text) , opening_hours (text) , other_details (text) | Street_Markets : market_id (text) , market_details (text) | Shops : shop_id (text) , shop_details (text) | Museums : museum_id (text) , museum_details (text) | Royal_Family : royal_family_id (text) , royal_family_details (text) | Theme_Parks : theme_park_id (text) , theme_park_details (text) | Visits : visit_id (text) , tourist_attraction_id (text) , tourist_id (text) , visit_date (number) , visit_details (text) | Photos : photo_id (text) , tourist_attraction_id (text) , name (text) , description (number) , filename (text) , other_details (text) | Staff : staff_id (text) , tourist_attraction_id (text) , name (text) , other_details (number) | Tourist_Attraction_Features : tourist_attraction_id (text) , feature_id (text);
[Primary Keys]: ref_hotel_star_ratings : star_rating_code, locations : location_id, ref_attraction_types : attraction_type_code, visitors : tourist_id, features : feature_id, hotels : hotel_id, tourist_attractions : tourist_attraction_id, street_markets : market_id, shops : shop_id, museums : museum_id, royal_family : royal_family_id, theme_parks : theme_park_id, visits : visit_id, photos : photo_id, staff : staff_id, tourist_attraction_features : tourist_attraction_id
[Foreign Keys]: hotels : star_rating_code = ref_hotel_star_ratings : star_rating_code | tourist_attractions : attraction_type_code = ref_attraction_types : attraction_type_code | tourist_attractions : location_id = locations : location_id | street_markets : market_id = tourist_attractions : tourist_attraction_id | shops : shop_id = tourist_attractions : tourist_attraction_id | museums : museum_id = tourist_attractions : tourist_attraction_id | royal_family : royal_family_id = tourist_attractions : tourist_attraction_id | theme_parks : theme_park_id = tourist_attractions : tourist_attraction_id | visits : tourist_id = visitors : tourist_id | visits : tourist_attraction_id = tourist_attractions : tourist_attraction_id | photos : tourist_attraction_id = tourist_attractions : tourist_attraction_id | staff : tourist_attraction_id = tourist_attractions : tourist_attraction_id | tourist_attraction_features : feature_id = features : feature_id | tourist_attraction_features : tourist_attraction_id = tourist_attractions : tourist_attraction_id
cre_Theme_park
SELECT other_hotel_details , star_rating_code FROM HOTELS ORDER BY price_range ASC LIMIT 3
Show the details and star ratings of the 3 least expensive hotels.
[Schema (values) (types)]: | cre_Theme_park | Ref_Hotel_Star_Ratings : star_rating_code (text) , star_rating_description (text) | Locations : location_id (text) , location_name (text) , address (text) , other_details (number) | Ref_Attraction_Types : attraction_type_code (text) , attraction_type_description (text) | Visitors : tourist_id (text) , tourist_details (text) | Features : feature_id (text) , feature_details (text) | Hotels : hotel_id (text) , star_rating_code (text) , pets_allowed_yn (text) , price_range (number) , other_hotel_details (text) | Tourist_Attractions : tourist_attraction_id (text) , attraction_type_code (text) , location_id (text) , how_to_get_there (number) , name (text) , description (text) , opening_hours (text) , other_details (text) | Street_Markets : market_id (text) , market_details (text) | Shops : shop_id (text) , shop_details (text) | Museums : museum_id (text) , museum_details (text) | Royal_Family : royal_family_id (text) , royal_family_details (text) | Theme_Parks : theme_park_id (text) , theme_park_details (text) | Visits : visit_id (text) , tourist_attraction_id (text) , tourist_id (text) , visit_date (number) , visit_details (text) | Photos : photo_id (text) , tourist_attraction_id (text) , name (text) , description (number) , filename (text) , other_details (text) | Staff : staff_id (text) , tourist_attraction_id (text) , name (text) , other_details (number) | Tourist_Attraction_Features : tourist_attraction_id (text) , feature_id (text);
[Primary Keys]: ref_hotel_star_ratings : star_rating_code, locations : location_id, ref_attraction_types : attraction_type_code, visitors : tourist_id, features : feature_id, hotels : hotel_id, tourist_attractions : tourist_attraction_id, street_markets : market_id, shops : shop_id, museums : museum_id, royal_family : royal_family_id, theme_parks : theme_park_id, visits : visit_id, photos : photo_id, staff : staff_id, tourist_attraction_features : tourist_attraction_id
[Foreign Keys]: hotels : star_rating_code = ref_hotel_star_ratings : star_rating_code | tourist_attractions : attraction_type_code = ref_attraction_types : attraction_type_code | tourist_attractions : location_id = locations : location_id | street_markets : market_id = tourist_attractions : tourist_attraction_id | shops : shop_id = tourist_attractions : tourist_attraction_id | museums : museum_id = tourist_attractions : tourist_attraction_id | royal_family : royal_family_id = tourist_attractions : tourist_attraction_id | theme_parks : theme_park_id = tourist_attractions : tourist_attraction_id | visits : tourist_id = visitors : tourist_id | visits : tourist_attraction_id = tourist_attractions : tourist_attraction_id | photos : tourist_attraction_id = tourist_attractions : tourist_attraction_id | staff : tourist_attraction_id = tourist_attractions : tourist_attraction_id | tourist_attraction_features : feature_id = features : feature_id | tourist_attraction_features : tourist_attraction_id = tourist_attractions : tourist_attraction_id
cre_Theme_park
SELECT other_hotel_details , star_rating_code FROM HOTELS ORDER BY price_range ASC LIMIT 3
What are the details and star ratings of the three hotels with the lowest price ranges?
[Schema (values) (types)]: | cre_Theme_park | Ref_Hotel_Star_Ratings : star_rating_code (text) , star_rating_description (text) | Locations : location_id (text) , location_name (text) , address (text) , other_details (number) | Ref_Attraction_Types : attraction_type_code (text) , attraction_type_description (text) | Visitors : tourist_id (text) , tourist_details (text) | Features : feature_id (text) , feature_details (text) | Hotels : hotel_id (text) , star_rating_code (text) , pets_allowed_yn (text) , price_range (number) , other_hotel_details (text) | Tourist_Attractions : tourist_attraction_id (text) , attraction_type_code (text) , location_id (text) , how_to_get_there (number) , name (text) , description (text) , opening_hours (text) , other_details (text) | Street_Markets : market_id (text) , market_details (text) | Shops : shop_id (text) , shop_details (text) | Museums : museum_id (text) , museum_details (text) | Royal_Family : royal_family_id (text) , royal_family_details (text) | Theme_Parks : theme_park_id (text) , theme_park_details (text) | Visits : visit_id (text) , tourist_attraction_id (text) , tourist_id (text) , visit_date (number) , visit_details (text) | Photos : photo_id (text) , tourist_attraction_id (text) , name (text) , description (number) , filename (text) , other_details (text) | Staff : staff_id (text) , tourist_attraction_id (text) , name (text) , other_details (number) | Tourist_Attraction_Features : tourist_attraction_id (text) , feature_id (text);
[Primary Keys]: ref_hotel_star_ratings : star_rating_code, locations : location_id, ref_attraction_types : attraction_type_code, visitors : tourist_id, features : feature_id, hotels : hotel_id, tourist_attractions : tourist_attraction_id, street_markets : market_id, shops : shop_id, museums : museum_id, royal_family : royal_family_id, theme_parks : theme_park_id, visits : visit_id, photos : photo_id, staff : staff_id, tourist_attraction_features : tourist_attraction_id
[Foreign Keys]: hotels : star_rating_code = ref_hotel_star_ratings : star_rating_code | tourist_attractions : attraction_type_code = ref_attraction_types : attraction_type_code | tourist_attractions : location_id = locations : location_id | street_markets : market_id = tourist_attractions : tourist_attraction_id | shops : shop_id = tourist_attractions : tourist_attraction_id | museums : museum_id = tourist_attractions : tourist_attraction_id | royal_family : royal_family_id = tourist_attractions : tourist_attraction_id | theme_parks : theme_park_id = tourist_attractions : tourist_attraction_id | visits : tourist_id = visitors : tourist_id | visits : tourist_attraction_id = tourist_attractions : tourist_attraction_id | photos : tourist_attraction_id = tourist_attractions : tourist_attraction_id | staff : tourist_attraction_id = tourist_attractions : tourist_attraction_id | tourist_attraction_features : feature_id = features : feature_id | tourist_attraction_features : tourist_attraction_id = tourist_attractions : tourist_attraction_id
cre_Theme_park
SELECT How_to_Get_There FROM Tourist_Attractions GROUP BY How_to_Get_There ORDER BY COUNT(*) DESC LIMIT 1
Show the transportation method most people choose to get to tourist attractions.
[Schema (values) (types)]: | cre_Theme_park | Ref_Hotel_Star_Ratings : star_rating_code (text) , star_rating_description (text) | Locations : location_id (text) , location_name (text) , address (text) , other_details (number) | Ref_Attraction_Types : attraction_type_code (text) , attraction_type_description (text) | Visitors : tourist_id (text) , tourist_details (text) | Features : feature_id (text) , feature_details (text) | Hotels : hotel_id (text) , star_rating_code (text) , pets_allowed_yn (text) , price_range (number) , other_hotel_details (text) | Tourist_Attractions : tourist_attraction_id (text) , attraction_type_code (text) , location_id (text) , how_to_get_there (number) , name (text) , description (text) , opening_hours (text) , other_details (text) | Street_Markets : market_id (text) , market_details (text) | Shops : shop_id (text) , shop_details (text) | Museums : museum_id (text) , museum_details (text) | Royal_Family : royal_family_id (text) , royal_family_details (text) | Theme_Parks : theme_park_id (text) , theme_park_details (text) | Visits : visit_id (text) , tourist_attraction_id (text) , tourist_id (text) , visit_date (number) , visit_details (text) | Photos : photo_id (text) , tourist_attraction_id (text) , name (text) , description (number) , filename (text) , other_details (text) | Staff : staff_id (text) , tourist_attraction_id (text) , name (text) , other_details (number) | Tourist_Attraction_Features : tourist_attraction_id (text) , feature_id (text);
[Primary Keys]: ref_hotel_star_ratings : star_rating_code, locations : location_id, ref_attraction_types : attraction_type_code, visitors : tourist_id, features : feature_id, hotels : hotel_id, tourist_attractions : tourist_attraction_id, street_markets : market_id, shops : shop_id, museums : museum_id, royal_family : royal_family_id, theme_parks : theme_park_id, visits : visit_id, photos : photo_id, staff : staff_id, tourist_attraction_features : tourist_attraction_id
[Foreign Keys]: hotels : star_rating_code = ref_hotel_star_ratings : star_rating_code | tourist_attractions : attraction_type_code = ref_attraction_types : attraction_type_code | tourist_attractions : location_id = locations : location_id | street_markets : market_id = tourist_attractions : tourist_attraction_id | shops : shop_id = tourist_attractions : tourist_attraction_id | museums : museum_id = tourist_attractions : tourist_attraction_id | royal_family : royal_family_id = tourist_attractions : tourist_attraction_id | theme_parks : theme_park_id = tourist_attractions : tourist_attraction_id | visits : tourist_id = visitors : tourist_id | visits : tourist_attraction_id = tourist_attractions : tourist_attraction_id | photos : tourist_attraction_id = tourist_attractions : tourist_attraction_id | staff : tourist_attraction_id = tourist_attractions : tourist_attraction_id | tourist_attraction_features : feature_id = features : feature_id | tourist_attraction_features : tourist_attraction_id = tourist_attractions : tourist_attraction_id
cre_Theme_park
SELECT How_to_Get_There FROM Tourist_Attractions GROUP BY How_to_Get_There ORDER BY COUNT(*) DESC LIMIT 1
Which transportation method is used the most often to get to tourist attractions?
[Schema (values) (types)]: | cre_Theme_park | Ref_Hotel_Star_Ratings : star_rating_code (text) , star_rating_description (text) | Locations : location_id (text) , location_name (text) , address (text) , other_details (number) | Ref_Attraction_Types : attraction_type_code (text) , attraction_type_description (text) | Visitors : tourist_id (text) , tourist_details (text) | Features : feature_id (text) , feature_details (text) | Hotels : hotel_id (text) , star_rating_code (text) , pets_allowed_yn (text) , price_range (number) , other_hotel_details (text) | Tourist_Attractions : tourist_attraction_id (text) , attraction_type_code (text) , location_id (text) , how_to_get_there (number) , name (text) , description (text) , opening_hours (text) , other_details (text) | Street_Markets : market_id (text) , market_details (text) | Shops : shop_id (text) , shop_details (text) | Museums : museum_id (text) , museum_details (text) | Royal_Family : royal_family_id (text) , royal_family_details (text) | Theme_Parks : theme_park_id (text) , theme_park_details (text) | Visits : visit_id (text) , tourist_attraction_id (text) , tourist_id (text) , visit_date (number) , visit_details (text) | Photos : photo_id (text) , tourist_attraction_id (text) , name (text) , description (number) , filename (text) , other_details (text) | Staff : staff_id (text) , tourist_attraction_id (text) , name (text) , other_details (number) | Tourist_Attraction_Features : tourist_attraction_id (text) , feature_id (text);
[Primary Keys]: ref_hotel_star_ratings : star_rating_code, locations : location_id, ref_attraction_types : attraction_type_code, visitors : tourist_id, features : feature_id, hotels : hotel_id, tourist_attractions : tourist_attraction_id, street_markets : market_id, shops : shop_id, museums : museum_id, royal_family : royal_family_id, theme_parks : theme_park_id, visits : visit_id, photos : photo_id, staff : staff_id, tourist_attraction_features : tourist_attraction_id
[Foreign Keys]: hotels : star_rating_code = ref_hotel_star_ratings : star_rating_code | tourist_attractions : attraction_type_code = ref_attraction_types : attraction_type_code | tourist_attractions : location_id = locations : location_id | street_markets : market_id = tourist_attractions : tourist_attraction_id | shops : shop_id = tourist_attractions : tourist_attraction_id | museums : museum_id = tourist_attractions : tourist_attraction_id | royal_family : royal_family_id = tourist_attractions : tourist_attraction_id | theme_parks : theme_park_id = tourist_attractions : tourist_attraction_id | visits : tourist_id = visitors : tourist_id | visits : tourist_attraction_id = tourist_attractions : tourist_attraction_id | photos : tourist_attraction_id = tourist_attractions : tourist_attraction_id | staff : tourist_attraction_id = tourist_attractions : tourist_attraction_id | tourist_attraction_features : feature_id = features : feature_id | tourist_attraction_features : tourist_attraction_id = tourist_attractions : tourist_attraction_id
cre_Theme_park
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
Show the description and code of the attraction type most tourist attractions belong to.
[Schema (values) (types)]: | cre_Theme_park | Ref_Hotel_Star_Ratings : star_rating_code (text) , star_rating_description (text) | Locations : location_id (text) , location_name (text) , address (text) , other_details (number) | Ref_Attraction_Types : attraction_type_code (text) , attraction_type_description (text) | Visitors : tourist_id (text) , tourist_details (text) | Features : feature_id (text) , feature_details (text) | Hotels : hotel_id (text) , star_rating_code (text) , pets_allowed_yn (text) , price_range (number) , other_hotel_details (text) | Tourist_Attractions : tourist_attraction_id (text) , attraction_type_code (text) , location_id (text) , how_to_get_there (number) , name (text) , description (text) , opening_hours (text) , other_details (text) | Street_Markets : market_id (text) , market_details (text) | Shops : shop_id (text) , shop_details (text) | Museums : museum_id (text) , museum_details (text) | Royal_Family : royal_family_id (text) , royal_family_details (text) | Theme_Parks : theme_park_id (text) , theme_park_details (text) | Visits : visit_id (text) , tourist_attraction_id (text) , tourist_id (text) , visit_date (number) , visit_details (text) | Photos : photo_id (text) , tourist_attraction_id (text) , name (text) , description (number) , filename (text) , other_details (text) | Staff : staff_id (text) , tourist_attraction_id (text) , name (text) , other_details (number) | Tourist_Attraction_Features : tourist_attraction_id (text) , feature_id (text);
[Primary Keys]: ref_hotel_star_ratings : star_rating_code, locations : location_id, ref_attraction_types : attraction_type_code, visitors : tourist_id, features : feature_id, hotels : hotel_id, tourist_attractions : tourist_attraction_id, street_markets : market_id, shops : shop_id, museums : museum_id, royal_family : royal_family_id, theme_parks : theme_park_id, visits : visit_id, photos : photo_id, staff : staff_id, tourist_attraction_features : tourist_attraction_id
[Foreign Keys]: hotels : star_rating_code = ref_hotel_star_ratings : star_rating_code | tourist_attractions : attraction_type_code = ref_attraction_types : attraction_type_code | tourist_attractions : location_id = locations : location_id | street_markets : market_id = tourist_attractions : tourist_attraction_id | shops : shop_id = tourist_attractions : tourist_attraction_id | museums : museum_id = tourist_attractions : tourist_attraction_id | royal_family : royal_family_id = tourist_attractions : tourist_attraction_id | theme_parks : theme_park_id = tourist_attractions : tourist_attraction_id | visits : tourist_id = visitors : tourist_id | visits : tourist_attraction_id = tourist_attractions : tourist_attraction_id | photos : tourist_attraction_id = tourist_attractions : tourist_attraction_id | staff : tourist_attraction_id = tourist_attractions : tourist_attraction_id | tourist_attraction_features : feature_id = features : feature_id | tourist_attraction_features : tourist_attraction_id = tourist_attractions : tourist_attraction_id
cre_Theme_park
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
Which attraction type does the most tourist attractions belong to? Tell me its attraction type description and code.
[Schema (values) (types)]: | cre_Theme_park | Ref_Hotel_Star_Ratings : star_rating_code (text) , star_rating_description (text) | Locations : location_id (text) , location_name (text) , address (text) , other_details (number) | Ref_Attraction_Types : attraction_type_code (text) , attraction_type_description (text) | Visitors : tourist_id (text) , tourist_details (text) | Features : feature_id (text) , feature_details (text) | Hotels : hotel_id (text) , star_rating_code (text) , pets_allowed_yn (text) , price_range (number) , other_hotel_details (text) | Tourist_Attractions : tourist_attraction_id (text) , attraction_type_code (text) , location_id (text) , how_to_get_there (number) , name (text) , description (text) , opening_hours (text) , other_details (text) | Street_Markets : market_id (text) , market_details (text) | Shops : shop_id (text) , shop_details (text) | Museums : museum_id (text) , museum_details (text) | Royal_Family : royal_family_id (text) , royal_family_details (text) | Theme_Parks : theme_park_id (text) , theme_park_details (text) | Visits : visit_id (text) , tourist_attraction_id (text) , tourist_id (text) , visit_date (number) , visit_details (text) | Photos : photo_id (text) , tourist_attraction_id (text) , name (text) , description (number) , filename (text) , other_details (text) | Staff : staff_id (text) , tourist_attraction_id (text) , name (text) , other_details (number) | Tourist_Attraction_Features : tourist_attraction_id (text) , feature_id (text);
[Primary Keys]: ref_hotel_star_ratings : star_rating_code, locations : location_id, ref_attraction_types : attraction_type_code, visitors : tourist_id, features : feature_id, hotels : hotel_id, tourist_attractions : tourist_attraction_id, street_markets : market_id, shops : shop_id, museums : museum_id, royal_family : royal_family_id, theme_parks : theme_park_id, visits : visit_id, photos : photo_id, staff : staff_id, tourist_attraction_features : tourist_attraction_id
[Foreign Keys]: hotels : star_rating_code = ref_hotel_star_ratings : star_rating_code | tourist_attractions : attraction_type_code = ref_attraction_types : attraction_type_code | tourist_attractions : location_id = locations : location_id | street_markets : market_id = tourist_attractions : tourist_attraction_id | shops : shop_id = tourist_attractions : tourist_attraction_id | museums : museum_id = tourist_attractions : tourist_attraction_id | royal_family : royal_family_id = tourist_attractions : tourist_attraction_id | theme_parks : theme_park_id = tourist_attractions : tourist_attraction_id | visits : tourist_id = visitors : tourist_id | visits : tourist_attraction_id = tourist_attractions : tourist_attraction_id | photos : tourist_attraction_id = tourist_attractions : tourist_attraction_id | staff : tourist_attraction_id = tourist_attractions : tourist_attraction_id | tourist_attraction_features : feature_id = features : feature_id | tourist_attraction_features : tourist_attraction_id = tourist_attractions : tourist_attraction_id
cre_Theme_park
SELECT How_to_Get_There , COUNT(*) FROM Tourist_Attractions GROUP BY How_to_Get_There
Show different ways to get to attractions and the number of attractions that can be accessed in the corresponding way.
[Schema (values) (types)]: | cre_Theme_park | Ref_Hotel_Star_Ratings : star_rating_code (text) , star_rating_description (text) | Locations : location_id (text) , location_name (text) , address (text) , other_details (number) | Ref_Attraction_Types : attraction_type_code (text) , attraction_type_description (text) | Visitors : tourist_id (text) , tourist_details (text) | Features : feature_id (text) , feature_details (text) | Hotels : hotel_id (text) , star_rating_code (text) , pets_allowed_yn (text) , price_range (number) , other_hotel_details (text) | Tourist_Attractions : tourist_attraction_id (text) , attraction_type_code (text) , location_id (text) , how_to_get_there (number) , name (text) , description (text) , opening_hours (text) , other_details (text) | Street_Markets : market_id (text) , market_details (text) | Shops : shop_id (text) , shop_details (text) | Museums : museum_id (text) , museum_details (text) | Royal_Family : royal_family_id (text) , royal_family_details (text) | Theme_Parks : theme_park_id (text) , theme_park_details (text) | Visits : visit_id (text) , tourist_attraction_id (text) , tourist_id (text) , visit_date (number) , visit_details (text) | Photos : photo_id (text) , tourist_attraction_id (text) , name (text) , description (number) , filename (text) , other_details (text) | Staff : staff_id (text) , tourist_attraction_id (text) , name (text) , other_details (number) | Tourist_Attraction_Features : tourist_attraction_id (text) , feature_id (text);
[Primary Keys]: ref_hotel_star_ratings : star_rating_code, locations : location_id, ref_attraction_types : attraction_type_code, visitors : tourist_id, features : feature_id, hotels : hotel_id, tourist_attractions : tourist_attraction_id, street_markets : market_id, shops : shop_id, museums : museum_id, royal_family : royal_family_id, theme_parks : theme_park_id, visits : visit_id, photos : photo_id, staff : staff_id, tourist_attraction_features : tourist_attraction_id
[Foreign Keys]: hotels : star_rating_code = ref_hotel_star_ratings : star_rating_code | tourist_attractions : attraction_type_code = ref_attraction_types : attraction_type_code | tourist_attractions : location_id = locations : location_id | street_markets : market_id = tourist_attractions : tourist_attraction_id | shops : shop_id = tourist_attractions : tourist_attraction_id | museums : museum_id = tourist_attractions : tourist_attraction_id | royal_family : royal_family_id = tourist_attractions : tourist_attraction_id | theme_parks : theme_park_id = tourist_attractions : tourist_attraction_id | visits : tourist_id = visitors : tourist_id | visits : tourist_attraction_id = tourist_attractions : tourist_attraction_id | photos : tourist_attraction_id = tourist_attractions : tourist_attraction_id | staff : tourist_attraction_id = tourist_attractions : tourist_attraction_id | tourist_attraction_features : feature_id = features : feature_id | tourist_attraction_features : tourist_attraction_id = tourist_attractions : tourist_attraction_id
cre_Theme_park
SELECT How_to_Get_There , COUNT(*) FROM Tourist_Attractions GROUP BY How_to_Get_There
List all the possible ways to get to attractions, together with the number of attractions accessible by these methods.
[Schema (values) (types)]: | cre_Theme_park | Ref_Hotel_Star_Ratings : star_rating_code (text) , star_rating_description (text) | Locations : location_id (text) , location_name (text) , address (text) , other_details (number) | Ref_Attraction_Types : attraction_type_code (text) , attraction_type_description (text) | Visitors : tourist_id (text) , tourist_details (text) | Features : feature_id (text) , feature_details (text) | Hotels : hotel_id (text) , star_rating_code (text) , pets_allowed_yn (text) , price_range (number) , other_hotel_details (text) | Tourist_Attractions : tourist_attraction_id (text) , attraction_type_code (text) , location_id (text) , how_to_get_there (number) , name (text) , description (text) , opening_hours (text) , other_details (text) | Street_Markets : market_id (text) , market_details (text) | Shops : shop_id (text) , shop_details (text) | Museums : museum_id (text) , museum_details (text) | Royal_Family : royal_family_id (text) , royal_family_details (text) | Theme_Parks : theme_park_id (text) , theme_park_details (text) | Visits : visit_id (text) , tourist_attraction_id (text) , tourist_id (text) , visit_date (number) , visit_details (text) | Photos : photo_id (text) , tourist_attraction_id (text) , name (text) , description (number) , filename (text) , other_details (text) | Staff : staff_id (text) , tourist_attraction_id (text) , name (text) , other_details (number) | Tourist_Attraction_Features : tourist_attraction_id (text) , feature_id (text);
[Primary Keys]: ref_hotel_star_ratings : star_rating_code, locations : location_id, ref_attraction_types : attraction_type_code, visitors : tourist_id, features : feature_id, hotels : hotel_id, tourist_attractions : tourist_attraction_id, street_markets : market_id, shops : shop_id, museums : museum_id, royal_family : royal_family_id, theme_parks : theme_park_id, visits : visit_id, photos : photo_id, staff : staff_id, tourist_attraction_features : tourist_attraction_id
[Foreign Keys]: hotels : star_rating_code = ref_hotel_star_ratings : star_rating_code | tourist_attractions : attraction_type_code = ref_attraction_types : attraction_type_code | tourist_attractions : location_id = locations : location_id | street_markets : market_id = tourist_attractions : tourist_attraction_id | shops : shop_id = tourist_attractions : tourist_attraction_id | museums : museum_id = tourist_attractions : tourist_attraction_id | royal_family : royal_family_id = tourist_attractions : tourist_attraction_id | theme_parks : theme_park_id = tourist_attractions : tourist_attraction_id | visits : tourist_id = visitors : tourist_id | visits : tourist_attraction_id = tourist_attractions : tourist_attraction_id | photos : tourist_attraction_id = tourist_attractions : tourist_attraction_id | staff : tourist_attraction_id = tourist_attractions : tourist_attraction_id | tourist_attraction_features : feature_id = features : feature_id | tourist_attraction_features : tourist_attraction_id = tourist_attractions : tourist_attraction_id
cre_Theme_park
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
Show different tourist attractions' names, ids, and the corresponding number of visits.
[Schema (values) (types)]: | cre_Theme_park | Ref_Hotel_Star_Ratings : star_rating_code (text) , star_rating_description (text) | Locations : location_id (text) , location_name (text) , address (text) , other_details (number) | Ref_Attraction_Types : attraction_type_code (text) , attraction_type_description (text) | Visitors : tourist_id (text) , tourist_details (text) | Features : feature_id (text) , feature_details (text) | Hotels : hotel_id (text) , star_rating_code (text) , pets_allowed_yn (text) , price_range (number) , other_hotel_details (text) | Tourist_Attractions : tourist_attraction_id (text) , attraction_type_code (text) , location_id (text) , how_to_get_there (number) , name (text) , description (text) , opening_hours (text) , other_details (text) | Street_Markets : market_id (text) , market_details (text) | Shops : shop_id (text) , shop_details (text) | Museums : museum_id (text) , museum_details (text) | Royal_Family : royal_family_id (text) , royal_family_details (text) | Theme_Parks : theme_park_id (text) , theme_park_details (text) | Visits : visit_id (text) , tourist_attraction_id (text) , tourist_id (text) , visit_date (number) , visit_details (text) | Photos : photo_id (text) , tourist_attraction_id (text) , name (text) , description (number) , filename (text) , other_details (text) | Staff : staff_id (text) , tourist_attraction_id (text) , name (text) , other_details (number) | Tourist_Attraction_Features : tourist_attraction_id (text) , feature_id (text);
[Primary Keys]: ref_hotel_star_ratings : star_rating_code, locations : location_id, ref_attraction_types : attraction_type_code, visitors : tourist_id, features : feature_id, hotels : hotel_id, tourist_attractions : tourist_attraction_id, street_markets : market_id, shops : shop_id, museums : museum_id, royal_family : royal_family_id, theme_parks : theme_park_id, visits : visit_id, photos : photo_id, staff : staff_id, tourist_attraction_features : tourist_attraction_id
[Foreign Keys]: hotels : star_rating_code = ref_hotel_star_ratings : star_rating_code | tourist_attractions : attraction_type_code = ref_attraction_types : attraction_type_code | tourist_attractions : location_id = locations : location_id | street_markets : market_id = tourist_attractions : tourist_attraction_id | shops : shop_id = tourist_attractions : tourist_attraction_id | museums : museum_id = tourist_attractions : tourist_attraction_id | royal_family : royal_family_id = tourist_attractions : tourist_attraction_id | theme_parks : theme_park_id = tourist_attractions : tourist_attraction_id | visits : tourist_id = visitors : tourist_id | visits : tourist_attraction_id = tourist_attractions : tourist_attraction_id | photos : tourist_attraction_id = tourist_attractions : tourist_attraction_id | staff : tourist_attraction_id = tourist_attractions : tourist_attraction_id | tourist_attraction_features : feature_id = features : feature_id | tourist_attraction_features : tourist_attraction_id = tourist_attractions : tourist_attraction_id
cre_Theme_park
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
What are the name, id and the corresponding number of visits for each tourist attraction?
[Schema (values) (types)]: | cre_Theme_park | Ref_Hotel_Star_Ratings : star_rating_code (text) , star_rating_description (text) | Locations : location_id (text) , location_name (text) , address (text) , other_details (number) | Ref_Attraction_Types : attraction_type_code (text) , attraction_type_description (text) | Visitors : tourist_id (text) , tourist_details (text) | Features : feature_id (text) , feature_details (text) | Hotels : hotel_id (text) , star_rating_code (text) , pets_allowed_yn (text) , price_range (number) , other_hotel_details (text) | Tourist_Attractions : tourist_attraction_id (text) , attraction_type_code (text) , location_id (text) , how_to_get_there (number) , name (text) , description (text) , opening_hours (text) , other_details (text) | Street_Markets : market_id (text) , market_details (text) | Shops : shop_id (text) , shop_details (text) | Museums : museum_id (text) , museum_details (text) | Royal_Family : royal_family_id (text) , royal_family_details (text) | Theme_Parks : theme_park_id (text) , theme_park_details (text) | Visits : visit_id (text) , tourist_attraction_id (text) , tourist_id (text) , visit_date (number) , visit_details (text) | Photos : photo_id (text) , tourist_attraction_id (text) , name (text) , description (number) , filename (text) , other_details (text) | Staff : staff_id (text) , tourist_attraction_id (text) , name (text) , other_details (number) | Tourist_Attraction_Features : tourist_attraction_id (text) , feature_id (text);
[Primary Keys]: ref_hotel_star_ratings : star_rating_code, locations : location_id, ref_attraction_types : attraction_type_code, visitors : tourist_id, features : feature_id, hotels : hotel_id, tourist_attractions : tourist_attraction_id, street_markets : market_id, shops : shop_id, museums : museum_id, royal_family : royal_family_id, theme_parks : theme_park_id, visits : visit_id, photos : photo_id, staff : staff_id, tourist_attraction_features : tourist_attraction_id
[Foreign Keys]: hotels : star_rating_code = ref_hotel_star_ratings : star_rating_code | tourist_attractions : attraction_type_code = ref_attraction_types : attraction_type_code | tourist_attractions : location_id = locations : location_id | street_markets : market_id = tourist_attractions : tourist_attraction_id | shops : shop_id = tourist_attractions : tourist_attraction_id | museums : museum_id = tourist_attractions : tourist_attraction_id | royal_family : royal_family_id = tourist_attractions : tourist_attraction_id | theme_parks : theme_park_id = tourist_attractions : tourist_attraction_id | visits : tourist_id = visitors : tourist_id | visits : tourist_attraction_id = tourist_attractions : tourist_attraction_id | photos : tourist_attraction_id = tourist_attractions : tourist_attraction_id | staff : tourist_attraction_id = tourist_attractions : tourist_attraction_id | tourist_attraction_features : feature_id = features : feature_id | tourist_attraction_features : tourist_attraction_id = tourist_attractions : tourist_attraction_id
cre_Theme_park
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
Show the names and ids of tourist attractions that are visited at least two times.
[Schema (values) (types)]: | cre_Theme_park | Ref_Hotel_Star_Ratings : star_rating_code (text) , star_rating_description (text) | Locations : location_id (text) , location_name (text) , address (text) , other_details (number) | Ref_Attraction_Types : attraction_type_code (text) , attraction_type_description (text) | Visitors : tourist_id (text) , tourist_details (text) | Features : feature_id (text) , feature_details (text) | Hotels : hotel_id (text) , star_rating_code (text) , pets_allowed_yn (text) , price_range (number) , other_hotel_details (text) | Tourist_Attractions : tourist_attraction_id (text) , attraction_type_code (text) , location_id (text) , how_to_get_there (number) , name (text) , description (text) , opening_hours (text) , other_details (text) | Street_Markets : market_id (text) , market_details (text) | Shops : shop_id (text) , shop_details (text) | Museums : museum_id (text) , museum_details (text) | Royal_Family : royal_family_id (text) , royal_family_details (text) | Theme_Parks : theme_park_id (text) , theme_park_details (text) | Visits : visit_id (text) , tourist_attraction_id (text) , tourist_id (text) , visit_date (number) , visit_details (text) | Photos : photo_id (text) , tourist_attraction_id (text) , name (text) , description (number) , filename (text) , other_details (text) | Staff : staff_id (text) , tourist_attraction_id (text) , name (text) , other_details (number) | Tourist_Attraction_Features : tourist_attraction_id (text) , feature_id (text);
[Primary Keys]: ref_hotel_star_ratings : star_rating_code, locations : location_id, ref_attraction_types : attraction_type_code, visitors : tourist_id, features : feature_id, hotels : hotel_id, tourist_attractions : tourist_attraction_id, street_markets : market_id, shops : shop_id, museums : museum_id, royal_family : royal_family_id, theme_parks : theme_park_id, visits : visit_id, photos : photo_id, staff : staff_id, tourist_attraction_features : tourist_attraction_id
[Foreign Keys]: hotels : star_rating_code = ref_hotel_star_ratings : star_rating_code | tourist_attractions : attraction_type_code = ref_attraction_types : attraction_type_code | tourist_attractions : location_id = locations : location_id | street_markets : market_id = tourist_attractions : tourist_attraction_id | shops : shop_id = tourist_attractions : tourist_attraction_id | museums : museum_id = tourist_attractions : tourist_attraction_id | royal_family : royal_family_id = tourist_attractions : tourist_attraction_id | theme_parks : theme_park_id = tourist_attractions : tourist_attraction_id | visits : tourist_id = visitors : tourist_id | visits : tourist_attraction_id = tourist_attractions : tourist_attraction_id | photos : tourist_attraction_id = tourist_attractions : tourist_attraction_id | staff : tourist_attraction_id = tourist_attractions : tourist_attraction_id | tourist_attraction_features : feature_id = features : feature_id | tourist_attraction_features : tourist_attraction_id = tourist_attractions : tourist_attraction_id
cre_Theme_park
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
Which tourist attractions are visited at least twice? Give me their names and ids.
[Schema (values) (types)]: | cre_Theme_park | Ref_Hotel_Star_Ratings : star_rating_code (text) , star_rating_description (text) | Locations : location_id (text) , location_name (text) , address (text) , other_details (number) | Ref_Attraction_Types : attraction_type_code (text) , attraction_type_description (text) | Visitors : tourist_id (text) , tourist_details (text) | Features : feature_id (text) , feature_details (text) | Hotels : hotel_id (text) , star_rating_code (text) , pets_allowed_yn (text) , price_range (number) , other_hotel_details (text) | Tourist_Attractions : tourist_attraction_id (text) , attraction_type_code (text) , location_id (text) , how_to_get_there (number) , name (text) , description (text) , opening_hours (text) , other_details (text) | Street_Markets : market_id (text) , market_details (text) | Shops : shop_id (text) , shop_details (text) | Museums : museum_id (text) , museum_details (text) | Royal_Family : royal_family_id (text) , royal_family_details (text) | Theme_Parks : theme_park_id (text) , theme_park_details (text) | Visits : visit_id (text) , tourist_attraction_id (text) , tourist_id (text) , visit_date (number) , visit_details (text) | Photos : photo_id (text) , tourist_attraction_id (text) , name (text) , description (number) , filename (text) , other_details (text) | Staff : staff_id (text) , tourist_attraction_id (text) , name (text) , other_details (number) | Tourist_Attraction_Features : tourist_attraction_id (text) , feature_id (text);
[Primary Keys]: ref_hotel_star_ratings : star_rating_code, locations : location_id, ref_attraction_types : attraction_type_code, visitors : tourist_id, features : feature_id, hotels : hotel_id, tourist_attractions : tourist_attraction_id, street_markets : market_id, shops : shop_id, museums : museum_id, royal_family : royal_family_id, theme_parks : theme_park_id, visits : visit_id, photos : photo_id, staff : staff_id, tourist_attraction_features : tourist_attraction_id
[Foreign Keys]: hotels : star_rating_code = ref_hotel_star_ratings : star_rating_code | tourist_attractions : attraction_type_code = ref_attraction_types : attraction_type_code | tourist_attractions : location_id = locations : location_id | street_markets : market_id = tourist_attractions : tourist_attraction_id | shops : shop_id = tourist_attractions : tourist_attraction_id | museums : museum_id = tourist_attractions : tourist_attraction_id | royal_family : royal_family_id = tourist_attractions : tourist_attraction_id | theme_parks : theme_park_id = tourist_attractions : tourist_attraction_id | visits : tourist_id = visitors : tourist_id | visits : tourist_attraction_id = tourist_attractions : tourist_attraction_id | photos : tourist_attraction_id = tourist_attractions : tourist_attraction_id | staff : tourist_attraction_id = tourist_attractions : tourist_attraction_id | tourist_attraction_features : feature_id = features : feature_id | tourist_attraction_features : tourist_attraction_id = tourist_attractions : tourist_attraction_id
cre_Theme_park
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
Show the names and ids of tourist attractions that are visited at most once.
[Schema (values) (types)]: | cre_Theme_park | Ref_Hotel_Star_Ratings : star_rating_code (text) , star_rating_description (text) | Locations : location_id (text) , location_name (text) , address (text) , other_details (number) | Ref_Attraction_Types : attraction_type_code (text) , attraction_type_description (text) | Visitors : tourist_id (text) , tourist_details (text) | Features : feature_id (text) , feature_details (text) | Hotels : hotel_id (text) , star_rating_code (text) , pets_allowed_yn (text) , price_range (number) , other_hotel_details (text) | Tourist_Attractions : tourist_attraction_id (text) , attraction_type_code (text) , location_id (text) , how_to_get_there (number) , name (text) , description (text) , opening_hours (text) , other_details (text) | Street_Markets : market_id (text) , market_details (text) | Shops : shop_id (text) , shop_details (text) | Museums : museum_id (text) , museum_details (text) | Royal_Family : royal_family_id (text) , royal_family_details (text) | Theme_Parks : theme_park_id (text) , theme_park_details (text) | Visits : visit_id (text) , tourist_attraction_id (text) , tourist_id (text) , visit_date (number) , visit_details (text) | Photos : photo_id (text) , tourist_attraction_id (text) , name (text) , description (number) , filename (text) , other_details (text) | Staff : staff_id (text) , tourist_attraction_id (text) , name (text) , other_details (number) | Tourist_Attraction_Features : tourist_attraction_id (text) , feature_id (text);
[Primary Keys]: ref_hotel_star_ratings : star_rating_code, locations : location_id, ref_attraction_types : attraction_type_code, visitors : tourist_id, features : feature_id, hotels : hotel_id, tourist_attractions : tourist_attraction_id, street_markets : market_id, shops : shop_id, museums : museum_id, royal_family : royal_family_id, theme_parks : theme_park_id, visits : visit_id, photos : photo_id, staff : staff_id, tourist_attraction_features : tourist_attraction_id
[Foreign Keys]: hotels : star_rating_code = ref_hotel_star_ratings : star_rating_code | tourist_attractions : attraction_type_code = ref_attraction_types : attraction_type_code | tourist_attractions : location_id = locations : location_id | street_markets : market_id = tourist_attractions : tourist_attraction_id | shops : shop_id = tourist_attractions : tourist_attraction_id | museums : museum_id = tourist_attractions : tourist_attraction_id | royal_family : royal_family_id = tourist_attractions : tourist_attraction_id | theme_parks : theme_park_id = tourist_attractions : tourist_attraction_id | visits : tourist_id = visitors : tourist_id | visits : tourist_attraction_id = tourist_attractions : tourist_attraction_id | photos : tourist_attraction_id = tourist_attractions : tourist_attraction_id | staff : tourist_attraction_id = tourist_attractions : tourist_attraction_id | tourist_attraction_features : feature_id = features : feature_id | tourist_attraction_features : tourist_attraction_id = tourist_attractions : tourist_attraction_id
cre_Theme_park
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
What are the names and ids of the tourist attractions that are visited at most once?
[Schema (values) (types)]: | cre_Theme_park | Ref_Hotel_Star_Ratings : star_rating_code (text) , star_rating_description (text) | Locations : location_id (text) , location_name (text) , address (text) , other_details (number) | Ref_Attraction_Types : attraction_type_code (text) , attraction_type_description (text) | Visitors : tourist_id (text) , tourist_details (text) | Features : feature_id (text) , feature_details (text) | Hotels : hotel_id (text) , star_rating_code (text) , pets_allowed_yn (text) , price_range (number) , other_hotel_details (text) | Tourist_Attractions : tourist_attraction_id (text) , attraction_type_code (text) , location_id (text) , how_to_get_there (number) , name (text) , description (text) , opening_hours (text) , other_details (text) | Street_Markets : market_id (text) , market_details (text) | Shops : shop_id (text) , shop_details (text) | Museums : museum_id (text) , museum_details (text) | Royal_Family : royal_family_id (text) , royal_family_details (text) | Theme_Parks : theme_park_id (text) , theme_park_details (text) | Visits : visit_id (text) , tourist_attraction_id (text) , tourist_id (text) , visit_date (number) , visit_details (text) | Photos : photo_id (text) , tourist_attraction_id (text) , name (text) , description (number) , filename (text) , other_details (text) | Staff : staff_id (text) , tourist_attraction_id (text) , name (text) , other_details (number) | Tourist_Attraction_Features : tourist_attraction_id (text) , feature_id (text);
[Primary Keys]: ref_hotel_star_ratings : star_rating_code, locations : location_id, ref_attraction_types : attraction_type_code, visitors : tourist_id, features : feature_id, hotels : hotel_id, tourist_attractions : tourist_attraction_id, street_markets : market_id, shops : shop_id, museums : museum_id, royal_family : royal_family_id, theme_parks : theme_park_id, visits : visit_id, photos : photo_id, staff : staff_id, tourist_attraction_features : tourist_attraction_id
[Foreign Keys]: hotels : star_rating_code = ref_hotel_star_ratings : star_rating_code | tourist_attractions : attraction_type_code = ref_attraction_types : attraction_type_code | tourist_attractions : location_id = locations : location_id | street_markets : market_id = tourist_attractions : tourist_attraction_id | shops : shop_id = tourist_attractions : tourist_attraction_id | museums : museum_id = tourist_attractions : tourist_attraction_id | royal_family : royal_family_id = tourist_attractions : tourist_attraction_id | theme_parks : theme_park_id = tourist_attractions : tourist_attraction_id | visits : tourist_id = visitors : tourist_id | visits : tourist_attraction_id = tourist_attractions : tourist_attraction_id | photos : tourist_attraction_id = tourist_attractions : tourist_attraction_id | staff : tourist_attraction_id = tourist_attractions : tourist_attraction_id | tourist_attraction_features : feature_id = features : feature_id | tourist_attraction_features : tourist_attraction_id = tourist_attractions : tourist_attraction_id
cre_Theme_park
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"
What are the names of tourist attractions that can be reached by walk or is at address 660 Shea Crescent?
[Schema (values) (types)]: | cre_Theme_park | Ref_Hotel_Star_Ratings : star_rating_code (text) , star_rating_description (text) | Locations : location_id (text) , location_name (text) , address (text) , other_details (number) | Ref_Attraction_Types : attraction_type_code (text) , attraction_type_description (text) | Visitors : tourist_id (text) , tourist_details (text) | Features : feature_id (text) , feature_details (text) | Hotels : hotel_id (text) , star_rating_code (text) , pets_allowed_yn (text) , price_range (number) , other_hotel_details (text) | Tourist_Attractions : tourist_attraction_id (text) , attraction_type_code (text) , location_id (text) , how_to_get_there (number) , name (text) , description (text) , opening_hours (text) , other_details (text) | Street_Markets : market_id (text) , market_details (text) | Shops : shop_id (text) , shop_details (text) | Museums : museum_id (text) , museum_details (text) | Royal_Family : royal_family_id (text) , royal_family_details (text) | Theme_Parks : theme_park_id (text) , theme_park_details (text) | Visits : visit_id (text) , tourist_attraction_id (text) , tourist_id (text) , visit_date (number) , visit_details (text) | Photos : photo_id (text) , tourist_attraction_id (text) , name (text) , description (number) , filename (text) , other_details (text) | Staff : staff_id (text) , tourist_attraction_id (text) , name (text) , other_details (number) | Tourist_Attraction_Features : tourist_attraction_id (text) , feature_id (text);
[Primary Keys]: ref_hotel_star_ratings : star_rating_code, locations : location_id, ref_attraction_types : attraction_type_code, visitors : tourist_id, features : feature_id, hotels : hotel_id, tourist_attractions : tourist_attraction_id, street_markets : market_id, shops : shop_id, museums : museum_id, royal_family : royal_family_id, theme_parks : theme_park_id, visits : visit_id, photos : photo_id, staff : staff_id, tourist_attraction_features : tourist_attraction_id
[Foreign Keys]: hotels : star_rating_code = ref_hotel_star_ratings : star_rating_code | tourist_attractions : attraction_type_code = ref_attraction_types : attraction_type_code | tourist_attractions : location_id = locations : location_id | street_markets : market_id = tourist_attractions : tourist_attraction_id | shops : shop_id = tourist_attractions : tourist_attraction_id | museums : museum_id = tourist_attractions : tourist_attraction_id | royal_family : royal_family_id = tourist_attractions : tourist_attraction_id | theme_parks : theme_park_id = tourist_attractions : tourist_attraction_id | visits : tourist_id = visitors : tourist_id | visits : tourist_attraction_id = tourist_attractions : tourist_attraction_id | photos : tourist_attraction_id = tourist_attractions : tourist_attraction_id | staff : tourist_attraction_id = tourist_attractions : tourist_attraction_id | tourist_attraction_features : feature_id = features : feature_id | tourist_attraction_features : tourist_attraction_id = tourist_attractions : tourist_attraction_id
cre_Theme_park
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"
Find the names of the tourist attractions that is either accessible by walk or at address 660 Shea Crescent.
[Schema (values) (types)]: | cre_Theme_park | Ref_Hotel_Star_Ratings : star_rating_code (text) , star_rating_description (text) | Locations : location_id (text) , location_name (text) , address (text) , other_details (number) | Ref_Attraction_Types : attraction_type_code (text) , attraction_type_description (text) | Visitors : tourist_id (text) , tourist_details (text) | Features : feature_id (text) , feature_details (text) | Hotels : hotel_id (text) , star_rating_code (text) , pets_allowed_yn (text) , price_range (number) , other_hotel_details (text) | Tourist_Attractions : tourist_attraction_id (text) , attraction_type_code (text) , location_id (text) , how_to_get_there (number) , name (text) , description (text) , opening_hours (text) , other_details (text) | Street_Markets : market_id (text) , market_details (text) | Shops : shop_id (text) , shop_details (text) | Museums : museum_id (text) , museum_details (text) | Royal_Family : royal_family_id (text) , royal_family_details (text) | Theme_Parks : theme_park_id (text) , theme_park_details (text) | Visits : visit_id (text) , tourist_attraction_id (text) , tourist_id (text) , visit_date (number) , visit_details (text) | Photos : photo_id (text) , tourist_attraction_id (text) , name (text) , description (number) , filename (text) , other_details (text) | Staff : staff_id (text) , tourist_attraction_id (text) , name (text) , other_details (number) | Tourist_Attraction_Features : tourist_attraction_id (text) , feature_id (text);
[Primary Keys]: ref_hotel_star_ratings : star_rating_code, locations : location_id, ref_attraction_types : attraction_type_code, visitors : tourist_id, features : feature_id, hotels : hotel_id, tourist_attractions : tourist_attraction_id, street_markets : market_id, shops : shop_id, museums : museum_id, royal_family : royal_family_id, theme_parks : theme_park_id, visits : visit_id, photos : photo_id, staff : staff_id, tourist_attraction_features : tourist_attraction_id
[Foreign Keys]: hotels : star_rating_code = ref_hotel_star_ratings : star_rating_code | tourist_attractions : attraction_type_code = ref_attraction_types : attraction_type_code | tourist_attractions : location_id = locations : location_id | street_markets : market_id = tourist_attractions : tourist_attraction_id | shops : shop_id = tourist_attractions : tourist_attraction_id | museums : museum_id = tourist_attractions : tourist_attraction_id | royal_family : royal_family_id = tourist_attractions : tourist_attraction_id | theme_parks : theme_park_id = tourist_attractions : tourist_attraction_id | visits : tourist_id = visitors : tourist_id | visits : tourist_attraction_id = tourist_attractions : tourist_attraction_id | photos : tourist_attraction_id = tourist_attractions : tourist_attraction_id | staff : tourist_attraction_id = tourist_attractions : tourist_attraction_id | tourist_attraction_features : feature_id = features : feature_id | tourist_attraction_features : tourist_attraction_id = tourist_attractions : tourist_attraction_id
cre_Theme_park
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 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 = 'shopping'
What are the names of the tourist attractions that have parking or shopping as their feature details?
[Schema (values) (types)]: | cre_Theme_park | Ref_Hotel_Star_Ratings : star_rating_code (text) , star_rating_description (text) | Locations : location_id (text) , location_name (text) , address (text) , other_details (number) | Ref_Attraction_Types : attraction_type_code (text) , attraction_type_description (text) | Visitors : tourist_id (text) , tourist_details (text) | Features : feature_id (text) , feature_details (text) | Hotels : hotel_id (text) , star_rating_code (text) , pets_allowed_yn (text) , price_range (number) , other_hotel_details (text) | Tourist_Attractions : tourist_attraction_id (text) , attraction_type_code (text) , location_id (text) , how_to_get_there (number) , name (text) , description (text) , opening_hours (text) , other_details (text) | Street_Markets : market_id (text) , market_details (text) | Shops : shop_id (text) , shop_details (text) | Museums : museum_id (text) , museum_details (text) | Royal_Family : royal_family_id (text) , royal_family_details (text) | Theme_Parks : theme_park_id (text) , theme_park_details (text) | Visits : visit_id (text) , tourist_attraction_id (text) , tourist_id (text) , visit_date (number) , visit_details (text) | Photos : photo_id (text) , tourist_attraction_id (text) , name (text) , description (number) , filename (text) , other_details (text) | Staff : staff_id (text) , tourist_attraction_id (text) , name (text) , other_details (number) | Tourist_Attraction_Features : tourist_attraction_id (text) , feature_id (text);
[Primary Keys]: ref_hotel_star_ratings : star_rating_code, locations : location_id, ref_attraction_types : attraction_type_code, visitors : tourist_id, features : feature_id, hotels : hotel_id, tourist_attractions : tourist_attraction_id, street_markets : market_id, shops : shop_id, museums : museum_id, royal_family : royal_family_id, theme_parks : theme_park_id, visits : visit_id, photos : photo_id, staff : staff_id, tourist_attraction_features : tourist_attraction_id
[Foreign Keys]: hotels : star_rating_code = ref_hotel_star_ratings : star_rating_code | tourist_attractions : attraction_type_code = ref_attraction_types : attraction_type_code | tourist_attractions : location_id = locations : location_id | street_markets : market_id = tourist_attractions : tourist_attraction_id | shops : shop_id = tourist_attractions : tourist_attraction_id | museums : museum_id = tourist_attractions : tourist_attraction_id | royal_family : royal_family_id = tourist_attractions : tourist_attraction_id | theme_parks : theme_park_id = tourist_attractions : tourist_attraction_id | visits : tourist_id = visitors : tourist_id | visits : tourist_attraction_id = tourist_attractions : tourist_attraction_id | photos : tourist_attraction_id = tourist_attractions : tourist_attraction_id | staff : tourist_attraction_id = tourist_attractions : tourist_attraction_id | tourist_attraction_features : feature_id = features : feature_id | tourist_attraction_features : tourist_attraction_id = tourist_attractions : tourist_attraction_id
cre_Theme_park
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 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 = 'shopping'
Find the tourist attractions that have parking or shopping as their feature details. What are the names of the attractions?
[Schema (values) (types)]: | cre_Theme_park | Ref_Hotel_Star_Ratings : star_rating_code (text) , star_rating_description (text) | Locations : location_id (text) , location_name (text) , address (text) , other_details (number) | Ref_Attraction_Types : attraction_type_code (text) , attraction_type_description (text) | Visitors : tourist_id (text) , tourist_details (text) | Features : feature_id (text) , feature_details (text) | Hotels : hotel_id (text) , star_rating_code (text) , pets_allowed_yn (text) , price_range (number) , other_hotel_details (text) | Tourist_Attractions : tourist_attraction_id (text) , attraction_type_code (text) , location_id (text) , how_to_get_there (number) , name (text) , description (text) , opening_hours (text) , other_details (text) | Street_Markets : market_id (text) , market_details (text) | Shops : shop_id (text) , shop_details (text) | Museums : museum_id (text) , museum_details (text) | Royal_Family : royal_family_id (text) , royal_family_details (text) | Theme_Parks : theme_park_id (text) , theme_park_details (text) | Visits : visit_id (text) , tourist_attraction_id (text) , tourist_id (text) , visit_date (number) , visit_details (text) | Photos : photo_id (text) , tourist_attraction_id (text) , name (text) , description (number) , filename (text) , other_details (text) | Staff : staff_id (text) , tourist_attraction_id (text) , name (text) , other_details (number) | Tourist_Attraction_Features : tourist_attraction_id (text) , feature_id (text);
[Primary Keys]: ref_hotel_star_ratings : star_rating_code, locations : location_id, ref_attraction_types : attraction_type_code, visitors : tourist_id, features : feature_id, hotels : hotel_id, tourist_attractions : tourist_attraction_id, street_markets : market_id, shops : shop_id, museums : museum_id, royal_family : royal_family_id, theme_parks : theme_park_id, visits : visit_id, photos : photo_id, staff : staff_id, tourist_attraction_features : tourist_attraction_id
[Foreign Keys]: hotels : star_rating_code = ref_hotel_star_ratings : star_rating_code | tourist_attractions : attraction_type_code = ref_attraction_types : attraction_type_code | tourist_attractions : location_id = locations : location_id | street_markets : market_id = tourist_attractions : tourist_attraction_id | shops : shop_id = tourist_attractions : tourist_attraction_id | museums : museum_id = tourist_attractions : tourist_attraction_id | royal_family : royal_family_id = tourist_attractions : tourist_attraction_id | theme_parks : theme_park_id = tourist_attractions : tourist_attraction_id | visits : tourist_id = visitors : tourist_id | visits : tourist_attraction_id = tourist_attractions : tourist_attraction_id | photos : tourist_attraction_id = tourist_attractions : tourist_attraction_id | staff : tourist_attraction_id = tourist_attractions : tourist_attraction_id | tourist_attraction_features : feature_id = features : feature_id | tourist_attraction_features : tourist_attraction_id = tourist_attractions : tourist_attraction_id
cre_Theme_park
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"
What are the names of tourist attractions that can be reached by bus or is at address 254 Ottilie Junction?
[Schema (values) (types)]: | cre_Theme_park | Ref_Hotel_Star_Ratings : star_rating_code (text) , star_rating_description (text) | Locations : location_id (text) , location_name (text) , address (text) , other_details (number) | Ref_Attraction_Types : attraction_type_code (text) , attraction_type_description (text) | Visitors : tourist_id (text) , tourist_details (text) | Features : feature_id (text) , feature_details (text) | Hotels : hotel_id (text) , star_rating_code (text) , pets_allowed_yn (text) , price_range (number) , other_hotel_details (text) | Tourist_Attractions : tourist_attraction_id (text) , attraction_type_code (text) , location_id (text) , how_to_get_there (number) , name (text) , description (text) , opening_hours (text) , other_details (text) | Street_Markets : market_id (text) , market_details (text) | Shops : shop_id (text) , shop_details (text) | Museums : museum_id (text) , museum_details (text) | Royal_Family : royal_family_id (text) , royal_family_details (text) | Theme_Parks : theme_park_id (text) , theme_park_details (text) | Visits : visit_id (text) , tourist_attraction_id (text) , tourist_id (text) , visit_date (number) , visit_details (text) | Photos : photo_id (text) , tourist_attraction_id (text) , name (text) , description (number) , filename (text) , other_details (text) | Staff : staff_id (text) , tourist_attraction_id (text) , name (text) , other_details (number) | Tourist_Attraction_Features : tourist_attraction_id (text) , feature_id (text);
[Primary Keys]: ref_hotel_star_ratings : star_rating_code, locations : location_id, ref_attraction_types : attraction_type_code, visitors : tourist_id, features : feature_id, hotels : hotel_id, tourist_attractions : tourist_attraction_id, street_markets : market_id, shops : shop_id, museums : museum_id, royal_family : royal_family_id, theme_parks : theme_park_id, visits : visit_id, photos : photo_id, staff : staff_id, tourist_attraction_features : tourist_attraction_id
[Foreign Keys]: hotels : star_rating_code = ref_hotel_star_ratings : star_rating_code | tourist_attractions : attraction_type_code = ref_attraction_types : attraction_type_code | tourist_attractions : location_id = locations : location_id | street_markets : market_id = tourist_attractions : tourist_attraction_id | shops : shop_id = tourist_attractions : tourist_attraction_id | museums : museum_id = tourist_attractions : tourist_attraction_id | royal_family : royal_family_id = tourist_attractions : tourist_attraction_id | theme_parks : theme_park_id = tourist_attractions : tourist_attraction_id | visits : tourist_id = visitors : tourist_id | visits : tourist_attraction_id = tourist_attractions : tourist_attraction_id | photos : tourist_attraction_id = tourist_attractions : tourist_attraction_id | staff : tourist_attraction_id = tourist_attractions : tourist_attraction_id | tourist_attraction_features : feature_id = features : feature_id | tourist_attraction_features : tourist_attraction_id = tourist_attractions : tourist_attraction_id
cre_Theme_park
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"
Find the names of the tourist attractions that is either accessible by bus or at address 254 Ottilie Junction.
[Schema (values) (types)]: | cre_Theme_park | Ref_Hotel_Star_Ratings : star_rating_code (text) , star_rating_description (text) | Locations : location_id (text) , location_name (text) , address (text) , other_details (number) | Ref_Attraction_Types : attraction_type_code (text) , attraction_type_description (text) | Visitors : tourist_id (text) , tourist_details (text) | Features : feature_id (text) , feature_details (text) | Hotels : hotel_id (text) , star_rating_code (text) , pets_allowed_yn (text) , price_range (number) , other_hotel_details (text) | Tourist_Attractions : tourist_attraction_id (text) , attraction_type_code (text) , location_id (text) , how_to_get_there (number) , name (text) , description (text) , opening_hours (text) , other_details (text) | Street_Markets : market_id (text) , market_details (text) | Shops : shop_id (text) , shop_details (text) | Museums : museum_id (text) , museum_details (text) | Royal_Family : royal_family_id (text) , royal_family_details (text) | Theme_Parks : theme_park_id (text) , theme_park_details (text) | Visits : visit_id (text) , tourist_attraction_id (text) , tourist_id (text) , visit_date (number) , visit_details (text) | Photos : photo_id (text) , tourist_attraction_id (text) , name (text) , description (number) , filename (text) , other_details (text) | Staff : staff_id (text) , tourist_attraction_id (text) , name (text) , other_details (number) | Tourist_Attraction_Features : tourist_attraction_id (text) , feature_id (text);
[Primary Keys]: ref_hotel_star_ratings : star_rating_code, locations : location_id, ref_attraction_types : attraction_type_code, visitors : tourist_id, features : feature_id, hotels : hotel_id, tourist_attractions : tourist_attraction_id, street_markets : market_id, shops : shop_id, museums : museum_id, royal_family : royal_family_id, theme_parks : theme_park_id, visits : visit_id, photos : photo_id, staff : staff_id, tourist_attraction_features : tourist_attraction_id
[Foreign Keys]: hotels : star_rating_code = ref_hotel_star_ratings : star_rating_code | tourist_attractions : attraction_type_code = ref_attraction_types : attraction_type_code | tourist_attractions : location_id = locations : location_id | street_markets : market_id = tourist_attractions : tourist_attraction_id | shops : shop_id = tourist_attractions : tourist_attraction_id | museums : museum_id = tourist_attractions : tourist_attraction_id | royal_family : royal_family_id = tourist_attractions : tourist_attraction_id | theme_parks : theme_park_id = tourist_attractions : tourist_attraction_id | visits : tourist_id = visitors : tourist_id | visits : tourist_attraction_id = tourist_attractions : tourist_attraction_id | photos : tourist_attraction_id = tourist_attractions : tourist_attraction_id | staff : tourist_attraction_id = tourist_attractions : tourist_attraction_id | tourist_attraction_features : feature_id = features : feature_id | tourist_attraction_features : tourist_attraction_id = tourist_attractions : tourist_attraction_id
cre_Theme_park
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.Tourist_Attraction_ID = T3.Tourist_Attraction_ID AND T2.Tourist_ID = T3.Tourist_ID WHERE T2.Tourist_Details = "Marcelle"
What are the names of the tourist attractions Vincent and Marcelle visit?
[Schema (values) (types)]: | cre_Theme_park | Ref_Hotel_Star_Ratings : star_rating_code (text) , star_rating_description (text) | Locations : location_id (text) , location_name (text) , address (text) , other_details (number) | Ref_Attraction_Types : attraction_type_code (text) , attraction_type_description (text) | Visitors : tourist_id (text) , tourist_details (text) | Features : feature_id (text) , feature_details (text) | Hotels : hotel_id (text) , star_rating_code (text) , pets_allowed_yn (text) , price_range (number) , other_hotel_details (text) | Tourist_Attractions : tourist_attraction_id (text) , attraction_type_code (text) , location_id (text) , how_to_get_there (number) , name (text) , description (text) , opening_hours (text) , other_details (text) | Street_Markets : market_id (text) , market_details (text) | Shops : shop_id (text) , shop_details (text) | Museums : museum_id (text) , museum_details (text) | Royal_Family : royal_family_id (text) , royal_family_details (text) | Theme_Parks : theme_park_id (text) , theme_park_details (text) | Visits : visit_id (text) , tourist_attraction_id (text) , tourist_id (text) , visit_date (number) , visit_details (text) | Photos : photo_id (text) , tourist_attraction_id (text) , name (text) , description (number) , filename (text) , other_details (text) | Staff : staff_id (text) , tourist_attraction_id (text) , name (text) , other_details (number) | Tourist_Attraction_Features : tourist_attraction_id (text) , feature_id (text);
[Primary Keys]: ref_hotel_star_ratings : star_rating_code, locations : location_id, ref_attraction_types : attraction_type_code, visitors : tourist_id, features : feature_id, hotels : hotel_id, tourist_attractions : tourist_attraction_id, street_markets : market_id, shops : shop_id, museums : museum_id, royal_family : royal_family_id, theme_parks : theme_park_id, visits : visit_id, photos : photo_id, staff : staff_id, tourist_attraction_features : tourist_attraction_id
[Foreign Keys]: hotels : star_rating_code = ref_hotel_star_ratings : star_rating_code | tourist_attractions : attraction_type_code = ref_attraction_types : attraction_type_code | tourist_attractions : location_id = locations : location_id | street_markets : market_id = tourist_attractions : tourist_attraction_id | shops : shop_id = tourist_attractions : tourist_attraction_id | museums : museum_id = tourist_attractions : tourist_attraction_id | royal_family : royal_family_id = tourist_attractions : tourist_attraction_id | theme_parks : theme_park_id = tourist_attractions : tourist_attraction_id | visits : tourist_id = visitors : tourist_id | visits : tourist_attraction_id = tourist_attractions : tourist_attraction_id | photos : tourist_attraction_id = tourist_attractions : tourist_attraction_id | staff : tourist_attraction_id = tourist_attractions : tourist_attraction_id | tourist_attraction_features : feature_id = features : feature_id | tourist_attraction_features : tourist_attraction_id = tourist_attractions : tourist_attraction_id
cre_Theme_park
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.Tourist_Attraction_ID = T3.Tourist_Attraction_ID AND T2.Tourist_ID = T3.Tourist_ID WHERE T2.Tourist_Details = "Marcelle"
Which tourist attractions do the tourists Vincent and Marcelle visit? Tell me the names of the attractions.
[Schema (values) (types)]: | cre_Theme_park | Ref_Hotel_Star_Ratings : star_rating_code (text) , star_rating_description (text) | Locations : location_id (text) , location_name (text) , address (text) , other_details (number) | Ref_Attraction_Types : attraction_type_code (text) , attraction_type_description (text) | Visitors : tourist_id (text) , tourist_details (text) | Features : feature_id (text) , feature_details (text) | Hotels : hotel_id (text) , star_rating_code (text) , pets_allowed_yn (text) , price_range (number) , other_hotel_details (text) | Tourist_Attractions : tourist_attraction_id (text) , attraction_type_code (text) , location_id (text) , how_to_get_there (number) , name (text) , description (text) , opening_hours (text) , other_details (text) | Street_Markets : market_id (text) , market_details (text) | Shops : shop_id (text) , shop_details (text) | Museums : museum_id (text) , museum_details (text) | Royal_Family : royal_family_id (text) , royal_family_details (text) | Theme_Parks : theme_park_id (text) , theme_park_details (text) | Visits : visit_id (text) , tourist_attraction_id (text) , tourist_id (text) , visit_date (number) , visit_details (text) | Photos : photo_id (text) , tourist_attraction_id (text) , name (text) , description (number) , filename (text) , other_details (text) | Staff : staff_id (text) , tourist_attraction_id (text) , name (text) , other_details (number) | Tourist_Attraction_Features : tourist_attraction_id (text) , feature_id (text);
[Primary Keys]: ref_hotel_star_ratings : star_rating_code, locations : location_id, ref_attraction_types : attraction_type_code, visitors : tourist_id, features : feature_id, hotels : hotel_id, tourist_attractions : tourist_attraction_id, street_markets : market_id, shops : shop_id, museums : museum_id, royal_family : royal_family_id, theme_parks : theme_park_id, visits : visit_id, photos : photo_id, staff : staff_id, tourist_attraction_features : tourist_attraction_id
[Foreign Keys]: hotels : star_rating_code = ref_hotel_star_ratings : star_rating_code | tourist_attractions : attraction_type_code = ref_attraction_types : attraction_type_code | tourist_attractions : location_id = locations : location_id | street_markets : market_id = tourist_attractions : tourist_attraction_id | shops : shop_id = tourist_attractions : tourist_attraction_id | museums : museum_id = tourist_attractions : tourist_attraction_id | royal_family : royal_family_id = tourist_attractions : tourist_attraction_id | theme_parks : theme_park_id = tourist_attractions : tourist_attraction_id | visits : tourist_id = visitors : tourist_id | visits : tourist_attraction_id = tourist_attractions : tourist_attraction_id | photos : tourist_attraction_id = tourist_attractions : tourist_attraction_id | staff : tourist_attraction_id = tourist_attractions : tourist_attraction_id | tourist_attraction_features : feature_id = features : feature_id | tourist_attraction_features : tourist_attraction_id = tourist_attractions : tourist_attraction_id
cre_Theme_park
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_Attraction_ID = T3.Tourist_Attraction_ID AND T2.Tourist_ID = T3.Tourist_ID WHERE T2.Tourist_Details = "Rosalind"
What are the names of tourist attraction that Alison visited but Rosalind did not visit?
[Schema (values) (types)]: | cre_Theme_park | Ref_Hotel_Star_Ratings : star_rating_code (text) , star_rating_description (text) | Locations : location_id (text) , location_name (text) , address (text) , other_details (number) | Ref_Attraction_Types : attraction_type_code (text) , attraction_type_description (text) | Visitors : tourist_id (text) , tourist_details (text) | Features : feature_id (text) , feature_details (text) | Hotels : hotel_id (text) , star_rating_code (text) , pets_allowed_yn (text) , price_range (number) , other_hotel_details (text) | Tourist_Attractions : tourist_attraction_id (text) , attraction_type_code (text) , location_id (text) , how_to_get_there (number) , name (text) , description (text) , opening_hours (text) , other_details (text) | Street_Markets : market_id (text) , market_details (text) | Shops : shop_id (text) , shop_details (text) | Museums : museum_id (text) , museum_details (text) | Royal_Family : royal_family_id (text) , royal_family_details (text) | Theme_Parks : theme_park_id (text) , theme_park_details (text) | Visits : visit_id (text) , tourist_attraction_id (text) , tourist_id (text) , visit_date (number) , visit_details (text) | Photos : photo_id (text) , tourist_attraction_id (text) , name (text) , description (number) , filename (text) , other_details (text) | Staff : staff_id (text) , tourist_attraction_id (text) , name (text) , other_details (number) | Tourist_Attraction_Features : tourist_attraction_id (text) , feature_id (text);
[Primary Keys]: ref_hotel_star_ratings : star_rating_code, locations : location_id, ref_attraction_types : attraction_type_code, visitors : tourist_id, features : feature_id, hotels : hotel_id, tourist_attractions : tourist_attraction_id, street_markets : market_id, shops : shop_id, museums : museum_id, royal_family : royal_family_id, theme_parks : theme_park_id, visits : visit_id, photos : photo_id, staff : staff_id, tourist_attraction_features : tourist_attraction_id
[Foreign Keys]: hotels : star_rating_code = ref_hotel_star_ratings : star_rating_code | tourist_attractions : attraction_type_code = ref_attraction_types : attraction_type_code | tourist_attractions : location_id = locations : location_id | street_markets : market_id = tourist_attractions : tourist_attraction_id | shops : shop_id = tourist_attractions : tourist_attraction_id | museums : museum_id = tourist_attractions : tourist_attraction_id | royal_family : royal_family_id = tourist_attractions : tourist_attraction_id | theme_parks : theme_park_id = tourist_attractions : tourist_attraction_id | visits : tourist_id = visitors : tourist_id | visits : tourist_attraction_id = tourist_attractions : tourist_attraction_id | photos : tourist_attraction_id = tourist_attractions : tourist_attraction_id | staff : tourist_attraction_id = tourist_attractions : tourist_attraction_id | tourist_attraction_features : feature_id = features : feature_id | tourist_attraction_features : tourist_attraction_id = tourist_attractions : tourist_attraction_id
cre_Theme_park
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_Attraction_ID = T3.Tourist_Attraction_ID AND T2.Tourist_ID = T3.Tourist_ID WHERE T2.Tourist_Details = "Rosalind"
Find the the names of the tourist attractions that the tourist named Alison visited but Rosalind did not visit.
[Schema (values) (types)]: | cre_Theme_park | Ref_Hotel_Star_Ratings : star_rating_code (text) , star_rating_description (text) | Locations : location_id (text) , location_name (text) , address (text) , other_details (number) | Ref_Attraction_Types : attraction_type_code (text) , attraction_type_description (text) | Visitors : tourist_id (text) , tourist_details (text) | Features : feature_id (text) , feature_details (text) | Hotels : hotel_id (text) , star_rating_code (text) , pets_allowed_yn (text) , price_range (number) , other_hotel_details (text) | Tourist_Attractions : tourist_attraction_id (text) , attraction_type_code (text) , location_id (text) , how_to_get_there (number) , name (text) , description (text) , opening_hours (text) , other_details (text) | Street_Markets : market_id (text) , market_details (text) | Shops : shop_id (text) , shop_details (text) | Museums : museum_id (text) , museum_details (text) | Royal_Family : royal_family_id (text) , royal_family_details (text) | Theme_Parks : theme_park_id (text) , theme_park_details (text) | Visits : visit_id (text) , tourist_attraction_id (text) , tourist_id (text) , visit_date (number) , visit_details (text) | Photos : photo_id (text) , tourist_attraction_id (text) , name (text) , description (number) , filename (text) , other_details (text) | Staff : staff_id (text) , tourist_attraction_id (text) , name (text) , other_details (number) | Tourist_Attraction_Features : tourist_attraction_id (text) , feature_id (text);
[Primary Keys]: ref_hotel_star_ratings : star_rating_code, locations : location_id, ref_attraction_types : attraction_type_code, visitors : tourist_id, features : feature_id, hotels : hotel_id, tourist_attractions : tourist_attraction_id, street_markets : market_id, shops : shop_id, museums : museum_id, royal_family : royal_family_id, theme_parks : theme_park_id, visits : visit_id, photos : photo_id, staff : staff_id, tourist_attraction_features : tourist_attraction_id
[Foreign Keys]: hotels : star_rating_code = ref_hotel_star_ratings : star_rating_code | tourist_attractions : attraction_type_code = ref_attraction_types : attraction_type_code | tourist_attractions : location_id = locations : location_id | street_markets : market_id = tourist_attractions : tourist_attraction_id | shops : shop_id = tourist_attractions : tourist_attraction_id | museums : museum_id = tourist_attractions : tourist_attraction_id | royal_family : royal_family_id = tourist_attractions : tourist_attraction_id | theme_parks : theme_park_id = tourist_attractions : tourist_attraction_id | visits : tourist_id = visitors : tourist_id | visits : tourist_attraction_id = tourist_attractions : tourist_attraction_id | photos : tourist_attraction_id = tourist_attractions : tourist_attraction_id | staff : tourist_attraction_id = tourist_attractions : tourist_attraction_id | tourist_attraction_features : feature_id = features : feature_id | tourist_attraction_features : tourist_attraction_id = tourist_attractions : tourist_attraction_id
cre_Theme_park
SELECT count(*) FROM Visitors WHERE Tourist_ID NOT IN ( SELECT Tourist_ID FROM Visits )
How many tourists did not make any visit?
[Schema (values) (types)]: | cre_Theme_park | Ref_Hotel_Star_Ratings : star_rating_code (text) , star_rating_description (text) | Locations : location_id (text) , location_name (text) , address (text) , other_details (number) | Ref_Attraction_Types : attraction_type_code (text) , attraction_type_description (text) | Visitors : tourist_id (text) , tourist_details (text) | Features : feature_id (text) , feature_details (text) | Hotels : hotel_id (text) , star_rating_code (text) , pets_allowed_yn (text) , price_range (number) , other_hotel_details (text) | Tourist_Attractions : tourist_attraction_id (text) , attraction_type_code (text) , location_id (text) , how_to_get_there (number) , name (text) , description (text) , opening_hours (text) , other_details (text) | Street_Markets : market_id (text) , market_details (text) | Shops : shop_id (text) , shop_details (text) | Museums : museum_id (text) , museum_details (text) | Royal_Family : royal_family_id (text) , royal_family_details (text) | Theme_Parks : theme_park_id (text) , theme_park_details (text) | Visits : visit_id (text) , tourist_attraction_id (text) , tourist_id (text) , visit_date (number) , visit_details (text) | Photos : photo_id (text) , tourist_attraction_id (text) , name (text) , description (number) , filename (text) , other_details (text) | Staff : staff_id (text) , tourist_attraction_id (text) , name (text) , other_details (number) | Tourist_Attraction_Features : tourist_attraction_id (text) , feature_id (text);
[Primary Keys]: ref_hotel_star_ratings : star_rating_code, locations : location_id, ref_attraction_types : attraction_type_code, visitors : tourist_id, features : feature_id, hotels : hotel_id, tourist_attractions : tourist_attraction_id, street_markets : market_id, shops : shop_id, museums : museum_id, royal_family : royal_family_id, theme_parks : theme_park_id, visits : visit_id, photos : photo_id, staff : staff_id, tourist_attraction_features : tourist_attraction_id
[Foreign Keys]: hotels : star_rating_code = ref_hotel_star_ratings : star_rating_code | tourist_attractions : attraction_type_code = ref_attraction_types : attraction_type_code | tourist_attractions : location_id = locations : location_id | street_markets : market_id = tourist_attractions : tourist_attraction_id | shops : shop_id = tourist_attractions : tourist_attraction_id | museums : museum_id = tourist_attractions : tourist_attraction_id | royal_family : royal_family_id = tourist_attractions : tourist_attraction_id | theme_parks : theme_park_id = tourist_attractions : tourist_attraction_id | visits : tourist_id = visitors : tourist_id | visits : tourist_attraction_id = tourist_attractions : tourist_attraction_id | photos : tourist_attraction_id = tourist_attractions : tourist_attraction_id | staff : tourist_attraction_id = tourist_attractions : tourist_attraction_id | tourist_attraction_features : feature_id = features : feature_id | tourist_attraction_features : tourist_attraction_id = tourist_attractions : tourist_attraction_id
cre_Theme_park
SELECT count(*) FROM Visitors WHERE Tourist_ID NOT IN ( SELECT Tourist_ID FROM Visits )
Count the number of tourists who did not visit any place.
[Schema (values) (types)]: | cre_Theme_park | Ref_Hotel_Star_Ratings : star_rating_code (text) , star_rating_description (text) | Locations : location_id (text) , location_name (text) , address (text) , other_details (number) | Ref_Attraction_Types : attraction_type_code (text) , attraction_type_description (text) | Visitors : tourist_id (text) , tourist_details (text) | Features : feature_id (text) , feature_details (text) | Hotels : hotel_id (text) , star_rating_code (text) , pets_allowed_yn (text) , price_range (number) , other_hotel_details (text) | Tourist_Attractions : tourist_attraction_id (text) , attraction_type_code (text) , location_id (text) , how_to_get_there (number) , name (text) , description (text) , opening_hours (text) , other_details (text) | Street_Markets : market_id (text) , market_details (text) | Shops : shop_id (text) , shop_details (text) | Museums : museum_id (text) , museum_details (text) | Royal_Family : royal_family_id (text) , royal_family_details (text) | Theme_Parks : theme_park_id (text) , theme_park_details (text) | Visits : visit_id (text) , tourist_attraction_id (text) , tourist_id (text) , visit_date (number) , visit_details (text) | Photos : photo_id (text) , tourist_attraction_id (text) , name (text) , description (number) , filename (text) , other_details (text) | Staff : staff_id (text) , tourist_attraction_id (text) , name (text) , other_details (number) | Tourist_Attraction_Features : tourist_attraction_id (text) , feature_id (text);
[Primary Keys]: ref_hotel_star_ratings : star_rating_code, locations : location_id, ref_attraction_types : attraction_type_code, visitors : tourist_id, features : feature_id, hotels : hotel_id, tourist_attractions : tourist_attraction_id, street_markets : market_id, shops : shop_id, museums : museum_id, royal_family : royal_family_id, theme_parks : theme_park_id, visits : visit_id, photos : photo_id, staff : staff_id, tourist_attraction_features : tourist_attraction_id
[Foreign Keys]: hotels : star_rating_code = ref_hotel_star_ratings : star_rating_code | tourist_attractions : attraction_type_code = ref_attraction_types : attraction_type_code | tourist_attractions : location_id = locations : location_id | street_markets : market_id = tourist_attractions : tourist_attraction_id | shops : shop_id = tourist_attractions : tourist_attraction_id | museums : museum_id = tourist_attractions : tourist_attraction_id | royal_family : royal_family_id = tourist_attractions : tourist_attraction_id | theme_parks : theme_park_id = tourist_attractions : tourist_attraction_id | visits : tourist_id = visitors : tourist_id | visits : tourist_attraction_id = tourist_attractions : tourist_attraction_id | photos : tourist_attraction_id = tourist_attractions : tourist_attraction_id | staff : tourist_attraction_id = tourist_attractions : tourist_attraction_id | tourist_attraction_features : feature_id = features : feature_id | tourist_attraction_features : tourist_attraction_id = tourist_attractions : tourist_attraction_id
game_1
SELECT count(*) FROM Video_games
How many video games exist?
[Schema (values) (types)]: | game_1 | Student : stuid (text) , lname (number) , fname (text) , age (text) , sex (number) , major (text) , advisor (number) , city_code (number) | Video_Games : gameid (text) , gname (number) , gtype (text) | Plays_Games : stuid (text) , gameid (number) , hours_played (text) | SportsInfo : stuid (text) , sportname (number) , hoursperweek (text) , gamesplayed (text) , onscholarship (number);
[Primary Keys]: student : stuid, video_games : gameid
[Foreign Keys]: plays_games : stuid = student : stuid | plays_games : gameid = video_games : gameid | sportsinfo : stuid = student : stuid
game_1
SELECT count(*) FROM Video_games
How many video games do you have?
[Schema (values) (types)]: | game_1 | Student : stuid (text) , lname (number) , fname (text) , age (text) , sex (number) , major (text) , advisor (number) , city_code (number) | Video_Games : gameid (text) , gname (number) , gtype (text) | Plays_Games : stuid (text) , gameid (number) , hours_played (text) | SportsInfo : stuid (text) , sportname (number) , hoursperweek (text) , gamesplayed (text) , onscholarship (number);
[Primary Keys]: student : stuid, video_games : gameid
[Foreign Keys]: plays_games : stuid = student : stuid | plays_games : gameid = video_games : gameid | sportsinfo : stuid = student : stuid
game_1
SELECT count(DISTINCT gtype) FROM Video_games
How many video game types exist?
[Schema (values) (types)]: | game_1 | Student : stuid (text) , lname (number) , fname (text) , age (text) , sex (number) , major (text) , advisor (number) , city_code (number) | Video_Games : gameid (text) , gname (number) , gtype (text) | Plays_Games : stuid (text) , gameid (number) , hours_played (text) | SportsInfo : stuid (text) , sportname (number) , hoursperweek (text) , gamesplayed (text) , onscholarship (number);
[Primary Keys]: student : stuid, video_games : gameid
[Foreign Keys]: plays_games : stuid = student : stuid | plays_games : gameid = video_games : gameid | sportsinfo : stuid = student : stuid
game_1
SELECT count(DISTINCT gtype) FROM Video_games
What is the count of different game types?
[Schema (values) (types)]: | game_1 | Student : stuid (text) , lname (number) , fname (text) , age (text) , sex (number) , major (text) , advisor (number) , city_code (number) | Video_Games : gameid (text) , gname (number) , gtype (text) | Plays_Games : stuid (text) , gameid (number) , hours_played (text) | SportsInfo : stuid (text) , sportname (number) , hoursperweek (text) , gamesplayed (text) , onscholarship (number);
[Primary Keys]: student : stuid, video_games : gameid
[Foreign Keys]: plays_games : stuid = student : stuid | plays_games : gameid = video_games : gameid | sportsinfo : stuid = student : stuid
game_1
SELECT DISTINCT gtype FROM Video_games
Show all video game types.
[Schema (values) (types)]: | game_1 | Student : stuid (text) , lname (number) , fname (text) , age (text) , sex (number) , major (text) , advisor (number) , city_code (number) | Video_Games : gameid (text) , gname (number) , gtype (text) | Plays_Games : stuid (text) , gameid (number) , hours_played (text) | SportsInfo : stuid (text) , sportname (number) , hoursperweek (text) , gamesplayed (text) , onscholarship (number);
[Primary Keys]: student : stuid, video_games : gameid
[Foreign Keys]: plays_games : stuid = student : stuid | plays_games : gameid = video_games : gameid | sportsinfo : stuid = student : stuid
game_1
SELECT DISTINCT gtype FROM Video_games
What are the different types of video games?
[Schema (values) (types)]: | game_1 | Student : stuid (text) , lname (number) , fname (text) , age (text) , sex (number) , major (text) , advisor (number) , city_code (number) | Video_Games : gameid (text) , gname (number) , gtype (text) | Plays_Games : stuid (text) , gameid (number) , hours_played (text) | SportsInfo : stuid (text) , sportname (number) , hoursperweek (text) , gamesplayed (text) , onscholarship (number);
[Primary Keys]: student : stuid, video_games : gameid
[Foreign Keys]: plays_games : stuid = student : stuid | plays_games : gameid = video_games : gameid | sportsinfo : stuid = student : stuid
game_1
SELECT gname , gtype FROM Video_games ORDER BY gname
Show all video games and their types in the order of their names.
[Schema (values) (types)]: | game_1 | Student : stuid (text) , lname (number) , fname (text) , age (text) , sex (number) , major (text) , advisor (number) , city_code (number) | Video_Games : gameid (text) , gname (number) , gtype (text) | Plays_Games : stuid (text) , gameid (number) , hours_played (text) | SportsInfo : stuid (text) , sportname (number) , hoursperweek (text) , gamesplayed (text) , onscholarship (number);
[Primary Keys]: student : stuid, video_games : gameid
[Foreign Keys]: plays_games : stuid = student : stuid | plays_games : gameid = video_games : gameid | sportsinfo : stuid = student : stuid
game_1
SELECT gname , gtype FROM Video_games ORDER BY gname
What are the names of all the video games and their types in alphabetical order?
[Schema (values) (types)]: | game_1 | Student : stuid (text) , lname (number) , fname (text) , age (text) , sex (number) , major (text) , advisor (number) , city_code (number) | Video_Games : gameid (text) , gname (number) , gtype (text) | Plays_Games : stuid (text) , gameid (number) , hours_played (text) | SportsInfo : stuid (text) , sportname (number) , hoursperweek (text) , gamesplayed (text) , onscholarship (number);
[Primary Keys]: student : stuid, video_games : gameid
[Foreign Keys]: plays_games : stuid = student : stuid | plays_games : gameid = video_games : gameid | sportsinfo : stuid = student : stuid
game_1
SELECT gname FROM Video_games WHERE gtype = "Collectible card game"
Show all video games with type Collectible card game.
[Schema (values) (types)]: | game_1 | Student : stuid (text) , lname (number) , fname (text) , age (text) , sex (number) , major (text) , advisor (number) , city_code (number) | Video_Games : gameid (text) , gname (number) , gtype (text) | Plays_Games : stuid (text) , gameid (number) , hours_played (text) | SportsInfo : stuid (text) , sportname (number) , hoursperweek (text) , gamesplayed (text) , onscholarship (number);
[Primary Keys]: student : stuid, video_games : gameid
[Foreign Keys]: plays_games : stuid = student : stuid | plays_games : gameid = video_games : gameid | sportsinfo : stuid = student : stuid
game_1
SELECT gname FROM Video_games WHERE gtype = "Collectible card game"
What are the names of all video games that are collectible cards?
[Schema (values) (types)]: | game_1 | Student : stuid (text) , lname (number) , fname (text) , age (text) , sex (number) , major (text) , advisor (number) , city_code (number) | Video_Games : gameid (text) , gname (number) , gtype (text) | Plays_Games : stuid (text) , gameid (number) , hours_played (text) | SportsInfo : stuid (text) , sportname (number) , hoursperweek (text) , gamesplayed (text) , onscholarship (number);
[Primary Keys]: student : stuid, video_games : gameid
[Foreign Keys]: plays_games : stuid = student : stuid | plays_games : gameid = video_games : gameid | sportsinfo : stuid = student : stuid
game_1
SELECT gtype FROM Video_games WHERE gname = "Call of Destiny"
What is the type of video game Call of Destiny.
[Schema (values) (types)]: | game_1 | Student : stuid (text) , lname (number) , fname (text) , age (text) , sex (number) , major (text) , advisor (number) , city_code (number) | Video_Games : gameid (text) , gname (number) , gtype (text) | Plays_Games : stuid (text) , gameid (number) , hours_played (text) | SportsInfo : stuid (text) , sportname (number) , hoursperweek (text) , gamesplayed (text) , onscholarship (number);
[Primary Keys]: student : stuid, video_games : gameid
[Foreign Keys]: plays_games : stuid = student : stuid | plays_games : gameid = video_games : gameid | sportsinfo : stuid = student : stuid
game_1
SELECT gtype FROM Video_games WHERE gname = "Call of Destiny"
What type of game is Call of Destiny?
[Schema (values) (types)]: | game_1 | Student : stuid (text) , lname (number) , fname (text) , age (text) , sex (number) , major (text) , advisor (number) , city_code (number) | Video_Games : gameid (text) , gname (number) , gtype (text) | Plays_Games : stuid (text) , gameid (number) , hours_played (text) | SportsInfo : stuid (text) , sportname (number) , hoursperweek (text) , gamesplayed (text) , onscholarship (number);
[Primary Keys]: student : stuid, video_games : gameid
[Foreign Keys]: plays_games : stuid = student : stuid | plays_games : gameid = video_games : gameid | sportsinfo : stuid = student : stuid
game_1
SELECT count(*) FROM Video_games WHERE gtype = "Massively multiplayer online game"
How many video games have type Massively multiplayer online game?
[Schema (values) (types)]: | game_1 | Student : stuid (text) , lname (number) , fname (text) , age (text) , sex (number) , major (text) , advisor (number) , city_code (number) | Video_Games : gameid (text) , gname (number) , gtype (text) | Plays_Games : stuid (text) , gameid (number) , hours_played (text) | SportsInfo : stuid (text) , sportname (number) , hoursperweek (text) , gamesplayed (text) , onscholarship (number);
[Primary Keys]: student : stuid, video_games : gameid
[Foreign Keys]: plays_games : stuid = student : stuid | plays_games : gameid = video_games : gameid | sportsinfo : stuid = student : stuid
game_1
SELECT count(*) FROM Video_games WHERE gtype = "Massively multiplayer online game"
Count the number of video games with Massively multiplayer online game type .
[Schema (values) (types)]: | game_1 | Student : stuid (text) , lname (number) , fname (text) , age (text) , sex (number) , major (text) , advisor (number) , city_code (number) | Video_Games : gameid (text) , gname (number) , gtype (text) | Plays_Games : stuid (text) , gameid (number) , hours_played (text) | SportsInfo : stuid (text) , sportname (number) , hoursperweek (text) , gamesplayed (text) , onscholarship (number);
[Primary Keys]: student : stuid, video_games : gameid
[Foreign Keys]: plays_games : stuid = student : stuid | plays_games : gameid = video_games : gameid | sportsinfo : stuid = student : stuid
game_1
SELECT gtype , count(*) FROM Video_games GROUP BY gtype
Show all video game types and the number of video games in each type.
[Schema (values) (types)]: | game_1 | Student : stuid (text) , lname (number) , fname (text) , age (text) , sex (number) , major (text) , advisor (number) , city_code (number) | Video_Games : gameid (text) , gname (number) , gtype (text) | Plays_Games : stuid (text) , gameid (number) , hours_played (text) | SportsInfo : stuid (text) , sportname (number) , hoursperweek (text) , gamesplayed (text) , onscholarship (number);
[Primary Keys]: student : stuid, video_games : gameid
[Foreign Keys]: plays_games : stuid = student : stuid | plays_games : gameid = video_games : gameid | sportsinfo : stuid = student : stuid
game_1
SELECT gtype , count(*) FROM Video_games GROUP BY gtype
What are the types of video games and how many are in each type?
[Schema (values) (types)]: | game_1 | Student : stuid (text) , lname (number) , fname (text) , age (text) , sex (number) , major (text) , advisor (number) , city_code (number) | Video_Games : gameid (text) , gname (number) , gtype (text) | Plays_Games : stuid (text) , gameid (number) , hours_played (text) | SportsInfo : stuid (text) , sportname (number) , hoursperweek (text) , gamesplayed (text) , onscholarship (number);
[Primary Keys]: student : stuid, video_games : gameid
[Foreign Keys]: plays_games : stuid = student : stuid | plays_games : gameid = video_games : gameid | sportsinfo : stuid = student : stuid
game_1
SELECT gtype FROM Video_games GROUP BY gtype ORDER BY count(*) DESC LIMIT 1
Which game type has most number of games?
[Schema (values) (types)]: | game_1 | Student : stuid (text) , lname (number) , fname (text) , age (text) , sex (number) , major (text) , advisor (number) , city_code (number) | Video_Games : gameid (text) , gname (number) , gtype (text) | Plays_Games : stuid (text) , gameid (number) , hours_played (text) | SportsInfo : stuid (text) , sportname (number) , hoursperweek (text) , gamesplayed (text) , onscholarship (number);
[Primary Keys]: student : stuid, video_games : gameid
[Foreign Keys]: plays_games : stuid = student : stuid | plays_games : gameid = video_games : gameid | sportsinfo : stuid = student : stuid
game_1
SELECT gtype FROM Video_games GROUP BY gtype ORDER BY count(*) DESC LIMIT 1
What type has the most games?
[Schema (values) (types)]: | game_1 | Student : stuid (text) , lname (number) , fname (text) , age (text) , sex (number) , major (text) , advisor (number) , city_code (number) | Video_Games : gameid (text) , gname (number) , gtype (text) | Plays_Games : stuid (text) , gameid (number) , hours_played (text) | SportsInfo : stuid (text) , sportname (number) , hoursperweek (text) , gamesplayed (text) , onscholarship (number);
[Primary Keys]: student : stuid, video_games : gameid
[Foreign Keys]: plays_games : stuid = student : stuid | plays_games : gameid = video_games : gameid | sportsinfo : stuid = student : stuid
game_1
SELECT gtype FROM Video_games GROUP BY gtype ORDER BY count(*) LIMIT 1
Which game type has least number of games?
[Schema (values) (types)]: | game_1 | Student : stuid (text) , lname (number) , fname (text) , age (text) , sex (number) , major (text) , advisor (number) , city_code (number) | Video_Games : gameid (text) , gname (number) , gtype (text) | Plays_Games : stuid (text) , gameid (number) , hours_played (text) | SportsInfo : stuid (text) , sportname (number) , hoursperweek (text) , gamesplayed (text) , onscholarship (number);
[Primary Keys]: student : stuid, video_games : gameid
[Foreign Keys]: plays_games : stuid = student : stuid | plays_games : gameid = video_games : gameid | sportsinfo : stuid = student : stuid
game_1
SELECT gtype FROM Video_games GROUP BY gtype ORDER BY count(*) LIMIT 1
What is the type with the fewest games?
[Schema (values) (types)]: | game_1 | Student : stuid (text) , lname (number) , fname (text) , age (text) , sex (number) , major (text) , advisor (number) , city_code (number) | Video_Games : gameid (text) , gname (number) , gtype (text) | Plays_Games : stuid (text) , gameid (number) , hours_played (text) | SportsInfo : stuid (text) , sportname (number) , hoursperweek (text) , gamesplayed (text) , onscholarship (number);
[Primary Keys]: student : stuid, video_games : gameid
[Foreign Keys]: plays_games : stuid = student : stuid | plays_games : gameid = video_games : gameid | sportsinfo : stuid = student : stuid
game_1
SELECT StuID FROM Student WHERE city_code = "CHI"
Show ids for all students who live in CHI.
[Schema (values) (types)]: | game_1 | Student : stuid (text) , lname (number) , fname (text) , age (text) , sex (number) , major (text) , advisor (number) , city_code (number) | Video_Games : gameid (text) , gname (number) , gtype (text) | Plays_Games : stuid (text) , gameid (number) , hours_played (text) | SportsInfo : stuid (text) , sportname (number) , hoursperweek (text) , gamesplayed (text) , onscholarship (number);
[Primary Keys]: student : stuid, video_games : gameid
[Foreign Keys]: plays_games : stuid = student : stuid | plays_games : gameid = video_games : gameid | sportsinfo : stuid = student : stuid
game_1
SELECT StuID FROM Student WHERE city_code = "CHI"
What are the ids of all students who live in CHI?
[Schema (values) (types)]: | game_1 | Student : stuid (text) , lname (number) , fname (text) , age (text) , sex (number) , major (text) , advisor (number) , city_code (number) | Video_Games : gameid (text) , gname (number) , gtype (text) | Plays_Games : stuid (text) , gameid (number) , hours_played (text) | SportsInfo : stuid (text) , sportname (number) , hoursperweek (text) , gamesplayed (text) , onscholarship (number);
[Primary Keys]: student : stuid, video_games : gameid
[Foreign Keys]: plays_games : stuid = student : stuid | plays_games : gameid = video_games : gameid | sportsinfo : stuid = student : stuid
game_1
SELECT StuID FROM Student WHERE Advisor = 1121
Show ids for all students who have advisor 1121.
[Schema (values) (types)]: | game_1 | Student : stuid (text) , lname (number) , fname (text) , age (text) , sex (number) , major (text) , advisor (number) , city_code (number) | Video_Games : gameid (text) , gname (number) , gtype (text) | Plays_Games : stuid (text) , gameid (number) , hours_played (text) | SportsInfo : stuid (text) , sportname (number) , hoursperweek (text) , gamesplayed (text) , onscholarship (number);
[Primary Keys]: student : stuid, video_games : gameid
[Foreign Keys]: plays_games : stuid = student : stuid | plays_games : gameid = video_games : gameid | sportsinfo : stuid = student : stuid
game_1
SELECT StuID FROM Student WHERE Advisor = 1121
What are the ids of all students who have advisor number 1121?
[Schema (values) (types)]: | game_1 | Student : stuid (text) , lname (number) , fname (text) , age (text) , sex (number) , major (text) , advisor (number) , city_code (number) | Video_Games : gameid (text) , gname (number) , gtype (text) | Plays_Games : stuid (text) , gameid (number) , hours_played (text) | SportsInfo : stuid (text) , sportname (number) , hoursperweek (text) , gamesplayed (text) , onscholarship (number);
[Primary Keys]: student : stuid, video_games : gameid
[Foreign Keys]: plays_games : stuid = student : stuid | plays_games : gameid = video_games : gameid | sportsinfo : stuid = student : stuid
game_1
SELECT Fname FROM Student WHERE Major = 600
Show first name for all students with major 600.
[Schema (values) (types)]: | game_1 | Student : stuid (text) , lname (number) , fname (text) , age (text) , sex (number) , major (text) , advisor (number) , city_code (number) | Video_Games : gameid (text) , gname (number) , gtype (text) | Plays_Games : stuid (text) , gameid (number) , hours_played (text) | SportsInfo : stuid (text) , sportname (number) , hoursperweek (text) , gamesplayed (text) , onscholarship (number);
[Primary Keys]: student : stuid, video_games : gameid
[Foreign Keys]: plays_games : stuid = student : stuid | plays_games : gameid = video_games : gameid | sportsinfo : stuid = student : stuid
game_1
SELECT Fname FROM Student WHERE Major = 600
What are the first names for all students who are from the major numbered 600?
[Schema (values) (types)]: | game_1 | Student : stuid (text) , lname (number) , fname (text) , age (text) , sex (number) , major (text) , advisor (number) , city_code (number) | Video_Games : gameid (text) , gname (number) , gtype (text) | Plays_Games : stuid (text) , gameid (number) , hours_played (text) | SportsInfo : stuid (text) , sportname (number) , hoursperweek (text) , gamesplayed (text) , onscholarship (number);
[Primary Keys]: student : stuid, video_games : gameid
[Foreign Keys]: plays_games : stuid = student : stuid | plays_games : gameid = video_games : gameid | sportsinfo : stuid = student : stuid
game_1
SELECT major , avg(age) , min(age) , max(age) FROM Student GROUP BY major
Show the average, minimum, and maximum age for different majors.
[Schema (values) (types)]: | game_1 | Student : stuid (text) , lname (number) , fname (text) , age (text) , sex (number) , major (text) , advisor (number) , city_code (number) | Video_Games : gameid (text) , gname (number) , gtype (text) | Plays_Games : stuid (text) , gameid (number) , hours_played (text) | SportsInfo : stuid (text) , sportname (number) , hoursperweek (text) , gamesplayed (text) , onscholarship (number);
[Primary Keys]: student : stuid, video_games : gameid
[Foreign Keys]: plays_games : stuid = student : stuid | plays_games : gameid = video_games : gameid | sportsinfo : stuid = student : stuid
game_1
SELECT major , avg(age) , min(age) , max(age) FROM Student GROUP BY major
What are the average, minimum, and max ages for each of the different majors?
[Schema (values) (types)]: | game_1 | Student : stuid (text) , lname (number) , fname (text) , age (text) , sex (number) , major (text) , advisor (number) , city_code (number) | Video_Games : gameid (text) , gname (number) , gtype (text) | Plays_Games : stuid (text) , gameid (number) , hours_played (text) | SportsInfo : stuid (text) , sportname (number) , hoursperweek (text) , gamesplayed (text) , onscholarship (number);
[Primary Keys]: student : stuid, video_games : gameid
[Foreign Keys]: plays_games : stuid = student : stuid | plays_games : gameid = video_games : gameid | sportsinfo : stuid = student : stuid
game_1
SELECT advisor FROM Student GROUP BY advisor HAVING count(*) >= 2
Show all advisors who have at least two students.
[Schema (values) (types)]: | game_1 | Student : stuid (text) , lname (number) , fname (text) , age (text) , sex (number) , major (text) , advisor (number) , city_code (number) | Video_Games : gameid (text) , gname (number) , gtype (text) | Plays_Games : stuid (text) , gameid (number) , hours_played (text) | SportsInfo : stuid (text) , sportname (number) , hoursperweek (text) , gamesplayed (text) , onscholarship (number);
[Primary Keys]: student : stuid, video_games : gameid
[Foreign Keys]: plays_games : stuid = student : stuid | plays_games : gameid = video_games : gameid | sportsinfo : stuid = student : stuid
game_1
SELECT advisor FROM Student GROUP BY advisor HAVING count(*) >= 2
What are the advisors
[Schema (values) (types)]: | game_1 | Student : stuid (text) , lname (number) , fname (text) , age (text) , sex (number) , major (text) , advisor (number) , city_code (number) | Video_Games : gameid (text) , gname (number) , gtype (text) | Plays_Games : stuid (text) , gameid (number) , hours_played (text) | SportsInfo : stuid (text) , sportname (number) , hoursperweek (text) , gamesplayed (text) , onscholarship (number);
[Primary Keys]: student : stuid, video_games : gameid
[Foreign Keys]: plays_games : stuid = student : stuid | plays_games : gameid = video_games : gameid | sportsinfo : stuid = student : stuid
game_1
SELECT count(DISTINCT sportname) FROM Sportsinfo
How many sports do we have?
[Schema (values) (types)]: | game_1 | Student : stuid (text) , lname (number) , fname (text) , age (text) , sex (number) , major (text) , advisor (number) , city_code (number) | Video_Games : gameid (text) , gname (number) , gtype (text) | Plays_Games : stuid (text) , gameid (number) , hours_played (text) | SportsInfo : stuid (text) , sportname (number) , hoursperweek (text) , gamesplayed (text) , onscholarship (number);
[Primary Keys]: student : stuid, video_games : gameid
[Foreign Keys]: plays_games : stuid = student : stuid | plays_games : gameid = video_games : gameid | sportsinfo : stuid = student : stuid