db_id
stringclasses
146 values
question_en
stringlengths
3
224
hardness
stringclasses
4 values
schema_llm
stringclasses
146 values
query_llm
stringlengths
18
631
schema_llm_min
stringclasses
147 values
schema_dict
stringclasses
146 values
tables_and_columns
stringlengths
18
266
schema_reduzido
stringlengths
25
718
schema_reduzido_only_tables
stringlengths
80
2.27k
restaurants
where is the best restaurant in bay area for american food ?
extra
Table GEOGRAPHIC ( GEOGRAPHIC.CITY_NAME (TEXT), GEOGRAPHIC.COUNTY (TEXT), GEOGRAPHIC.REGION (TEXT), ) Table LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), LOCATION.STREET_NAME (TEXT), LOCATION.CITY_NAME (TEXT), ) Table RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.FOOD_TYPE (TEXT), RESTAURANT.CITY_NAME (TEXT), RESTAURANT.RATING (REAL), ) Possible JOINs: LOCATION.RESTAURANT_ID = RESTAURANT.RESTAURANT_ID LOCATION.CITY_NAME = GEOGRAPHIC.CITY_NAME RESTAURANT.CITY_NAME = GEOGRAPHIC.CITY_NAME
SELECT t3.house_number , restaurant.name FROM restaurant JOIN geographic ON restaurant.city_name = geographic.city_name JOIN LOCATION AS t3 ON restaurant.id = t3.restaurant_id WHERE geographic.region = "bay area" AND restaurant.food_type = "american" AND restaurant.rating = ( SELECT MAX ( restaurant.rating ) FROM restaurant JOIN geographic ON restaurant.city_name = geographic.city_name WHERE geographic.region = "bay area" AND restaurant.food_type = "american" );
Table geographic ( geographic.city_name (TEXT), geographic.county (TEXT), geographic.region (TEXT), ) Table location ( location.restaurant_id (INT), location.house_number (INT), location.street_name (TEXT), location.city_name (TEXT), ) Table restaurant ( restaurant.id (INT), restaurant.name (TEXT), restaurant.food_type (TEXT), restaurant.city_name (TEXT), restaurant.rating (REAL), ) Possible JOINs: location.restaurant_id = restaurant.restaurant_id location.city_name = geographic.city_name restaurant.city_name = geographic.city_name
{ 'geographic': ['city_name', 'county', 'region'], 'restaurant': ['id', 'name', 'food_type', 'city_name', 'rating'], 'location': ['restaurant_id', 'house_number', 'street_name', 'city_name'] }
{ 'restaurant': ['id', 'name', 'food_type', 'city_name', 'rating'], 'geographic': ['city_name', 'region'], 'location': ['restaurant_id', 'house_number'] }
TABLE GEOGRAPHIC ( GEOGRAPHIC.CITY_NAME (TEXT), GEOGRAPHIC.REGION (TEXT), ) TABLE LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), ) TABLE RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.FOOD_TYPE (TEXT), RESTAURANT.CITY_NAME (TEXT), RESTAURANT.RATING (REAL), ) Possible JOINs:
TABLE GEOGRAPHIC ( GEOGRAPHIC.CITY_NAME (TEXT), GEOGRAPHIC.COUNTY (TEXT), GEOGRAPHIC.REGION (TEXT), ) TABLE LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), LOCATION.STREET_NAME (TEXT), LOCATION.CITY_NAME (TEXT), ) TABLE RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.FOOD_TYPE (TEXT), RESTAURANT.CITY_NAME (TEXT), RESTAURANT.RATING (REAL), ) Possible JOINs: LOCATION.RESTAURANT_ID = RESTAURANT.RESTAURANT_ID LOCATION.CITY_NAME = GEOGRAPHIC.CITY_NAME RESTAURANT.CITY_NAME = GEOGRAPHIC.CITY_NAME
restaurants
what is the best restaurant in bay area for american food ?
extra
Table GEOGRAPHIC ( GEOGRAPHIC.CITY_NAME (TEXT), GEOGRAPHIC.COUNTY (TEXT), GEOGRAPHIC.REGION (TEXT), ) Table LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), LOCATION.STREET_NAME (TEXT), LOCATION.CITY_NAME (TEXT), ) Table RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.FOOD_TYPE (TEXT), RESTAURANT.CITY_NAME (TEXT), RESTAURANT.RATING (REAL), ) Possible JOINs: LOCATION.RESTAURANT_ID = RESTAURANT.RESTAURANT_ID LOCATION.CITY_NAME = GEOGRAPHIC.CITY_NAME RESTAURANT.CITY_NAME = GEOGRAPHIC.CITY_NAME
SELECT t3.house_number , restaurant.name FROM restaurant JOIN geographic ON restaurant.city_name = geographic.city_name JOIN LOCATION AS t3 ON restaurant.id = t3.restaurant_id WHERE geographic.region = "bay area" AND restaurant.food_type = "american" AND restaurant.rating = ( SELECT MAX ( restaurant.rating ) FROM restaurant JOIN geographic ON restaurant.city_name = geographic.city_name WHERE geographic.region = "bay area" AND restaurant.food_type = "american" );
Table geographic ( geographic.city_name (TEXT), geographic.county (TEXT), geographic.region (TEXT), ) Table location ( location.restaurant_id (INT), location.house_number (INT), location.street_name (TEXT), location.city_name (TEXT), ) Table restaurant ( restaurant.id (INT), restaurant.name (TEXT), restaurant.food_type (TEXT), restaurant.city_name (TEXT), restaurant.rating (REAL), ) Possible JOINs: location.restaurant_id = restaurant.restaurant_id location.city_name = geographic.city_name restaurant.city_name = geographic.city_name
{ 'geographic': ['city_name', 'county', 'region'], 'restaurant': ['id', 'name', 'food_type', 'city_name', 'rating'], 'location': ['restaurant_id', 'house_number', 'street_name', 'city_name'] }
{ 'restaurant': ['id', 'name', 'food_type', 'city_name', 'rating'], 'geographic': ['city_name', 'region'], 'location': ['restaurant_id', 'house_number'] }
TABLE GEOGRAPHIC ( GEOGRAPHIC.CITY_NAME (TEXT), GEOGRAPHIC.REGION (TEXT), ) TABLE LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), ) TABLE RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.FOOD_TYPE (TEXT), RESTAURANT.CITY_NAME (TEXT), RESTAURANT.RATING (REAL), ) Possible JOINs:
TABLE GEOGRAPHIC ( GEOGRAPHIC.CITY_NAME (TEXT), GEOGRAPHIC.COUNTY (TEXT), GEOGRAPHIC.REGION (TEXT), ) TABLE LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), LOCATION.STREET_NAME (TEXT), LOCATION.CITY_NAME (TEXT), ) TABLE RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.FOOD_TYPE (TEXT), RESTAURANT.CITY_NAME (TEXT), RESTAURANT.RATING (REAL), ) Possible JOINs: LOCATION.RESTAURANT_ID = RESTAURANT.RESTAURANT_ID LOCATION.CITY_NAME = GEOGRAPHIC.CITY_NAME RESTAURANT.CITY_NAME = GEOGRAPHIC.CITY_NAME
restaurants
what is the best american restaurant in the bay area ?
extra
Table GEOGRAPHIC ( GEOGRAPHIC.CITY_NAME (TEXT), GEOGRAPHIC.COUNTY (TEXT), GEOGRAPHIC.REGION (TEXT), ) Table LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), LOCATION.STREET_NAME (TEXT), LOCATION.CITY_NAME (TEXT), ) Table RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.FOOD_TYPE (TEXT), RESTAURANT.CITY_NAME (TEXT), RESTAURANT.RATING (REAL), ) Possible JOINs: LOCATION.RESTAURANT_ID = RESTAURANT.RESTAURANT_ID LOCATION.CITY_NAME = GEOGRAPHIC.CITY_NAME RESTAURANT.CITY_NAME = GEOGRAPHIC.CITY_NAME
SELECT t3.house_number , restaurant.name FROM restaurant JOIN geographic ON restaurant.city_name = geographic.city_name JOIN LOCATION AS t3 ON restaurant.id = t3.restaurant_id WHERE geographic.region = "bay area" AND restaurant.food_type = "american" AND restaurant.rating = ( SELECT MAX ( restaurant.rating ) FROM restaurant JOIN geographic ON restaurant.city_name = geographic.city_name WHERE geographic.region = "bay area" AND restaurant.food_type = "american" );
Table geographic ( geographic.city_name (TEXT), geographic.county (TEXT), geographic.region (TEXT), ) Table location ( location.restaurant_id (INT), location.house_number (INT), location.street_name (TEXT), location.city_name (TEXT), ) Table restaurant ( restaurant.id (INT), restaurant.name (TEXT), restaurant.food_type (TEXT), restaurant.city_name (TEXT), restaurant.rating (REAL), ) Possible JOINs: location.restaurant_id = restaurant.restaurant_id location.city_name = geographic.city_name restaurant.city_name = geographic.city_name
{ 'geographic': ['city_name', 'county', 'region'], 'restaurant': ['id', 'name', 'food_type', 'city_name', 'rating'], 'location': ['restaurant_id', 'house_number', 'street_name', 'city_name'] }
{ 'restaurant': ['id', 'name', 'food_type', 'city_name', 'rating'], 'geographic': ['city_name', 'region'], 'location': ['restaurant_id', 'house_number'] }
TABLE GEOGRAPHIC ( GEOGRAPHIC.CITY_NAME (TEXT), GEOGRAPHIC.REGION (TEXT), ) TABLE LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), ) TABLE RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.FOOD_TYPE (TEXT), RESTAURANT.CITY_NAME (TEXT), RESTAURANT.RATING (REAL), ) Possible JOINs:
TABLE GEOGRAPHIC ( GEOGRAPHIC.CITY_NAME (TEXT), GEOGRAPHIC.COUNTY (TEXT), GEOGRAPHIC.REGION (TEXT), ) TABLE LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), LOCATION.STREET_NAME (TEXT), LOCATION.CITY_NAME (TEXT), ) TABLE RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.FOOD_TYPE (TEXT), RESTAURANT.CITY_NAME (TEXT), RESTAURANT.RATING (REAL), ) Possible JOINs: LOCATION.RESTAURANT_ID = RESTAURANT.RESTAURANT_ID LOCATION.CITY_NAME = GEOGRAPHIC.CITY_NAME RESTAURANT.CITY_NAME = GEOGRAPHIC.CITY_NAME
restaurants
where is the best american restaurant in the bay area ?
extra
Table GEOGRAPHIC ( GEOGRAPHIC.CITY_NAME (TEXT), GEOGRAPHIC.COUNTY (TEXT), GEOGRAPHIC.REGION (TEXT), ) Table LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), LOCATION.STREET_NAME (TEXT), LOCATION.CITY_NAME (TEXT), ) Table RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.FOOD_TYPE (TEXT), RESTAURANT.CITY_NAME (TEXT), RESTAURANT.RATING (REAL), ) Possible JOINs: LOCATION.RESTAURANT_ID = RESTAURANT.RESTAURANT_ID LOCATION.CITY_NAME = GEOGRAPHIC.CITY_NAME RESTAURANT.CITY_NAME = GEOGRAPHIC.CITY_NAME
SELECT t3.house_number , restaurant.name FROM restaurant JOIN geographic ON restaurant.city_name = geographic.city_name JOIN LOCATION AS t3 ON restaurant.id = t3.restaurant_id WHERE geographic.region = "bay area" AND restaurant.food_type = "american" AND restaurant.rating = ( SELECT MAX ( restaurant.rating ) FROM restaurant JOIN geographic ON restaurant.city_name = geographic.city_name WHERE geographic.region = "bay area" AND restaurant.food_type = "american" );
Table geographic ( geographic.city_name (TEXT), geographic.county (TEXT), geographic.region (TEXT), ) Table location ( location.restaurant_id (INT), location.house_number (INT), location.street_name (TEXT), location.city_name (TEXT), ) Table restaurant ( restaurant.id (INT), restaurant.name (TEXT), restaurant.food_type (TEXT), restaurant.city_name (TEXT), restaurant.rating (REAL), ) Possible JOINs: location.restaurant_id = restaurant.restaurant_id location.city_name = geographic.city_name restaurant.city_name = geographic.city_name
{ 'geographic': ['city_name', 'county', 'region'], 'restaurant': ['id', 'name', 'food_type', 'city_name', 'rating'], 'location': ['restaurant_id', 'house_number', 'street_name', 'city_name'] }
{ 'restaurant': ['id', 'name', 'food_type', 'city_name', 'rating'], 'geographic': ['city_name', 'region'], 'location': ['restaurant_id', 'house_number'] }
TABLE GEOGRAPHIC ( GEOGRAPHIC.CITY_NAME (TEXT), GEOGRAPHIC.REGION (TEXT), ) TABLE LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), ) TABLE RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.FOOD_TYPE (TEXT), RESTAURANT.CITY_NAME (TEXT), RESTAURANT.RATING (REAL), ) Possible JOINs:
TABLE GEOGRAPHIC ( GEOGRAPHIC.CITY_NAME (TEXT), GEOGRAPHIC.COUNTY (TEXT), GEOGRAPHIC.REGION (TEXT), ) TABLE LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), LOCATION.STREET_NAME (TEXT), LOCATION.CITY_NAME (TEXT), ) TABLE RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.FOOD_TYPE (TEXT), RESTAURANT.CITY_NAME (TEXT), RESTAURANT.RATING (REAL), ) Possible JOINs: LOCATION.RESTAURANT_ID = RESTAURANT.RESTAURANT_ID LOCATION.CITY_NAME = GEOGRAPHIC.CITY_NAME RESTAURANT.CITY_NAME = GEOGRAPHIC.CITY_NAME
restaurants
what is the best american in the bay area ?
extra
Table GEOGRAPHIC ( GEOGRAPHIC.CITY_NAME (TEXT), GEOGRAPHIC.COUNTY (TEXT), GEOGRAPHIC.REGION (TEXT), ) Table LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), LOCATION.STREET_NAME (TEXT), LOCATION.CITY_NAME (TEXT), ) Table RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.FOOD_TYPE (TEXT), RESTAURANT.CITY_NAME (TEXT), RESTAURANT.RATING (REAL), ) Possible JOINs: LOCATION.RESTAURANT_ID = RESTAURANT.RESTAURANT_ID LOCATION.CITY_NAME = GEOGRAPHIC.CITY_NAME RESTAURANT.CITY_NAME = GEOGRAPHIC.CITY_NAME
SELECT t3.house_number , restaurant.name FROM restaurant JOIN geographic ON restaurant.city_name = geographic.city_name JOIN LOCATION AS t3 ON restaurant.id = t3.restaurant_id WHERE geographic.region = "bay area" AND restaurant.food_type = "american" AND restaurant.rating = ( SELECT MAX ( restaurant.rating ) FROM restaurant JOIN geographic ON restaurant.city_name = geographic.city_name WHERE geographic.region = "bay area" AND restaurant.food_type = "american" );
Table geographic ( geographic.city_name (TEXT), geographic.county (TEXT), geographic.region (TEXT), ) Table location ( location.restaurant_id (INT), location.house_number (INT), location.street_name (TEXT), location.city_name (TEXT), ) Table restaurant ( restaurant.id (INT), restaurant.name (TEXT), restaurant.food_type (TEXT), restaurant.city_name (TEXT), restaurant.rating (REAL), ) Possible JOINs: location.restaurant_id = restaurant.restaurant_id location.city_name = geographic.city_name restaurant.city_name = geographic.city_name
{ 'geographic': ['city_name', 'county', 'region'], 'restaurant': ['id', 'name', 'food_type', 'city_name', 'rating'], 'location': ['restaurant_id', 'house_number', 'street_name', 'city_name'] }
{ 'restaurant': ['id', 'name', 'food_type', 'city_name', 'rating'], 'geographic': ['city_name', 'region'], 'location': ['restaurant_id', 'house_number'] }
TABLE GEOGRAPHIC ( GEOGRAPHIC.CITY_NAME (TEXT), GEOGRAPHIC.REGION (TEXT), ) TABLE LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), ) TABLE RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.FOOD_TYPE (TEXT), RESTAURANT.CITY_NAME (TEXT), RESTAURANT.RATING (REAL), ) Possible JOINs:
TABLE GEOGRAPHIC ( GEOGRAPHIC.CITY_NAME (TEXT), GEOGRAPHIC.COUNTY (TEXT), GEOGRAPHIC.REGION (TEXT), ) TABLE LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), LOCATION.STREET_NAME (TEXT), LOCATION.CITY_NAME (TEXT), ) TABLE RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.FOOD_TYPE (TEXT), RESTAURANT.CITY_NAME (TEXT), RESTAURANT.RATING (REAL), ) Possible JOINs: LOCATION.RESTAURANT_ID = RESTAURANT.RESTAURANT_ID LOCATION.CITY_NAME = GEOGRAPHIC.CITY_NAME RESTAURANT.CITY_NAME = GEOGRAPHIC.CITY_NAME
restaurants
give me the best restaurant in the bay area for american food ?
extra
Table GEOGRAPHIC ( GEOGRAPHIC.CITY_NAME (TEXT), GEOGRAPHIC.COUNTY (TEXT), GEOGRAPHIC.REGION (TEXT), ) Table LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), LOCATION.STREET_NAME (TEXT), LOCATION.CITY_NAME (TEXT), ) Table RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.FOOD_TYPE (TEXT), RESTAURANT.CITY_NAME (TEXT), RESTAURANT.RATING (REAL), ) Possible JOINs: LOCATION.RESTAURANT_ID = RESTAURANT.RESTAURANT_ID LOCATION.CITY_NAME = GEOGRAPHIC.CITY_NAME RESTAURANT.CITY_NAME = GEOGRAPHIC.CITY_NAME
SELECT t3.house_number , restaurant.name FROM restaurant JOIN geographic ON restaurant.city_name = geographic.city_name JOIN LOCATION AS t3 ON restaurant.id = t3.restaurant_id WHERE geographic.region = "bay area" AND restaurant.food_type = "american" AND restaurant.rating = ( SELECT MAX ( restaurant.rating ) FROM restaurant JOIN geographic ON restaurant.city_name = geographic.city_name WHERE geographic.region = "bay area" AND restaurant.food_type = "american" );
Table geographic ( geographic.city_name (TEXT), geographic.county (TEXT), geographic.region (TEXT), ) Table location ( location.restaurant_id (INT), location.house_number (INT), location.street_name (TEXT), location.city_name (TEXT), ) Table restaurant ( restaurant.id (INT), restaurant.name (TEXT), restaurant.food_type (TEXT), restaurant.city_name (TEXT), restaurant.rating (REAL), ) Possible JOINs: location.restaurant_id = restaurant.restaurant_id location.city_name = geographic.city_name restaurant.city_name = geographic.city_name
{ 'geographic': ['city_name', 'county', 'region'], 'restaurant': ['id', 'name', 'food_type', 'city_name', 'rating'], 'location': ['restaurant_id', 'house_number', 'street_name', 'city_name'] }
{ 'restaurant': ['id', 'name', 'food_type', 'city_name', 'rating'], 'geographic': ['city_name', 'region'], 'location': ['restaurant_id', 'house_number'] }
TABLE GEOGRAPHIC ( GEOGRAPHIC.CITY_NAME (TEXT), GEOGRAPHIC.REGION (TEXT), ) TABLE LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), ) TABLE RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.FOOD_TYPE (TEXT), RESTAURANT.CITY_NAME (TEXT), RESTAURANT.RATING (REAL), ) Possible JOINs:
TABLE GEOGRAPHIC ( GEOGRAPHIC.CITY_NAME (TEXT), GEOGRAPHIC.COUNTY (TEXT), GEOGRAPHIC.REGION (TEXT), ) TABLE LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), LOCATION.STREET_NAME (TEXT), LOCATION.CITY_NAME (TEXT), ) TABLE RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.FOOD_TYPE (TEXT), RESTAURANT.CITY_NAME (TEXT), RESTAURANT.RATING (REAL), ) Possible JOINs: LOCATION.RESTAURANT_ID = RESTAURANT.RESTAURANT_ID LOCATION.CITY_NAME = GEOGRAPHIC.CITY_NAME RESTAURANT.CITY_NAME = GEOGRAPHIC.CITY_NAME
restaurants
give me the best restaurant in bay area for american food ?
extra
Table GEOGRAPHIC ( GEOGRAPHIC.CITY_NAME (TEXT), GEOGRAPHIC.COUNTY (TEXT), GEOGRAPHIC.REGION (TEXT), ) Table LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), LOCATION.STREET_NAME (TEXT), LOCATION.CITY_NAME (TEXT), ) Table RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.FOOD_TYPE (TEXT), RESTAURANT.CITY_NAME (TEXT), RESTAURANT.RATING (REAL), ) Possible JOINs: LOCATION.RESTAURANT_ID = RESTAURANT.RESTAURANT_ID LOCATION.CITY_NAME = GEOGRAPHIC.CITY_NAME RESTAURANT.CITY_NAME = GEOGRAPHIC.CITY_NAME
SELECT t3.house_number , restaurant.name FROM restaurant JOIN geographic ON restaurant.city_name = geographic.city_name JOIN LOCATION AS t3 ON restaurant.id = t3.restaurant_id WHERE geographic.region = "bay area" AND restaurant.food_type = "american" AND restaurant.rating = ( SELECT MAX ( restaurant.rating ) FROM restaurant JOIN geographic ON restaurant.city_name = geographic.city_name WHERE geographic.region = "bay area" AND restaurant.food_type = "american" );
Table geographic ( geographic.city_name (TEXT), geographic.county (TEXT), geographic.region (TEXT), ) Table location ( location.restaurant_id (INT), location.house_number (INT), location.street_name (TEXT), location.city_name (TEXT), ) Table restaurant ( restaurant.id (INT), restaurant.name (TEXT), restaurant.food_type (TEXT), restaurant.city_name (TEXT), restaurant.rating (REAL), ) Possible JOINs: location.restaurant_id = restaurant.restaurant_id location.city_name = geographic.city_name restaurant.city_name = geographic.city_name
{ 'geographic': ['city_name', 'county', 'region'], 'restaurant': ['id', 'name', 'food_type', 'city_name', 'rating'], 'location': ['restaurant_id', 'house_number', 'street_name', 'city_name'] }
{ 'restaurant': ['id', 'name', 'food_type', 'city_name', 'rating'], 'geographic': ['city_name', 'region'], 'location': ['restaurant_id', 'house_number'] }
TABLE GEOGRAPHIC ( GEOGRAPHIC.CITY_NAME (TEXT), GEOGRAPHIC.REGION (TEXT), ) TABLE LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), ) TABLE RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.FOOD_TYPE (TEXT), RESTAURANT.CITY_NAME (TEXT), RESTAURANT.RATING (REAL), ) Possible JOINs:
TABLE GEOGRAPHIC ( GEOGRAPHIC.CITY_NAME (TEXT), GEOGRAPHIC.COUNTY (TEXT), GEOGRAPHIC.REGION (TEXT), ) TABLE LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), LOCATION.STREET_NAME (TEXT), LOCATION.CITY_NAME (TEXT), ) TABLE RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.FOOD_TYPE (TEXT), RESTAURANT.CITY_NAME (TEXT), RESTAURANT.RATING (REAL), ) Possible JOINs: LOCATION.RESTAURANT_ID = RESTAURANT.RESTAURANT_ID LOCATION.CITY_NAME = GEOGRAPHIC.CITY_NAME RESTAURANT.CITY_NAME = GEOGRAPHIC.CITY_NAME
restaurants
what is the best restaurant in the bay area for american food ?
extra
Table GEOGRAPHIC ( GEOGRAPHIC.CITY_NAME (TEXT), GEOGRAPHIC.COUNTY (TEXT), GEOGRAPHIC.REGION (TEXT), ) Table LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), LOCATION.STREET_NAME (TEXT), LOCATION.CITY_NAME (TEXT), ) Table RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.FOOD_TYPE (TEXT), RESTAURANT.CITY_NAME (TEXT), RESTAURANT.RATING (REAL), ) Possible JOINs: LOCATION.RESTAURANT_ID = RESTAURANT.RESTAURANT_ID LOCATION.CITY_NAME = GEOGRAPHIC.CITY_NAME RESTAURANT.CITY_NAME = GEOGRAPHIC.CITY_NAME
SELECT t3.house_number , restaurant.name FROM restaurant JOIN geographic ON restaurant.city_name = geographic.city_name JOIN LOCATION AS t3 ON restaurant.id = t3.restaurant_id WHERE geographic.region = "bay area" AND restaurant.food_type = "american" AND restaurant.rating = ( SELECT MAX ( restaurant.rating ) FROM restaurant JOIN geographic ON restaurant.city_name = geographic.city_name WHERE geographic.region = "bay area" AND restaurant.food_type = "american" );
Table geographic ( geographic.city_name (TEXT), geographic.county (TEXT), geographic.region (TEXT), ) Table location ( location.restaurant_id (INT), location.house_number (INT), location.street_name (TEXT), location.city_name (TEXT), ) Table restaurant ( restaurant.id (INT), restaurant.name (TEXT), restaurant.food_type (TEXT), restaurant.city_name (TEXT), restaurant.rating (REAL), ) Possible JOINs: location.restaurant_id = restaurant.restaurant_id location.city_name = geographic.city_name restaurant.city_name = geographic.city_name
{ 'geographic': ['city_name', 'county', 'region'], 'restaurant': ['id', 'name', 'food_type', 'city_name', 'rating'], 'location': ['restaurant_id', 'house_number', 'street_name', 'city_name'] }
{ 'restaurant': ['id', 'name', 'food_type', 'city_name', 'rating'], 'geographic': ['city_name', 'region'], 'location': ['restaurant_id', 'house_number'] }
TABLE GEOGRAPHIC ( GEOGRAPHIC.CITY_NAME (TEXT), GEOGRAPHIC.REGION (TEXT), ) TABLE LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), ) TABLE RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.FOOD_TYPE (TEXT), RESTAURANT.CITY_NAME (TEXT), RESTAURANT.RATING (REAL), ) Possible JOINs:
TABLE GEOGRAPHIC ( GEOGRAPHIC.CITY_NAME (TEXT), GEOGRAPHIC.COUNTY (TEXT), GEOGRAPHIC.REGION (TEXT), ) TABLE LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), LOCATION.STREET_NAME (TEXT), LOCATION.CITY_NAME (TEXT), ) TABLE RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.FOOD_TYPE (TEXT), RESTAURANT.CITY_NAME (TEXT), RESTAURANT.RATING (REAL), ) Possible JOINs: LOCATION.RESTAURANT_ID = RESTAURANT.RESTAURANT_ID LOCATION.CITY_NAME = GEOGRAPHIC.CITY_NAME RESTAURANT.CITY_NAME = GEOGRAPHIC.CITY_NAME
restaurants
where is the best american in the bay area ?
extra
Table GEOGRAPHIC ( GEOGRAPHIC.CITY_NAME (TEXT), GEOGRAPHIC.COUNTY (TEXT), GEOGRAPHIC.REGION (TEXT), ) Table LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), LOCATION.STREET_NAME (TEXT), LOCATION.CITY_NAME (TEXT), ) Table RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.FOOD_TYPE (TEXT), RESTAURANT.CITY_NAME (TEXT), RESTAURANT.RATING (REAL), ) Possible JOINs: LOCATION.RESTAURANT_ID = RESTAURANT.RESTAURANT_ID LOCATION.CITY_NAME = GEOGRAPHIC.CITY_NAME RESTAURANT.CITY_NAME = GEOGRAPHIC.CITY_NAME
SELECT t3.house_number , restaurant.name FROM restaurant JOIN geographic ON restaurant.city_name = geographic.city_name JOIN LOCATION AS t3 ON restaurant.id = t3.restaurant_id WHERE geographic.region = "bay area" AND restaurant.food_type = "american" AND restaurant.rating = ( SELECT MAX ( restaurant.rating ) FROM restaurant JOIN geographic ON restaurant.city_name = geographic.city_name WHERE geographic.region = "bay area" AND restaurant.food_type = "american" );
Table geographic ( geographic.city_name (TEXT), geographic.county (TEXT), geographic.region (TEXT), ) Table location ( location.restaurant_id (INT), location.house_number (INT), location.street_name (TEXT), location.city_name (TEXT), ) Table restaurant ( restaurant.id (INT), restaurant.name (TEXT), restaurant.food_type (TEXT), restaurant.city_name (TEXT), restaurant.rating (REAL), ) Possible JOINs: location.restaurant_id = restaurant.restaurant_id location.city_name = geographic.city_name restaurant.city_name = geographic.city_name
{ 'geographic': ['city_name', 'county', 'region'], 'restaurant': ['id', 'name', 'food_type', 'city_name', 'rating'], 'location': ['restaurant_id', 'house_number', 'street_name', 'city_name'] }
{ 'restaurant': ['id', 'name', 'food_type', 'city_name', 'rating'], 'geographic': ['city_name', 'region'], 'location': ['restaurant_id', 'house_number'] }
TABLE GEOGRAPHIC ( GEOGRAPHIC.CITY_NAME (TEXT), GEOGRAPHIC.REGION (TEXT), ) TABLE LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), ) TABLE RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.FOOD_TYPE (TEXT), RESTAURANT.CITY_NAME (TEXT), RESTAURANT.RATING (REAL), ) Possible JOINs:
TABLE GEOGRAPHIC ( GEOGRAPHIC.CITY_NAME (TEXT), GEOGRAPHIC.COUNTY (TEXT), GEOGRAPHIC.REGION (TEXT), ) TABLE LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), LOCATION.STREET_NAME (TEXT), LOCATION.CITY_NAME (TEXT), ) TABLE RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.FOOD_TYPE (TEXT), RESTAURANT.CITY_NAME (TEXT), RESTAURANT.RATING (REAL), ) Possible JOINs: LOCATION.RESTAURANT_ID = RESTAURANT.RESTAURANT_ID LOCATION.CITY_NAME = GEOGRAPHIC.CITY_NAME RESTAURANT.CITY_NAME = GEOGRAPHIC.CITY_NAME
restaurants
give me the best american in the bay area ?
extra
Table GEOGRAPHIC ( GEOGRAPHIC.CITY_NAME (TEXT), GEOGRAPHIC.COUNTY (TEXT), GEOGRAPHIC.REGION (TEXT), ) Table LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), LOCATION.STREET_NAME (TEXT), LOCATION.CITY_NAME (TEXT), ) Table RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.FOOD_TYPE (TEXT), RESTAURANT.CITY_NAME (TEXT), RESTAURANT.RATING (REAL), ) Possible JOINs: LOCATION.RESTAURANT_ID = RESTAURANT.RESTAURANT_ID LOCATION.CITY_NAME = GEOGRAPHIC.CITY_NAME RESTAURANT.CITY_NAME = GEOGRAPHIC.CITY_NAME
SELECT t3.house_number , restaurant.name FROM restaurant JOIN geographic ON restaurant.city_name = geographic.city_name JOIN LOCATION AS t3 ON restaurant.id = t3.restaurant_id WHERE geographic.region = "bay area" AND restaurant.food_type = "american" AND restaurant.rating = ( SELECT MAX ( restaurant.rating ) FROM restaurant JOIN geographic ON restaurant.city_name = geographic.city_name WHERE geographic.region = "bay area" AND restaurant.food_type = "american" );
Table geographic ( geographic.city_name (TEXT), geographic.county (TEXT), geographic.region (TEXT), ) Table location ( location.restaurant_id (INT), location.house_number (INT), location.street_name (TEXT), location.city_name (TEXT), ) Table restaurant ( restaurant.id (INT), restaurant.name (TEXT), restaurant.food_type (TEXT), restaurant.city_name (TEXT), restaurant.rating (REAL), ) Possible JOINs: location.restaurant_id = restaurant.restaurant_id location.city_name = geographic.city_name restaurant.city_name = geographic.city_name
{ 'geographic': ['city_name', 'county', 'region'], 'restaurant': ['id', 'name', 'food_type', 'city_name', 'rating'], 'location': ['restaurant_id', 'house_number', 'street_name', 'city_name'] }
{ 'restaurant': ['id', 'name', 'food_type', 'city_name', 'rating'], 'geographic': ['city_name', 'region'], 'location': ['restaurant_id', 'house_number'] }
TABLE GEOGRAPHIC ( GEOGRAPHIC.CITY_NAME (TEXT), GEOGRAPHIC.REGION (TEXT), ) TABLE LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), ) TABLE RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.FOOD_TYPE (TEXT), RESTAURANT.CITY_NAME (TEXT), RESTAURANT.RATING (REAL), ) Possible JOINs:
TABLE GEOGRAPHIC ( GEOGRAPHIC.CITY_NAME (TEXT), GEOGRAPHIC.COUNTY (TEXT), GEOGRAPHIC.REGION (TEXT), ) TABLE LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), LOCATION.STREET_NAME (TEXT), LOCATION.CITY_NAME (TEXT), ) TABLE RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.FOOD_TYPE (TEXT), RESTAURANT.CITY_NAME (TEXT), RESTAURANT.RATING (REAL), ) Possible JOINs: LOCATION.RESTAURANT_ID = RESTAURANT.RESTAURANT_ID LOCATION.CITY_NAME = GEOGRAPHIC.CITY_NAME RESTAURANT.CITY_NAME = GEOGRAPHIC.CITY_NAME
restaurants
give me the best american restaurant in the bay area ?
extra
Table GEOGRAPHIC ( GEOGRAPHIC.CITY_NAME (TEXT), GEOGRAPHIC.COUNTY (TEXT), GEOGRAPHIC.REGION (TEXT), ) Table LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), LOCATION.STREET_NAME (TEXT), LOCATION.CITY_NAME (TEXT), ) Table RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.FOOD_TYPE (TEXT), RESTAURANT.CITY_NAME (TEXT), RESTAURANT.RATING (REAL), ) Possible JOINs: LOCATION.RESTAURANT_ID = RESTAURANT.RESTAURANT_ID LOCATION.CITY_NAME = GEOGRAPHIC.CITY_NAME RESTAURANT.CITY_NAME = GEOGRAPHIC.CITY_NAME
SELECT t3.house_number , restaurant.name FROM restaurant JOIN geographic ON restaurant.city_name = geographic.city_name JOIN LOCATION AS t3 ON restaurant.id = t3.restaurant_id WHERE geographic.region = "bay area" AND restaurant.food_type = "american" AND restaurant.rating = ( SELECT MAX ( restaurant.rating ) FROM restaurant JOIN geographic ON restaurant.city_name = geographic.city_name WHERE geographic.region = "bay area" AND restaurant.food_type = "american" );
Table geographic ( geographic.city_name (TEXT), geographic.county (TEXT), geographic.region (TEXT), ) Table location ( location.restaurant_id (INT), location.house_number (INT), location.street_name (TEXT), location.city_name (TEXT), ) Table restaurant ( restaurant.id (INT), restaurant.name (TEXT), restaurant.food_type (TEXT), restaurant.city_name (TEXT), restaurant.rating (REAL), ) Possible JOINs: location.restaurant_id = restaurant.restaurant_id location.city_name = geographic.city_name restaurant.city_name = geographic.city_name
{ 'geographic': ['city_name', 'county', 'region'], 'restaurant': ['id', 'name', 'food_type', 'city_name', 'rating'], 'location': ['restaurant_id', 'house_number', 'street_name', 'city_name'] }
{ 'restaurant': ['id', 'name', 'food_type', 'city_name', 'rating'], 'geographic': ['city_name', 'region'], 'location': ['restaurant_id', 'house_number'] }
TABLE GEOGRAPHIC ( GEOGRAPHIC.CITY_NAME (TEXT), GEOGRAPHIC.REGION (TEXT), ) TABLE LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), ) TABLE RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.FOOD_TYPE (TEXT), RESTAURANT.CITY_NAME (TEXT), RESTAURANT.RATING (REAL), ) Possible JOINs:
TABLE GEOGRAPHIC ( GEOGRAPHIC.CITY_NAME (TEXT), GEOGRAPHIC.COUNTY (TEXT), GEOGRAPHIC.REGION (TEXT), ) TABLE LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), LOCATION.STREET_NAME (TEXT), LOCATION.CITY_NAME (TEXT), ) TABLE RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.FOOD_TYPE (TEXT), RESTAURANT.CITY_NAME (TEXT), RESTAURANT.RATING (REAL), ) Possible JOINs: LOCATION.RESTAURANT_ID = RESTAURANT.RESTAURANT_ID LOCATION.CITY_NAME = GEOGRAPHIC.CITY_NAME RESTAURANT.CITY_NAME = GEOGRAPHIC.CITY_NAME
restaurants
give me some restaurants good for french food in the yosemite and mono lake area ?
hard
Table GEOGRAPHIC ( GEOGRAPHIC.CITY_NAME (TEXT), GEOGRAPHIC.COUNTY (TEXT), GEOGRAPHIC.REGION (TEXT), ) Table LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), LOCATION.STREET_NAME (TEXT), LOCATION.CITY_NAME (TEXT), ) Table RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.FOOD_TYPE (TEXT), RESTAURANT.CITY_NAME (TEXT), RESTAURANT.RATING (REAL), ) Possible JOINs: LOCATION.RESTAURANT_ID = RESTAURANT.RESTAURANT_ID LOCATION.CITY_NAME = GEOGRAPHIC.CITY_NAME RESTAURANT.CITY_NAME = GEOGRAPHIC.CITY_NAME
SELECT t3.house_number , restaurant.name FROM restaurant JOIN geographic ON restaurant.city_name = geographic.city_name JOIN LOCATION AS t3 ON restaurant.id = t3.restaurant_id WHERE geographic.region = "yosemite and mono lake area" AND restaurant.food_type = "french" AND restaurant.rating > 2.5;
Table geographic ( geographic.city_name (TEXT), geographic.county (TEXT), geographic.region (TEXT), ) Table location ( location.restaurant_id (INT), location.house_number (INT), location.street_name (TEXT), location.city_name (TEXT), ) Table restaurant ( restaurant.id (INT), restaurant.name (TEXT), restaurant.food_type (TEXT), restaurant.city_name (TEXT), restaurant.rating (REAL), ) Possible JOINs: location.restaurant_id = restaurant.restaurant_id location.city_name = geographic.city_name restaurant.city_name = geographic.city_name
{ 'geographic': ['city_name', 'county', 'region'], 'restaurant': ['id', 'name', 'food_type', 'city_name', 'rating'], 'location': ['restaurant_id', 'house_number', 'street_name', 'city_name'] }
{ 'restaurant': ['id', 'name', 'food_type', 'city_name', 'rating'], 'geographic': ['city_name', 'region'], 'location': ['restaurant_id', 'house_number'] }
TABLE GEOGRAPHIC ( GEOGRAPHIC.CITY_NAME (TEXT), GEOGRAPHIC.REGION (TEXT), ) TABLE LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), ) TABLE RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.FOOD_TYPE (TEXT), RESTAURANT.CITY_NAME (TEXT), RESTAURANT.RATING (REAL), ) Possible JOINs:
TABLE GEOGRAPHIC ( GEOGRAPHIC.CITY_NAME (TEXT), GEOGRAPHIC.COUNTY (TEXT), GEOGRAPHIC.REGION (TEXT), ) TABLE LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), LOCATION.STREET_NAME (TEXT), LOCATION.CITY_NAME (TEXT), ) TABLE RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.FOOD_TYPE (TEXT), RESTAURANT.CITY_NAME (TEXT), RESTAURANT.RATING (REAL), ) Possible JOINs: LOCATION.RESTAURANT_ID = RESTAURANT.RESTAURANT_ID LOCATION.CITY_NAME = GEOGRAPHIC.CITY_NAME RESTAURANT.CITY_NAME = GEOGRAPHIC.CITY_NAME
restaurants
what are some good places in the yosemite and mono lake area for french food ?
hard
Table GEOGRAPHIC ( GEOGRAPHIC.CITY_NAME (TEXT), GEOGRAPHIC.COUNTY (TEXT), GEOGRAPHIC.REGION (TEXT), ) Table LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), LOCATION.STREET_NAME (TEXT), LOCATION.CITY_NAME (TEXT), ) Table RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.FOOD_TYPE (TEXT), RESTAURANT.CITY_NAME (TEXT), RESTAURANT.RATING (REAL), ) Possible JOINs: LOCATION.RESTAURANT_ID = RESTAURANT.RESTAURANT_ID LOCATION.CITY_NAME = GEOGRAPHIC.CITY_NAME RESTAURANT.CITY_NAME = GEOGRAPHIC.CITY_NAME
SELECT t3.house_number , restaurant.name FROM restaurant JOIN geographic ON restaurant.city_name = geographic.city_name JOIN LOCATION AS t3 ON restaurant.id = t3.restaurant_id WHERE geographic.region = "yosemite and mono lake area" AND restaurant.food_type = "french" AND restaurant.rating > 2.5;
Table geographic ( geographic.city_name (TEXT), geographic.county (TEXT), geographic.region (TEXT), ) Table location ( location.restaurant_id (INT), location.house_number (INT), location.street_name (TEXT), location.city_name (TEXT), ) Table restaurant ( restaurant.id (INT), restaurant.name (TEXT), restaurant.food_type (TEXT), restaurant.city_name (TEXT), restaurant.rating (REAL), ) Possible JOINs: location.restaurant_id = restaurant.restaurant_id location.city_name = geographic.city_name restaurant.city_name = geographic.city_name
{ 'geographic': ['city_name', 'county', 'region'], 'restaurant': ['id', 'name', 'food_type', 'city_name', 'rating'], 'location': ['restaurant_id', 'house_number', 'street_name', 'city_name'] }
{ 'restaurant': ['id', 'name', 'food_type', 'city_name', 'rating'], 'geographic': ['city_name', 'region'], 'location': ['restaurant_id', 'house_number'] }
TABLE GEOGRAPHIC ( GEOGRAPHIC.CITY_NAME (TEXT), GEOGRAPHIC.REGION (TEXT), ) TABLE LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), ) TABLE RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.FOOD_TYPE (TEXT), RESTAURANT.CITY_NAME (TEXT), RESTAURANT.RATING (REAL), ) Possible JOINs:
TABLE GEOGRAPHIC ( GEOGRAPHIC.CITY_NAME (TEXT), GEOGRAPHIC.COUNTY (TEXT), GEOGRAPHIC.REGION (TEXT), ) TABLE LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), LOCATION.STREET_NAME (TEXT), LOCATION.CITY_NAME (TEXT), ) TABLE RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.FOOD_TYPE (TEXT), RESTAURANT.CITY_NAME (TEXT), RESTAURANT.RATING (REAL), ) Possible JOINs: LOCATION.RESTAURANT_ID = RESTAURANT.RESTAURANT_ID LOCATION.CITY_NAME = GEOGRAPHIC.CITY_NAME RESTAURANT.CITY_NAME = GEOGRAPHIC.CITY_NAME
restaurants
give me a good restaurant in the yosemite and mono lake area for french food ?
hard
Table GEOGRAPHIC ( GEOGRAPHIC.CITY_NAME (TEXT), GEOGRAPHIC.COUNTY (TEXT), GEOGRAPHIC.REGION (TEXT), ) Table LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), LOCATION.STREET_NAME (TEXT), LOCATION.CITY_NAME (TEXT), ) Table RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.FOOD_TYPE (TEXT), RESTAURANT.CITY_NAME (TEXT), RESTAURANT.RATING (REAL), ) Possible JOINs: LOCATION.RESTAURANT_ID = RESTAURANT.RESTAURANT_ID LOCATION.CITY_NAME = GEOGRAPHIC.CITY_NAME RESTAURANT.CITY_NAME = GEOGRAPHIC.CITY_NAME
SELECT t3.house_number , restaurant.name FROM restaurant JOIN geographic ON restaurant.city_name = geographic.city_name JOIN LOCATION AS t3 ON restaurant.id = t3.restaurant_id WHERE geographic.region = "yosemite and mono lake area" AND restaurant.food_type = "french" AND restaurant.rating > 2.5;
Table geographic ( geographic.city_name (TEXT), geographic.county (TEXT), geographic.region (TEXT), ) Table location ( location.restaurant_id (INT), location.house_number (INT), location.street_name (TEXT), location.city_name (TEXT), ) Table restaurant ( restaurant.id (INT), restaurant.name (TEXT), restaurant.food_type (TEXT), restaurant.city_name (TEXT), restaurant.rating (REAL), ) Possible JOINs: location.restaurant_id = restaurant.restaurant_id location.city_name = geographic.city_name restaurant.city_name = geographic.city_name
{ 'geographic': ['city_name', 'county', 'region'], 'restaurant': ['id', 'name', 'food_type', 'city_name', 'rating'], 'location': ['restaurant_id', 'house_number', 'street_name', 'city_name'] }
{ 'restaurant': ['id', 'name', 'food_type', 'city_name', 'rating'], 'geographic': ['city_name', 'region'], 'location': ['restaurant_id', 'house_number'] }
TABLE GEOGRAPHIC ( GEOGRAPHIC.CITY_NAME (TEXT), GEOGRAPHIC.REGION (TEXT), ) TABLE LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), ) TABLE RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.FOOD_TYPE (TEXT), RESTAURANT.CITY_NAME (TEXT), RESTAURANT.RATING (REAL), ) Possible JOINs:
TABLE GEOGRAPHIC ( GEOGRAPHIC.CITY_NAME (TEXT), GEOGRAPHIC.COUNTY (TEXT), GEOGRAPHIC.REGION (TEXT), ) TABLE LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), LOCATION.STREET_NAME (TEXT), LOCATION.CITY_NAME (TEXT), ) TABLE RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.FOOD_TYPE (TEXT), RESTAURANT.CITY_NAME (TEXT), RESTAURANT.RATING (REAL), ) Possible JOINs: LOCATION.RESTAURANT_ID = RESTAURANT.RESTAURANT_ID LOCATION.CITY_NAME = GEOGRAPHIC.CITY_NAME RESTAURANT.CITY_NAME = GEOGRAPHIC.CITY_NAME
restaurants
give me a good french restaurant in the yosemite and mono lake area ?
hard
Table GEOGRAPHIC ( GEOGRAPHIC.CITY_NAME (TEXT), GEOGRAPHIC.COUNTY (TEXT), GEOGRAPHIC.REGION (TEXT), ) Table LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), LOCATION.STREET_NAME (TEXT), LOCATION.CITY_NAME (TEXT), ) Table RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.FOOD_TYPE (TEXT), RESTAURANT.CITY_NAME (TEXT), RESTAURANT.RATING (REAL), ) Possible JOINs: LOCATION.RESTAURANT_ID = RESTAURANT.RESTAURANT_ID LOCATION.CITY_NAME = GEOGRAPHIC.CITY_NAME RESTAURANT.CITY_NAME = GEOGRAPHIC.CITY_NAME
SELECT t3.house_number , restaurant.name FROM restaurant JOIN geographic ON restaurant.city_name = geographic.city_name JOIN LOCATION AS t3 ON restaurant.id = t3.restaurant_id WHERE geographic.region = "yosemite and mono lake area" AND restaurant.food_type = "french" AND restaurant.rating > 2.5;
Table geographic ( geographic.city_name (TEXT), geographic.county (TEXT), geographic.region (TEXT), ) Table location ( location.restaurant_id (INT), location.house_number (INT), location.street_name (TEXT), location.city_name (TEXT), ) Table restaurant ( restaurant.id (INT), restaurant.name (TEXT), restaurant.food_type (TEXT), restaurant.city_name (TEXT), restaurant.rating (REAL), ) Possible JOINs: location.restaurant_id = restaurant.restaurant_id location.city_name = geographic.city_name restaurant.city_name = geographic.city_name
{ 'geographic': ['city_name', 'county', 'region'], 'restaurant': ['id', 'name', 'food_type', 'city_name', 'rating'], 'location': ['restaurant_id', 'house_number', 'street_name', 'city_name'] }
{ 'restaurant': ['id', 'name', 'food_type', 'city_name', 'rating'], 'geographic': ['city_name', 'region'], 'location': ['restaurant_id', 'house_number'] }
TABLE GEOGRAPHIC ( GEOGRAPHIC.CITY_NAME (TEXT), GEOGRAPHIC.REGION (TEXT), ) TABLE LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), ) TABLE RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.FOOD_TYPE (TEXT), RESTAURANT.CITY_NAME (TEXT), RESTAURANT.RATING (REAL), ) Possible JOINs:
TABLE GEOGRAPHIC ( GEOGRAPHIC.CITY_NAME (TEXT), GEOGRAPHIC.COUNTY (TEXT), GEOGRAPHIC.REGION (TEXT), ) TABLE LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), LOCATION.STREET_NAME (TEXT), LOCATION.CITY_NAME (TEXT), ) TABLE RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.FOOD_TYPE (TEXT), RESTAURANT.CITY_NAME (TEXT), RESTAURANT.RATING (REAL), ) Possible JOINs: LOCATION.RESTAURANT_ID = RESTAURANT.RESTAURANT_ID LOCATION.CITY_NAME = GEOGRAPHIC.CITY_NAME RESTAURANT.CITY_NAME = GEOGRAPHIC.CITY_NAME
restaurants
where is a good place in the yosemite and mono lake area for french food ?
hard
Table GEOGRAPHIC ( GEOGRAPHIC.CITY_NAME (TEXT), GEOGRAPHIC.COUNTY (TEXT), GEOGRAPHIC.REGION (TEXT), ) Table LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), LOCATION.STREET_NAME (TEXT), LOCATION.CITY_NAME (TEXT), ) Table RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.FOOD_TYPE (TEXT), RESTAURANT.CITY_NAME (TEXT), RESTAURANT.RATING (REAL), ) Possible JOINs: LOCATION.RESTAURANT_ID = RESTAURANT.RESTAURANT_ID LOCATION.CITY_NAME = GEOGRAPHIC.CITY_NAME RESTAURANT.CITY_NAME = GEOGRAPHIC.CITY_NAME
SELECT t3.house_number , restaurant.name FROM restaurant JOIN geographic ON restaurant.city_name = geographic.city_name JOIN LOCATION AS t3 ON restaurant.id = t3.restaurant_id WHERE geographic.region = "yosemite and mono lake area" AND restaurant.food_type = "french" AND restaurant.rating > 2.5;
Table geographic ( geographic.city_name (TEXT), geographic.county (TEXT), geographic.region (TEXT), ) Table location ( location.restaurant_id (INT), location.house_number (INT), location.street_name (TEXT), location.city_name (TEXT), ) Table restaurant ( restaurant.id (INT), restaurant.name (TEXT), restaurant.food_type (TEXT), restaurant.city_name (TEXT), restaurant.rating (REAL), ) Possible JOINs: location.restaurant_id = restaurant.restaurant_id location.city_name = geographic.city_name restaurant.city_name = geographic.city_name
{ 'geographic': ['city_name', 'county', 'region'], 'restaurant': ['id', 'name', 'food_type', 'city_name', 'rating'], 'location': ['restaurant_id', 'house_number', 'street_name', 'city_name'] }
{ 'restaurant': ['id', 'name', 'food_type', 'city_name', 'rating'], 'geographic': ['city_name', 'region'], 'location': ['restaurant_id', 'house_number'] }
TABLE GEOGRAPHIC ( GEOGRAPHIC.CITY_NAME (TEXT), GEOGRAPHIC.REGION (TEXT), ) TABLE LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), ) TABLE RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.FOOD_TYPE (TEXT), RESTAURANT.CITY_NAME (TEXT), RESTAURANT.RATING (REAL), ) Possible JOINs:
TABLE GEOGRAPHIC ( GEOGRAPHIC.CITY_NAME (TEXT), GEOGRAPHIC.COUNTY (TEXT), GEOGRAPHIC.REGION (TEXT), ) TABLE LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), LOCATION.STREET_NAME (TEXT), LOCATION.CITY_NAME (TEXT), ) TABLE RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.FOOD_TYPE (TEXT), RESTAURANT.CITY_NAME (TEXT), RESTAURANT.RATING (REAL), ) Possible JOINs: LOCATION.RESTAURANT_ID = RESTAURANT.RESTAURANT_ID LOCATION.CITY_NAME = GEOGRAPHIC.CITY_NAME RESTAURANT.CITY_NAME = GEOGRAPHIC.CITY_NAME
restaurants
where are some restaurants good for french food in the yosemite and mono lake area ?
hard
Table GEOGRAPHIC ( GEOGRAPHIC.CITY_NAME (TEXT), GEOGRAPHIC.COUNTY (TEXT), GEOGRAPHIC.REGION (TEXT), ) Table LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), LOCATION.STREET_NAME (TEXT), LOCATION.CITY_NAME (TEXT), ) Table RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.FOOD_TYPE (TEXT), RESTAURANT.CITY_NAME (TEXT), RESTAURANT.RATING (REAL), ) Possible JOINs: LOCATION.RESTAURANT_ID = RESTAURANT.RESTAURANT_ID LOCATION.CITY_NAME = GEOGRAPHIC.CITY_NAME RESTAURANT.CITY_NAME = GEOGRAPHIC.CITY_NAME
SELECT t3.house_number , restaurant.name FROM restaurant JOIN geographic ON restaurant.city_name = geographic.city_name JOIN LOCATION AS t3 ON restaurant.id = t3.restaurant_id WHERE geographic.region = "yosemite and mono lake area" AND restaurant.food_type = "french" AND restaurant.rating > 2.5;
Table geographic ( geographic.city_name (TEXT), geographic.county (TEXT), geographic.region (TEXT), ) Table location ( location.restaurant_id (INT), location.house_number (INT), location.street_name (TEXT), location.city_name (TEXT), ) Table restaurant ( restaurant.id (INT), restaurant.name (TEXT), restaurant.food_type (TEXT), restaurant.city_name (TEXT), restaurant.rating (REAL), ) Possible JOINs: location.restaurant_id = restaurant.restaurant_id location.city_name = geographic.city_name restaurant.city_name = geographic.city_name
{ 'geographic': ['city_name', 'county', 'region'], 'restaurant': ['id', 'name', 'food_type', 'city_name', 'rating'], 'location': ['restaurant_id', 'house_number', 'street_name', 'city_name'] }
{ 'restaurant': ['id', 'name', 'food_type', 'city_name', 'rating'], 'geographic': ['city_name', 'region'], 'location': ['restaurant_id', 'house_number'] }
TABLE GEOGRAPHIC ( GEOGRAPHIC.CITY_NAME (TEXT), GEOGRAPHIC.REGION (TEXT), ) TABLE LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), ) TABLE RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.FOOD_TYPE (TEXT), RESTAURANT.CITY_NAME (TEXT), RESTAURANT.RATING (REAL), ) Possible JOINs:
TABLE GEOGRAPHIC ( GEOGRAPHIC.CITY_NAME (TEXT), GEOGRAPHIC.COUNTY (TEXT), GEOGRAPHIC.REGION (TEXT), ) TABLE LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), LOCATION.STREET_NAME (TEXT), LOCATION.CITY_NAME (TEXT), ) TABLE RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.FOOD_TYPE (TEXT), RESTAURANT.CITY_NAME (TEXT), RESTAURANT.RATING (REAL), ) Possible JOINs: LOCATION.RESTAURANT_ID = RESTAURANT.RESTAURANT_ID LOCATION.CITY_NAME = GEOGRAPHIC.CITY_NAME RESTAURANT.CITY_NAME = GEOGRAPHIC.CITY_NAME
restaurants
give me a good place in the yosemite and mono lake area for french food ?
hard
Table GEOGRAPHIC ( GEOGRAPHIC.CITY_NAME (TEXT), GEOGRAPHIC.COUNTY (TEXT), GEOGRAPHIC.REGION (TEXT), ) Table LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), LOCATION.STREET_NAME (TEXT), LOCATION.CITY_NAME (TEXT), ) Table RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.FOOD_TYPE (TEXT), RESTAURANT.CITY_NAME (TEXT), RESTAURANT.RATING (REAL), ) Possible JOINs: LOCATION.RESTAURANT_ID = RESTAURANT.RESTAURANT_ID LOCATION.CITY_NAME = GEOGRAPHIC.CITY_NAME RESTAURANT.CITY_NAME = GEOGRAPHIC.CITY_NAME
SELECT t3.house_number , restaurant.name FROM restaurant JOIN geographic ON restaurant.city_name = geographic.city_name JOIN LOCATION AS t3 ON restaurant.id = t3.restaurant_id WHERE geographic.region = "yosemite and mono lake area" AND restaurant.food_type = "french" AND restaurant.rating > 2.5;
Table geographic ( geographic.city_name (TEXT), geographic.county (TEXT), geographic.region (TEXT), ) Table location ( location.restaurant_id (INT), location.house_number (INT), location.street_name (TEXT), location.city_name (TEXT), ) Table restaurant ( restaurant.id (INT), restaurant.name (TEXT), restaurant.food_type (TEXT), restaurant.city_name (TEXT), restaurant.rating (REAL), ) Possible JOINs: location.restaurant_id = restaurant.restaurant_id location.city_name = geographic.city_name restaurant.city_name = geographic.city_name
{ 'geographic': ['city_name', 'county', 'region'], 'restaurant': ['id', 'name', 'food_type', 'city_name', 'rating'], 'location': ['restaurant_id', 'house_number', 'street_name', 'city_name'] }
{ 'restaurant': ['id', 'name', 'food_type', 'city_name', 'rating'], 'geographic': ['city_name', 'region'], 'location': ['restaurant_id', 'house_number'] }
TABLE GEOGRAPHIC ( GEOGRAPHIC.CITY_NAME (TEXT), GEOGRAPHIC.REGION (TEXT), ) TABLE LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), ) TABLE RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.FOOD_TYPE (TEXT), RESTAURANT.CITY_NAME (TEXT), RESTAURANT.RATING (REAL), ) Possible JOINs:
TABLE GEOGRAPHIC ( GEOGRAPHIC.CITY_NAME (TEXT), GEOGRAPHIC.COUNTY (TEXT), GEOGRAPHIC.REGION (TEXT), ) TABLE LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), LOCATION.STREET_NAME (TEXT), LOCATION.CITY_NAME (TEXT), ) TABLE RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.FOOD_TYPE (TEXT), RESTAURANT.CITY_NAME (TEXT), RESTAURANT.RATING (REAL), ) Possible JOINs: LOCATION.RESTAURANT_ID = RESTAURANT.RESTAURANT_ID LOCATION.CITY_NAME = GEOGRAPHIC.CITY_NAME RESTAURANT.CITY_NAME = GEOGRAPHIC.CITY_NAME
restaurants
where is a good restaurant in the yosemite and mono lake area for french food ?
hard
Table GEOGRAPHIC ( GEOGRAPHIC.CITY_NAME (TEXT), GEOGRAPHIC.COUNTY (TEXT), GEOGRAPHIC.REGION (TEXT), ) Table LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), LOCATION.STREET_NAME (TEXT), LOCATION.CITY_NAME (TEXT), ) Table RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.FOOD_TYPE (TEXT), RESTAURANT.CITY_NAME (TEXT), RESTAURANT.RATING (REAL), ) Possible JOINs: LOCATION.RESTAURANT_ID = RESTAURANT.RESTAURANT_ID LOCATION.CITY_NAME = GEOGRAPHIC.CITY_NAME RESTAURANT.CITY_NAME = GEOGRAPHIC.CITY_NAME
SELECT t3.house_number , restaurant.name FROM restaurant JOIN geographic ON restaurant.city_name = geographic.city_name JOIN LOCATION AS t3 ON restaurant.id = t3.restaurant_id WHERE geographic.region = "yosemite and mono lake area" AND restaurant.food_type = "french" AND restaurant.rating > 2.5;
Table geographic ( geographic.city_name (TEXT), geographic.county (TEXT), geographic.region (TEXT), ) Table location ( location.restaurant_id (INT), location.house_number (INT), location.street_name (TEXT), location.city_name (TEXT), ) Table restaurant ( restaurant.id (INT), restaurant.name (TEXT), restaurant.food_type (TEXT), restaurant.city_name (TEXT), restaurant.rating (REAL), ) Possible JOINs: location.restaurant_id = restaurant.restaurant_id location.city_name = geographic.city_name restaurant.city_name = geographic.city_name
{ 'geographic': ['city_name', 'county', 'region'], 'restaurant': ['id', 'name', 'food_type', 'city_name', 'rating'], 'location': ['restaurant_id', 'house_number', 'street_name', 'city_name'] }
{ 'restaurant': ['id', 'name', 'food_type', 'city_name', 'rating'], 'geographic': ['city_name', 'region'], 'location': ['restaurant_id', 'house_number'] }
TABLE GEOGRAPHIC ( GEOGRAPHIC.CITY_NAME (TEXT), GEOGRAPHIC.REGION (TEXT), ) TABLE LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), ) TABLE RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.FOOD_TYPE (TEXT), RESTAURANT.CITY_NAME (TEXT), RESTAURANT.RATING (REAL), ) Possible JOINs:
TABLE GEOGRAPHIC ( GEOGRAPHIC.CITY_NAME (TEXT), GEOGRAPHIC.COUNTY (TEXT), GEOGRAPHIC.REGION (TEXT), ) TABLE LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), LOCATION.STREET_NAME (TEXT), LOCATION.CITY_NAME (TEXT), ) TABLE RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.FOOD_TYPE (TEXT), RESTAURANT.CITY_NAME (TEXT), RESTAURANT.RATING (REAL), ) Possible JOINs: LOCATION.RESTAURANT_ID = RESTAURANT.RESTAURANT_ID LOCATION.CITY_NAME = GEOGRAPHIC.CITY_NAME RESTAURANT.CITY_NAME = GEOGRAPHIC.CITY_NAME
restaurants
what are some good restaurants in the yosemite and mono lake area for french food ?
hard
Table GEOGRAPHIC ( GEOGRAPHIC.CITY_NAME (TEXT), GEOGRAPHIC.COUNTY (TEXT), GEOGRAPHIC.REGION (TEXT), ) Table LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), LOCATION.STREET_NAME (TEXT), LOCATION.CITY_NAME (TEXT), ) Table RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.FOOD_TYPE (TEXT), RESTAURANT.CITY_NAME (TEXT), RESTAURANT.RATING (REAL), ) Possible JOINs: LOCATION.RESTAURANT_ID = RESTAURANT.RESTAURANT_ID LOCATION.CITY_NAME = GEOGRAPHIC.CITY_NAME RESTAURANT.CITY_NAME = GEOGRAPHIC.CITY_NAME
SELECT t3.house_number , restaurant.name FROM restaurant JOIN geographic ON restaurant.city_name = geographic.city_name JOIN LOCATION AS t3 ON restaurant.id = t3.restaurant_id WHERE geographic.region = "yosemite and mono lake area" AND restaurant.food_type = "french" AND restaurant.rating > 2.5;
Table geographic ( geographic.city_name (TEXT), geographic.county (TEXT), geographic.region (TEXT), ) Table location ( location.restaurant_id (INT), location.house_number (INT), location.street_name (TEXT), location.city_name (TEXT), ) Table restaurant ( restaurant.id (INT), restaurant.name (TEXT), restaurant.food_type (TEXT), restaurant.city_name (TEXT), restaurant.rating (REAL), ) Possible JOINs: location.restaurant_id = restaurant.restaurant_id location.city_name = geographic.city_name restaurant.city_name = geographic.city_name
{ 'geographic': ['city_name', 'county', 'region'], 'restaurant': ['id', 'name', 'food_type', 'city_name', 'rating'], 'location': ['restaurant_id', 'house_number', 'street_name', 'city_name'] }
{ 'restaurant': ['id', 'name', 'food_type', 'city_name', 'rating'], 'geographic': ['city_name', 'region'], 'location': ['restaurant_id', 'house_number'] }
TABLE GEOGRAPHIC ( GEOGRAPHIC.CITY_NAME (TEXT), GEOGRAPHIC.REGION (TEXT), ) TABLE LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), ) TABLE RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.FOOD_TYPE (TEXT), RESTAURANT.CITY_NAME (TEXT), RESTAURANT.RATING (REAL), ) Possible JOINs:
TABLE GEOGRAPHIC ( GEOGRAPHIC.CITY_NAME (TEXT), GEOGRAPHIC.COUNTY (TEXT), GEOGRAPHIC.REGION (TEXT), ) TABLE LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), LOCATION.STREET_NAME (TEXT), LOCATION.CITY_NAME (TEXT), ) TABLE RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.FOOD_TYPE (TEXT), RESTAURANT.CITY_NAME (TEXT), RESTAURANT.RATING (REAL), ) Possible JOINs: LOCATION.RESTAURANT_ID = RESTAURANT.RESTAURANT_ID LOCATION.CITY_NAME = GEOGRAPHIC.CITY_NAME RESTAURANT.CITY_NAME = GEOGRAPHIC.CITY_NAME
restaurants
where is a good french restaurant in the yosemite and mono lake area ?
hard
Table GEOGRAPHIC ( GEOGRAPHIC.CITY_NAME (TEXT), GEOGRAPHIC.COUNTY (TEXT), GEOGRAPHIC.REGION (TEXT), ) Table LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), LOCATION.STREET_NAME (TEXT), LOCATION.CITY_NAME (TEXT), ) Table RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.FOOD_TYPE (TEXT), RESTAURANT.CITY_NAME (TEXT), RESTAURANT.RATING (REAL), ) Possible JOINs: LOCATION.RESTAURANT_ID = RESTAURANT.RESTAURANT_ID LOCATION.CITY_NAME = GEOGRAPHIC.CITY_NAME RESTAURANT.CITY_NAME = GEOGRAPHIC.CITY_NAME
SELECT t3.house_number , restaurant.name FROM restaurant JOIN geographic ON restaurant.city_name = geographic.city_name JOIN LOCATION AS t3 ON restaurant.id = t3.restaurant_id WHERE geographic.region = "yosemite and mono lake area" AND restaurant.food_type = "french" AND restaurant.rating > 2.5;
Table geographic ( geographic.city_name (TEXT), geographic.county (TEXT), geographic.region (TEXT), ) Table location ( location.restaurant_id (INT), location.house_number (INT), location.street_name (TEXT), location.city_name (TEXT), ) Table restaurant ( restaurant.id (INT), restaurant.name (TEXT), restaurant.food_type (TEXT), restaurant.city_name (TEXT), restaurant.rating (REAL), ) Possible JOINs: location.restaurant_id = restaurant.restaurant_id location.city_name = geographic.city_name restaurant.city_name = geographic.city_name
{ 'geographic': ['city_name', 'county', 'region'], 'restaurant': ['id', 'name', 'food_type', 'city_name', 'rating'], 'location': ['restaurant_id', 'house_number', 'street_name', 'city_name'] }
{ 'restaurant': ['id', 'name', 'food_type', 'city_name', 'rating'], 'geographic': ['city_name', 'region'], 'location': ['restaurant_id', 'house_number'] }
TABLE GEOGRAPHIC ( GEOGRAPHIC.CITY_NAME (TEXT), GEOGRAPHIC.REGION (TEXT), ) TABLE LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), ) TABLE RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.FOOD_TYPE (TEXT), RESTAURANT.CITY_NAME (TEXT), RESTAURANT.RATING (REAL), ) Possible JOINs:
TABLE GEOGRAPHIC ( GEOGRAPHIC.CITY_NAME (TEXT), GEOGRAPHIC.COUNTY (TEXT), GEOGRAPHIC.REGION (TEXT), ) TABLE LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), LOCATION.STREET_NAME (TEXT), LOCATION.CITY_NAME (TEXT), ) TABLE RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.FOOD_TYPE (TEXT), RESTAURANT.CITY_NAME (TEXT), RESTAURANT.RATING (REAL), ) Possible JOINs: LOCATION.RESTAURANT_ID = RESTAURANT.RESTAURANT_ID LOCATION.CITY_NAME = GEOGRAPHIC.CITY_NAME RESTAURANT.CITY_NAME = GEOGRAPHIC.CITY_NAME
restaurants
where can i eat some good french food in the yosemite and mono lake area ?
hard
Table GEOGRAPHIC ( GEOGRAPHIC.CITY_NAME (TEXT), GEOGRAPHIC.COUNTY (TEXT), GEOGRAPHIC.REGION (TEXT), ) Table LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), LOCATION.STREET_NAME (TEXT), LOCATION.CITY_NAME (TEXT), ) Table RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.FOOD_TYPE (TEXT), RESTAURANT.CITY_NAME (TEXT), RESTAURANT.RATING (REAL), ) Possible JOINs: LOCATION.RESTAURANT_ID = RESTAURANT.RESTAURANT_ID LOCATION.CITY_NAME = GEOGRAPHIC.CITY_NAME RESTAURANT.CITY_NAME = GEOGRAPHIC.CITY_NAME
SELECT t3.house_number , restaurant.name FROM restaurant JOIN geographic ON restaurant.city_name = geographic.city_name JOIN LOCATION AS t3 ON restaurant.id = t3.restaurant_id WHERE geographic.region = "yosemite and mono lake area" AND restaurant.food_type = "french" AND restaurant.rating > 2.5;
Table geographic ( geographic.city_name (TEXT), geographic.county (TEXT), geographic.region (TEXT), ) Table location ( location.restaurant_id (INT), location.house_number (INT), location.street_name (TEXT), location.city_name (TEXT), ) Table restaurant ( restaurant.id (INT), restaurant.name (TEXT), restaurant.food_type (TEXT), restaurant.city_name (TEXT), restaurant.rating (REAL), ) Possible JOINs: location.restaurant_id = restaurant.restaurant_id location.city_name = geographic.city_name restaurant.city_name = geographic.city_name
{ 'geographic': ['city_name', 'county', 'region'], 'restaurant': ['id', 'name', 'food_type', 'city_name', 'rating'], 'location': ['restaurant_id', 'house_number', 'street_name', 'city_name'] }
{ 'restaurant': ['id', 'name', 'food_type', 'city_name', 'rating'], 'geographic': ['city_name', 'region'], 'location': ['restaurant_id', 'house_number'] }
TABLE GEOGRAPHIC ( GEOGRAPHIC.CITY_NAME (TEXT), GEOGRAPHIC.REGION (TEXT), ) TABLE LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), ) TABLE RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.FOOD_TYPE (TEXT), RESTAURANT.CITY_NAME (TEXT), RESTAURANT.RATING (REAL), ) Possible JOINs:
TABLE GEOGRAPHIC ( GEOGRAPHIC.CITY_NAME (TEXT), GEOGRAPHIC.COUNTY (TEXT), GEOGRAPHIC.REGION (TEXT), ) TABLE LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), LOCATION.STREET_NAME (TEXT), LOCATION.CITY_NAME (TEXT), ) TABLE RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.FOOD_TYPE (TEXT), RESTAURANT.CITY_NAME (TEXT), RESTAURANT.RATING (REAL), ) Possible JOINs: LOCATION.RESTAURANT_ID = RESTAURANT.RESTAURANT_ID LOCATION.CITY_NAME = GEOGRAPHIC.CITY_NAME RESTAURANT.CITY_NAME = GEOGRAPHIC.CITY_NAME
restaurants
where are some restaurants good for arabic food in mountain view ?
extra
Table GEOGRAPHIC ( GEOGRAPHIC.CITY_NAME (TEXT), GEOGRAPHIC.COUNTY (TEXT), GEOGRAPHIC.REGION (TEXT), ) Table LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), LOCATION.STREET_NAME (TEXT), LOCATION.CITY_NAME (TEXT), ) Table RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.FOOD_TYPE (TEXT), RESTAURANT.CITY_NAME (TEXT), RESTAURANT.RATING (REAL), ) Possible JOINs: LOCATION.RESTAURANT_ID = RESTAURANT.RESTAURANT_ID LOCATION.CITY_NAME = GEOGRAPHIC.CITY_NAME RESTAURANT.CITY_NAME = GEOGRAPHIC.CITY_NAME
SELECT t2.house_number , restaurant.name FROM restaurant JOIN LOCATION AS t2 ON restaurant.id = t2.restaurant_id WHERE t2.city_name = "mountain view" AND restaurant.food_type = "arabic" AND restaurant.rating > 2.5;
Table geographic ( geographic.city_name (TEXT), geographic.county (TEXT), geographic.region (TEXT), ) Table location ( location.restaurant_id (INT), location.house_number (INT), location.street_name (TEXT), location.city_name (TEXT), ) Table restaurant ( restaurant.id (INT), restaurant.name (TEXT), restaurant.food_type (TEXT), restaurant.city_name (TEXT), restaurant.rating (REAL), ) Possible JOINs: location.restaurant_id = restaurant.restaurant_id location.city_name = geographic.city_name restaurant.city_name = geographic.city_name
{ 'geographic': ['city_name', 'county', 'region'], 'restaurant': ['id', 'name', 'food_type', 'city_name', 'rating'], 'location': ['restaurant_id', 'house_number', 'street_name', 'city_name'] }
{ 'restaurant': ['id', 'name', 'food_type', 'city_name', 'rating'], 'location': ['restaurant_id', 'house_number', 'city_name'] }
TABLE LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), LOCATION.CITY_NAME (TEXT), ) TABLE RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.FOOD_TYPE (TEXT), RESTAURANT.CITY_NAME (TEXT), RESTAURANT.RATING (REAL), ) Possible JOINs:
TABLE LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), LOCATION.STREET_NAME (TEXT), LOCATION.CITY_NAME (TEXT), ) TABLE RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.FOOD_TYPE (TEXT), RESTAURANT.CITY_NAME (TEXT), RESTAURANT.RATING (REAL), ) Possible JOINs: LOCATION.RESTAURANT_ID = RESTAURANT.RESTAURANT_ID LOCATION.CITY_NAME = GEOGRAPHIC.CITY_NAME RESTAURANT.CITY_NAME = GEOGRAPHIC.CITY_NAME
restaurants
what are some good places in mountain view for arabic food ?
extra
Table GEOGRAPHIC ( GEOGRAPHIC.CITY_NAME (TEXT), GEOGRAPHIC.COUNTY (TEXT), GEOGRAPHIC.REGION (TEXT), ) Table LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), LOCATION.STREET_NAME (TEXT), LOCATION.CITY_NAME (TEXT), ) Table RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.FOOD_TYPE (TEXT), RESTAURANT.CITY_NAME (TEXT), RESTAURANT.RATING (REAL), ) Possible JOINs: LOCATION.RESTAURANT_ID = RESTAURANT.RESTAURANT_ID LOCATION.CITY_NAME = GEOGRAPHIC.CITY_NAME RESTAURANT.CITY_NAME = GEOGRAPHIC.CITY_NAME
SELECT t2.house_number , restaurant.name FROM restaurant JOIN LOCATION AS t2 ON restaurant.id = t2.restaurant_id WHERE t2.city_name = "mountain view" AND restaurant.food_type = "arabic" AND restaurant.rating > 2.5;
Table geographic ( geographic.city_name (TEXT), geographic.county (TEXT), geographic.region (TEXT), ) Table location ( location.restaurant_id (INT), location.house_number (INT), location.street_name (TEXT), location.city_name (TEXT), ) Table restaurant ( restaurant.id (INT), restaurant.name (TEXT), restaurant.food_type (TEXT), restaurant.city_name (TEXT), restaurant.rating (REAL), ) Possible JOINs: location.restaurant_id = restaurant.restaurant_id location.city_name = geographic.city_name restaurant.city_name = geographic.city_name
{ 'geographic': ['city_name', 'county', 'region'], 'restaurant': ['id', 'name', 'food_type', 'city_name', 'rating'], 'location': ['restaurant_id', 'house_number', 'street_name', 'city_name'] }
{ 'restaurant': ['id', 'name', 'food_type', 'city_name', 'rating'], 'location': ['restaurant_id', 'house_number', 'city_name'] }
TABLE LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), LOCATION.CITY_NAME (TEXT), ) TABLE RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.FOOD_TYPE (TEXT), RESTAURANT.CITY_NAME (TEXT), RESTAURANT.RATING (REAL), ) Possible JOINs:
TABLE LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), LOCATION.STREET_NAME (TEXT), LOCATION.CITY_NAME (TEXT), ) TABLE RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.FOOD_TYPE (TEXT), RESTAURANT.CITY_NAME (TEXT), RESTAURANT.RATING (REAL), ) Possible JOINs: LOCATION.RESTAURANT_ID = RESTAURANT.RESTAURANT_ID LOCATION.CITY_NAME = GEOGRAPHIC.CITY_NAME RESTAURANT.CITY_NAME = GEOGRAPHIC.CITY_NAME
restaurants
where are some good arabic restaurants in mountain view ?
extra
Table GEOGRAPHIC ( GEOGRAPHIC.CITY_NAME (TEXT), GEOGRAPHIC.COUNTY (TEXT), GEOGRAPHIC.REGION (TEXT), ) Table LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), LOCATION.STREET_NAME (TEXT), LOCATION.CITY_NAME (TEXT), ) Table RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.FOOD_TYPE (TEXT), RESTAURANT.CITY_NAME (TEXT), RESTAURANT.RATING (REAL), ) Possible JOINs: LOCATION.RESTAURANT_ID = RESTAURANT.RESTAURANT_ID LOCATION.CITY_NAME = GEOGRAPHIC.CITY_NAME RESTAURANT.CITY_NAME = GEOGRAPHIC.CITY_NAME
SELECT t2.house_number , restaurant.name FROM restaurant JOIN LOCATION AS t2 ON restaurant.id = t2.restaurant_id WHERE t2.city_name = "mountain view" AND restaurant.food_type = "arabic" AND restaurant.rating > 2.5;
Table geographic ( geographic.city_name (TEXT), geographic.county (TEXT), geographic.region (TEXT), ) Table location ( location.restaurant_id (INT), location.house_number (INT), location.street_name (TEXT), location.city_name (TEXT), ) Table restaurant ( restaurant.id (INT), restaurant.name (TEXT), restaurant.food_type (TEXT), restaurant.city_name (TEXT), restaurant.rating (REAL), ) Possible JOINs: location.restaurant_id = restaurant.restaurant_id location.city_name = geographic.city_name restaurant.city_name = geographic.city_name
{ 'geographic': ['city_name', 'county', 'region'], 'restaurant': ['id', 'name', 'food_type', 'city_name', 'rating'], 'location': ['restaurant_id', 'house_number', 'street_name', 'city_name'] }
{ 'restaurant': ['id', 'name', 'food_type', 'city_name', 'rating'], 'location': ['restaurant_id', 'house_number', 'city_name'] }
TABLE LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), LOCATION.CITY_NAME (TEXT), ) TABLE RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.FOOD_TYPE (TEXT), RESTAURANT.CITY_NAME (TEXT), RESTAURANT.RATING (REAL), ) Possible JOINs:
TABLE LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), LOCATION.STREET_NAME (TEXT), LOCATION.CITY_NAME (TEXT), ) TABLE RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.FOOD_TYPE (TEXT), RESTAURANT.CITY_NAME (TEXT), RESTAURANT.RATING (REAL), ) Possible JOINs: LOCATION.RESTAURANT_ID = RESTAURANT.RESTAURANT_ID LOCATION.CITY_NAME = GEOGRAPHIC.CITY_NAME RESTAURANT.CITY_NAME = GEOGRAPHIC.CITY_NAME
restaurants
show me a good arabic restaurant in mountain view ?
extra
Table GEOGRAPHIC ( GEOGRAPHIC.CITY_NAME (TEXT), GEOGRAPHIC.COUNTY (TEXT), GEOGRAPHIC.REGION (TEXT), ) Table LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), LOCATION.STREET_NAME (TEXT), LOCATION.CITY_NAME (TEXT), ) Table RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.FOOD_TYPE (TEXT), RESTAURANT.CITY_NAME (TEXT), RESTAURANT.RATING (REAL), ) Possible JOINs: LOCATION.RESTAURANT_ID = RESTAURANT.RESTAURANT_ID LOCATION.CITY_NAME = GEOGRAPHIC.CITY_NAME RESTAURANT.CITY_NAME = GEOGRAPHIC.CITY_NAME
SELECT t2.house_number , restaurant.name FROM restaurant JOIN LOCATION AS t2 ON restaurant.id = t2.restaurant_id WHERE t2.city_name = "mountain view" AND restaurant.food_type = "arabic" AND restaurant.rating > 2.5;
Table geographic ( geographic.city_name (TEXT), geographic.county (TEXT), geographic.region (TEXT), ) Table location ( location.restaurant_id (INT), location.house_number (INT), location.street_name (TEXT), location.city_name (TEXT), ) Table restaurant ( restaurant.id (INT), restaurant.name (TEXT), restaurant.food_type (TEXT), restaurant.city_name (TEXT), restaurant.rating (REAL), ) Possible JOINs: location.restaurant_id = restaurant.restaurant_id location.city_name = geographic.city_name restaurant.city_name = geographic.city_name
{ 'geographic': ['city_name', 'county', 'region'], 'restaurant': ['id', 'name', 'food_type', 'city_name', 'rating'], 'location': ['restaurant_id', 'house_number', 'street_name', 'city_name'] }
{ 'restaurant': ['id', 'name', 'food_type', 'city_name', 'rating'], 'location': ['restaurant_id', 'house_number', 'city_name'] }
TABLE LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), LOCATION.CITY_NAME (TEXT), ) TABLE RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.FOOD_TYPE (TEXT), RESTAURANT.CITY_NAME (TEXT), RESTAURANT.RATING (REAL), ) Possible JOINs:
TABLE LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), LOCATION.STREET_NAME (TEXT), LOCATION.CITY_NAME (TEXT), ) TABLE RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.FOOD_TYPE (TEXT), RESTAURANT.CITY_NAME (TEXT), RESTAURANT.RATING (REAL), ) Possible JOINs: LOCATION.RESTAURANT_ID = RESTAURANT.RESTAURANT_ID LOCATION.CITY_NAME = GEOGRAPHIC.CITY_NAME RESTAURANT.CITY_NAME = GEOGRAPHIC.CITY_NAME
restaurants
give me a good arabic in mountain view ?
extra
Table GEOGRAPHIC ( GEOGRAPHIC.CITY_NAME (TEXT), GEOGRAPHIC.COUNTY (TEXT), GEOGRAPHIC.REGION (TEXT), ) Table LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), LOCATION.STREET_NAME (TEXT), LOCATION.CITY_NAME (TEXT), ) Table RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.FOOD_TYPE (TEXT), RESTAURANT.CITY_NAME (TEXT), RESTAURANT.RATING (REAL), ) Possible JOINs: LOCATION.RESTAURANT_ID = RESTAURANT.RESTAURANT_ID LOCATION.CITY_NAME = GEOGRAPHIC.CITY_NAME RESTAURANT.CITY_NAME = GEOGRAPHIC.CITY_NAME
SELECT t2.house_number , restaurant.name FROM restaurant JOIN LOCATION AS t2 ON restaurant.id = t2.restaurant_id WHERE t2.city_name = "mountain view" AND restaurant.food_type = "arabic" AND restaurant.rating > 2.5;
Table geographic ( geographic.city_name (TEXT), geographic.county (TEXT), geographic.region (TEXT), ) Table location ( location.restaurant_id (INT), location.house_number (INT), location.street_name (TEXT), location.city_name (TEXT), ) Table restaurant ( restaurant.id (INT), restaurant.name (TEXT), restaurant.food_type (TEXT), restaurant.city_name (TEXT), restaurant.rating (REAL), ) Possible JOINs: location.restaurant_id = restaurant.restaurant_id location.city_name = geographic.city_name restaurant.city_name = geographic.city_name
{ 'geographic': ['city_name', 'county', 'region'], 'restaurant': ['id', 'name', 'food_type', 'city_name', 'rating'], 'location': ['restaurant_id', 'house_number', 'street_name', 'city_name'] }
{ 'restaurant': ['id', 'name', 'food_type', 'city_name', 'rating'], 'location': ['restaurant_id', 'house_number', 'city_name'] }
TABLE LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), LOCATION.CITY_NAME (TEXT), ) TABLE RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.FOOD_TYPE (TEXT), RESTAURANT.CITY_NAME (TEXT), RESTAURANT.RATING (REAL), ) Possible JOINs:
TABLE LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), LOCATION.STREET_NAME (TEXT), LOCATION.CITY_NAME (TEXT), ) TABLE RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.FOOD_TYPE (TEXT), RESTAURANT.CITY_NAME (TEXT), RESTAURANT.RATING (REAL), ) Possible JOINs: LOCATION.RESTAURANT_ID = RESTAURANT.RESTAURANT_ID LOCATION.CITY_NAME = GEOGRAPHIC.CITY_NAME RESTAURANT.CITY_NAME = GEOGRAPHIC.CITY_NAME
restaurants
give me a good arabic restaurant in mountain view ?
extra
Table GEOGRAPHIC ( GEOGRAPHIC.CITY_NAME (TEXT), GEOGRAPHIC.COUNTY (TEXT), GEOGRAPHIC.REGION (TEXT), ) Table LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), LOCATION.STREET_NAME (TEXT), LOCATION.CITY_NAME (TEXT), ) Table RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.FOOD_TYPE (TEXT), RESTAURANT.CITY_NAME (TEXT), RESTAURANT.RATING (REAL), ) Possible JOINs: LOCATION.RESTAURANT_ID = RESTAURANT.RESTAURANT_ID LOCATION.CITY_NAME = GEOGRAPHIC.CITY_NAME RESTAURANT.CITY_NAME = GEOGRAPHIC.CITY_NAME
SELECT t2.house_number , restaurant.name FROM restaurant JOIN LOCATION AS t2 ON restaurant.id = t2.restaurant_id WHERE t2.city_name = "mountain view" AND restaurant.food_type = "arabic" AND restaurant.rating > 2.5;
Table geographic ( geographic.city_name (TEXT), geographic.county (TEXT), geographic.region (TEXT), ) Table location ( location.restaurant_id (INT), location.house_number (INT), location.street_name (TEXT), location.city_name (TEXT), ) Table restaurant ( restaurant.id (INT), restaurant.name (TEXT), restaurant.food_type (TEXT), restaurant.city_name (TEXT), restaurant.rating (REAL), ) Possible JOINs: location.restaurant_id = restaurant.restaurant_id location.city_name = geographic.city_name restaurant.city_name = geographic.city_name
{ 'geographic': ['city_name', 'county', 'region'], 'restaurant': ['id', 'name', 'food_type', 'city_name', 'rating'], 'location': ['restaurant_id', 'house_number', 'street_name', 'city_name'] }
{ 'restaurant': ['id', 'name', 'food_type', 'city_name', 'rating'], 'location': ['restaurant_id', 'house_number', 'city_name'] }
TABLE LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), LOCATION.CITY_NAME (TEXT), ) TABLE RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.FOOD_TYPE (TEXT), RESTAURANT.CITY_NAME (TEXT), RESTAURANT.RATING (REAL), ) Possible JOINs:
TABLE LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), LOCATION.STREET_NAME (TEXT), LOCATION.CITY_NAME (TEXT), ) TABLE RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.FOOD_TYPE (TEXT), RESTAURANT.CITY_NAME (TEXT), RESTAURANT.RATING (REAL), ) Possible JOINs: LOCATION.RESTAURANT_ID = RESTAURANT.RESTAURANT_ID LOCATION.CITY_NAME = GEOGRAPHIC.CITY_NAME RESTAURANT.CITY_NAME = GEOGRAPHIC.CITY_NAME
restaurants
give me a good place in mountain view for arabic food ?
extra
Table GEOGRAPHIC ( GEOGRAPHIC.CITY_NAME (TEXT), GEOGRAPHIC.COUNTY (TEXT), GEOGRAPHIC.REGION (TEXT), ) Table LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), LOCATION.STREET_NAME (TEXT), LOCATION.CITY_NAME (TEXT), ) Table RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.FOOD_TYPE (TEXT), RESTAURANT.CITY_NAME (TEXT), RESTAURANT.RATING (REAL), ) Possible JOINs: LOCATION.RESTAURANT_ID = RESTAURANT.RESTAURANT_ID LOCATION.CITY_NAME = GEOGRAPHIC.CITY_NAME RESTAURANT.CITY_NAME = GEOGRAPHIC.CITY_NAME
SELECT t2.house_number , restaurant.name FROM restaurant JOIN LOCATION AS t2 ON restaurant.id = t2.restaurant_id WHERE t2.city_name = "mountain view" AND restaurant.food_type = "arabic" AND restaurant.rating > 2.5;
Table geographic ( geographic.city_name (TEXT), geographic.county (TEXT), geographic.region (TEXT), ) Table location ( location.restaurant_id (INT), location.house_number (INT), location.street_name (TEXT), location.city_name (TEXT), ) Table restaurant ( restaurant.id (INT), restaurant.name (TEXT), restaurant.food_type (TEXT), restaurant.city_name (TEXT), restaurant.rating (REAL), ) Possible JOINs: location.restaurant_id = restaurant.restaurant_id location.city_name = geographic.city_name restaurant.city_name = geographic.city_name
{ 'geographic': ['city_name', 'county', 'region'], 'restaurant': ['id', 'name', 'food_type', 'city_name', 'rating'], 'location': ['restaurant_id', 'house_number', 'street_name', 'city_name'] }
{ 'restaurant': ['id', 'name', 'food_type', 'city_name', 'rating'], 'location': ['restaurant_id', 'house_number', 'city_name'] }
TABLE LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), LOCATION.CITY_NAME (TEXT), ) TABLE RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.FOOD_TYPE (TEXT), RESTAURANT.CITY_NAME (TEXT), RESTAURANT.RATING (REAL), ) Possible JOINs:
TABLE LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), LOCATION.STREET_NAME (TEXT), LOCATION.CITY_NAME (TEXT), ) TABLE RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.FOOD_TYPE (TEXT), RESTAURANT.CITY_NAME (TEXT), RESTAURANT.RATING (REAL), ) Possible JOINs: LOCATION.RESTAURANT_ID = RESTAURANT.RESTAURANT_ID LOCATION.CITY_NAME = GEOGRAPHIC.CITY_NAME RESTAURANT.CITY_NAME = GEOGRAPHIC.CITY_NAME
restaurants
where are some good arabics in mountain view ?
extra
Table GEOGRAPHIC ( GEOGRAPHIC.CITY_NAME (TEXT), GEOGRAPHIC.COUNTY (TEXT), GEOGRAPHIC.REGION (TEXT), ) Table LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), LOCATION.STREET_NAME (TEXT), LOCATION.CITY_NAME (TEXT), ) Table RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.FOOD_TYPE (TEXT), RESTAURANT.CITY_NAME (TEXT), RESTAURANT.RATING (REAL), ) Possible JOINs: LOCATION.RESTAURANT_ID = RESTAURANT.RESTAURANT_ID LOCATION.CITY_NAME = GEOGRAPHIC.CITY_NAME RESTAURANT.CITY_NAME = GEOGRAPHIC.CITY_NAME
SELECT t2.house_number , restaurant.name FROM restaurant JOIN LOCATION AS t2 ON restaurant.id = t2.restaurant_id WHERE t2.city_name = "mountain view" AND restaurant.food_type = "arabic" AND restaurant.rating > 2.5;
Table geographic ( geographic.city_name (TEXT), geographic.county (TEXT), geographic.region (TEXT), ) Table location ( location.restaurant_id (INT), location.house_number (INT), location.street_name (TEXT), location.city_name (TEXT), ) Table restaurant ( restaurant.id (INT), restaurant.name (TEXT), restaurant.food_type (TEXT), restaurant.city_name (TEXT), restaurant.rating (REAL), ) Possible JOINs: location.restaurant_id = restaurant.restaurant_id location.city_name = geographic.city_name restaurant.city_name = geographic.city_name
{ 'geographic': ['city_name', 'county', 'region'], 'restaurant': ['id', 'name', 'food_type', 'city_name', 'rating'], 'location': ['restaurant_id', 'house_number', 'street_name', 'city_name'] }
{ 'restaurant': ['id', 'name', 'food_type', 'city_name', 'rating'], 'location': ['restaurant_id', 'house_number', 'city_name'] }
TABLE LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), LOCATION.CITY_NAME (TEXT), ) TABLE RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.FOOD_TYPE (TEXT), RESTAURANT.CITY_NAME (TEXT), RESTAURANT.RATING (REAL), ) Possible JOINs:
TABLE LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), LOCATION.STREET_NAME (TEXT), LOCATION.CITY_NAME (TEXT), ) TABLE RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.FOOD_TYPE (TEXT), RESTAURANT.CITY_NAME (TEXT), RESTAURANT.RATING (REAL), ) Possible JOINs: LOCATION.RESTAURANT_ID = RESTAURANT.RESTAURANT_ID LOCATION.CITY_NAME = GEOGRAPHIC.CITY_NAME RESTAURANT.CITY_NAME = GEOGRAPHIC.CITY_NAME
restaurants
where is a restaurant in mountain view that serves good arabic food ?
extra
Table GEOGRAPHIC ( GEOGRAPHIC.CITY_NAME (TEXT), GEOGRAPHIC.COUNTY (TEXT), GEOGRAPHIC.REGION (TEXT), ) Table LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), LOCATION.STREET_NAME (TEXT), LOCATION.CITY_NAME (TEXT), ) Table RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.FOOD_TYPE (TEXT), RESTAURANT.CITY_NAME (TEXT), RESTAURANT.RATING (REAL), ) Possible JOINs: LOCATION.RESTAURANT_ID = RESTAURANT.RESTAURANT_ID LOCATION.CITY_NAME = GEOGRAPHIC.CITY_NAME RESTAURANT.CITY_NAME = GEOGRAPHIC.CITY_NAME
SELECT t2.house_number , restaurant.name FROM restaurant JOIN LOCATION AS t2 ON restaurant.id = t2.restaurant_id WHERE t2.city_name = "mountain view" AND restaurant.food_type = "arabic" AND restaurant.rating > 2.5;
Table geographic ( geographic.city_name (TEXT), geographic.county (TEXT), geographic.region (TEXT), ) Table location ( location.restaurant_id (INT), location.house_number (INT), location.street_name (TEXT), location.city_name (TEXT), ) Table restaurant ( restaurant.id (INT), restaurant.name (TEXT), restaurant.food_type (TEXT), restaurant.city_name (TEXT), restaurant.rating (REAL), ) Possible JOINs: location.restaurant_id = restaurant.restaurant_id location.city_name = geographic.city_name restaurant.city_name = geographic.city_name
{ 'geographic': ['city_name', 'county', 'region'], 'restaurant': ['id', 'name', 'food_type', 'city_name', 'rating'], 'location': ['restaurant_id', 'house_number', 'street_name', 'city_name'] }
{ 'restaurant': ['id', 'name', 'food_type', 'city_name', 'rating'], 'location': ['restaurant_id', 'house_number', 'city_name'] }
TABLE LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), LOCATION.CITY_NAME (TEXT), ) TABLE RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.FOOD_TYPE (TEXT), RESTAURANT.CITY_NAME (TEXT), RESTAURANT.RATING (REAL), ) Possible JOINs:
TABLE LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), LOCATION.STREET_NAME (TEXT), LOCATION.CITY_NAME (TEXT), ) TABLE RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.FOOD_TYPE (TEXT), RESTAURANT.CITY_NAME (TEXT), RESTAURANT.RATING (REAL), ) Possible JOINs: LOCATION.RESTAURANT_ID = RESTAURANT.RESTAURANT_ID LOCATION.CITY_NAME = GEOGRAPHIC.CITY_NAME RESTAURANT.CITY_NAME = GEOGRAPHIC.CITY_NAME
restaurants
what are some good restaurants in mountain view for arabic food ?
extra
Table GEOGRAPHIC ( GEOGRAPHIC.CITY_NAME (TEXT), GEOGRAPHIC.COUNTY (TEXT), GEOGRAPHIC.REGION (TEXT), ) Table LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), LOCATION.STREET_NAME (TEXT), LOCATION.CITY_NAME (TEXT), ) Table RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.FOOD_TYPE (TEXT), RESTAURANT.CITY_NAME (TEXT), RESTAURANT.RATING (REAL), ) Possible JOINs: LOCATION.RESTAURANT_ID = RESTAURANT.RESTAURANT_ID LOCATION.CITY_NAME = GEOGRAPHIC.CITY_NAME RESTAURANT.CITY_NAME = GEOGRAPHIC.CITY_NAME
SELECT t2.house_number , restaurant.name FROM restaurant JOIN LOCATION AS t2 ON restaurant.id = t2.restaurant_id WHERE t2.city_name = "mountain view" AND restaurant.food_type = "arabic" AND restaurant.rating > 2.5;
Table geographic ( geographic.city_name (TEXT), geographic.county (TEXT), geographic.region (TEXT), ) Table location ( location.restaurant_id (INT), location.house_number (INT), location.street_name (TEXT), location.city_name (TEXT), ) Table restaurant ( restaurant.id (INT), restaurant.name (TEXT), restaurant.food_type (TEXT), restaurant.city_name (TEXT), restaurant.rating (REAL), ) Possible JOINs: location.restaurant_id = restaurant.restaurant_id location.city_name = geographic.city_name restaurant.city_name = geographic.city_name
{ 'geographic': ['city_name', 'county', 'region'], 'restaurant': ['id', 'name', 'food_type', 'city_name', 'rating'], 'location': ['restaurant_id', 'house_number', 'street_name', 'city_name'] }
{ 'restaurant': ['id', 'name', 'food_type', 'city_name', 'rating'], 'location': ['restaurant_id', 'house_number', 'city_name'] }
TABLE LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), LOCATION.CITY_NAME (TEXT), ) TABLE RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.FOOD_TYPE (TEXT), RESTAURANT.CITY_NAME (TEXT), RESTAURANT.RATING (REAL), ) Possible JOINs:
TABLE LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), LOCATION.STREET_NAME (TEXT), LOCATION.CITY_NAME (TEXT), ) TABLE RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.FOOD_TYPE (TEXT), RESTAURANT.CITY_NAME (TEXT), RESTAURANT.RATING (REAL), ) Possible JOINs: LOCATION.RESTAURANT_ID = RESTAURANT.RESTAURANT_ID LOCATION.CITY_NAME = GEOGRAPHIC.CITY_NAME RESTAURANT.CITY_NAME = GEOGRAPHIC.CITY_NAME
restaurants
give me some restaurants good for arabic food in mountain view ?
extra
Table GEOGRAPHIC ( GEOGRAPHIC.CITY_NAME (TEXT), GEOGRAPHIC.COUNTY (TEXT), GEOGRAPHIC.REGION (TEXT), ) Table LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), LOCATION.STREET_NAME (TEXT), LOCATION.CITY_NAME (TEXT), ) Table RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.FOOD_TYPE (TEXT), RESTAURANT.CITY_NAME (TEXT), RESTAURANT.RATING (REAL), ) Possible JOINs: LOCATION.RESTAURANT_ID = RESTAURANT.RESTAURANT_ID LOCATION.CITY_NAME = GEOGRAPHIC.CITY_NAME RESTAURANT.CITY_NAME = GEOGRAPHIC.CITY_NAME
SELECT t2.house_number , restaurant.name FROM restaurant JOIN LOCATION AS t2 ON restaurant.id = t2.restaurant_id WHERE t2.city_name = "mountain view" AND restaurant.food_type = "arabic" AND restaurant.rating > 2.5;
Table geographic ( geographic.city_name (TEXT), geographic.county (TEXT), geographic.region (TEXT), ) Table location ( location.restaurant_id (INT), location.house_number (INT), location.street_name (TEXT), location.city_name (TEXT), ) Table restaurant ( restaurant.id (INT), restaurant.name (TEXT), restaurant.food_type (TEXT), restaurant.city_name (TEXT), restaurant.rating (REAL), ) Possible JOINs: location.restaurant_id = restaurant.restaurant_id location.city_name = geographic.city_name restaurant.city_name = geographic.city_name
{ 'geographic': ['city_name', 'county', 'region'], 'restaurant': ['id', 'name', 'food_type', 'city_name', 'rating'], 'location': ['restaurant_id', 'house_number', 'street_name', 'city_name'] }
{ 'restaurant': ['id', 'name', 'food_type', 'city_name', 'rating'], 'location': ['restaurant_id', 'house_number', 'city_name'] }
TABLE LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), LOCATION.CITY_NAME (TEXT), ) TABLE RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.FOOD_TYPE (TEXT), RESTAURANT.CITY_NAME (TEXT), RESTAURANT.RATING (REAL), ) Possible JOINs:
TABLE LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), LOCATION.STREET_NAME (TEXT), LOCATION.CITY_NAME (TEXT), ) TABLE RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.FOOD_TYPE (TEXT), RESTAURANT.CITY_NAME (TEXT), RESTAURANT.RATING (REAL), ) Possible JOINs: LOCATION.RESTAURANT_ID = RESTAURANT.RESTAURANT_ID LOCATION.CITY_NAME = GEOGRAPHIC.CITY_NAME RESTAURANT.CITY_NAME = GEOGRAPHIC.CITY_NAME
restaurants
where can i eat some good arabic food in mountain view ?
extra
Table GEOGRAPHIC ( GEOGRAPHIC.CITY_NAME (TEXT), GEOGRAPHIC.COUNTY (TEXT), GEOGRAPHIC.REGION (TEXT), ) Table LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), LOCATION.STREET_NAME (TEXT), LOCATION.CITY_NAME (TEXT), ) Table RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.FOOD_TYPE (TEXT), RESTAURANT.CITY_NAME (TEXT), RESTAURANT.RATING (REAL), ) Possible JOINs: LOCATION.RESTAURANT_ID = RESTAURANT.RESTAURANT_ID LOCATION.CITY_NAME = GEOGRAPHIC.CITY_NAME RESTAURANT.CITY_NAME = GEOGRAPHIC.CITY_NAME
SELECT t2.house_number , restaurant.name FROM restaurant JOIN LOCATION AS t2 ON restaurant.id = t2.restaurant_id WHERE t2.city_name = "mountain view" AND restaurant.food_type = "arabic" AND restaurant.rating > 2.5;
Table geographic ( geographic.city_name (TEXT), geographic.county (TEXT), geographic.region (TEXT), ) Table location ( location.restaurant_id (INT), location.house_number (INT), location.street_name (TEXT), location.city_name (TEXT), ) Table restaurant ( restaurant.id (INT), restaurant.name (TEXT), restaurant.food_type (TEXT), restaurant.city_name (TEXT), restaurant.rating (REAL), ) Possible JOINs: location.restaurant_id = restaurant.restaurant_id location.city_name = geographic.city_name restaurant.city_name = geographic.city_name
{ 'geographic': ['city_name', 'county', 'region'], 'restaurant': ['id', 'name', 'food_type', 'city_name', 'rating'], 'location': ['restaurant_id', 'house_number', 'street_name', 'city_name'] }
{ 'restaurant': ['id', 'name', 'food_type', 'city_name', 'rating'], 'location': ['restaurant_id', 'house_number', 'city_name'] }
TABLE LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), LOCATION.CITY_NAME (TEXT), ) TABLE RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.FOOD_TYPE (TEXT), RESTAURANT.CITY_NAME (TEXT), RESTAURANT.RATING (REAL), ) Possible JOINs:
TABLE LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), LOCATION.STREET_NAME (TEXT), LOCATION.CITY_NAME (TEXT), ) TABLE RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.FOOD_TYPE (TEXT), RESTAURANT.CITY_NAME (TEXT), RESTAURANT.RATING (REAL), ) Possible JOINs: LOCATION.RESTAURANT_ID = RESTAURANT.RESTAURANT_ID LOCATION.CITY_NAME = GEOGRAPHIC.CITY_NAME RESTAURANT.CITY_NAME = GEOGRAPHIC.CITY_NAME
restaurants
give me some good places for arabic in mountain view ?
extra
Table GEOGRAPHIC ( GEOGRAPHIC.CITY_NAME (TEXT), GEOGRAPHIC.COUNTY (TEXT), GEOGRAPHIC.REGION (TEXT), ) Table LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), LOCATION.STREET_NAME (TEXT), LOCATION.CITY_NAME (TEXT), ) Table RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.FOOD_TYPE (TEXT), RESTAURANT.CITY_NAME (TEXT), RESTAURANT.RATING (REAL), ) Possible JOINs: LOCATION.RESTAURANT_ID = RESTAURANT.RESTAURANT_ID LOCATION.CITY_NAME = GEOGRAPHIC.CITY_NAME RESTAURANT.CITY_NAME = GEOGRAPHIC.CITY_NAME
SELECT t2.house_number , restaurant.name FROM restaurant JOIN LOCATION AS t2 ON restaurant.id = t2.restaurant_id WHERE t2.city_name = "mountain view" AND restaurant.food_type = "arabic" AND restaurant.rating > 2.5;
Table geographic ( geographic.city_name (TEXT), geographic.county (TEXT), geographic.region (TEXT), ) Table location ( location.restaurant_id (INT), location.house_number (INT), location.street_name (TEXT), location.city_name (TEXT), ) Table restaurant ( restaurant.id (INT), restaurant.name (TEXT), restaurant.food_type (TEXT), restaurant.city_name (TEXT), restaurant.rating (REAL), ) Possible JOINs: location.restaurant_id = restaurant.restaurant_id location.city_name = geographic.city_name restaurant.city_name = geographic.city_name
{ 'geographic': ['city_name', 'county', 'region'], 'restaurant': ['id', 'name', 'food_type', 'city_name', 'rating'], 'location': ['restaurant_id', 'house_number', 'street_name', 'city_name'] }
{ 'restaurant': ['id', 'name', 'food_type', 'city_name', 'rating'], 'location': ['restaurant_id', 'house_number', 'city_name'] }
TABLE LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), LOCATION.CITY_NAME (TEXT), ) TABLE RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.FOOD_TYPE (TEXT), RESTAURANT.CITY_NAME (TEXT), RESTAURANT.RATING (REAL), ) Possible JOINs:
TABLE LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), LOCATION.STREET_NAME (TEXT), LOCATION.CITY_NAME (TEXT), ) TABLE RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.FOOD_TYPE (TEXT), RESTAURANT.CITY_NAME (TEXT), RESTAURANT.RATING (REAL), ) Possible JOINs: LOCATION.RESTAURANT_ID = RESTAURANT.RESTAURANT_ID LOCATION.CITY_NAME = GEOGRAPHIC.CITY_NAME RESTAURANT.CITY_NAME = GEOGRAPHIC.CITY_NAME
restaurants
where is a good arabic in mountain view ?
extra
Table GEOGRAPHIC ( GEOGRAPHIC.CITY_NAME (TEXT), GEOGRAPHIC.COUNTY (TEXT), GEOGRAPHIC.REGION (TEXT), ) Table LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), LOCATION.STREET_NAME (TEXT), LOCATION.CITY_NAME (TEXT), ) Table RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.FOOD_TYPE (TEXT), RESTAURANT.CITY_NAME (TEXT), RESTAURANT.RATING (REAL), ) Possible JOINs: LOCATION.RESTAURANT_ID = RESTAURANT.RESTAURANT_ID LOCATION.CITY_NAME = GEOGRAPHIC.CITY_NAME RESTAURANT.CITY_NAME = GEOGRAPHIC.CITY_NAME
SELECT t2.house_number , restaurant.name FROM restaurant JOIN LOCATION AS t2 ON restaurant.id = t2.restaurant_id WHERE t2.city_name = "mountain view" AND restaurant.food_type = "arabic" AND restaurant.rating > 2.5;
Table geographic ( geographic.city_name (TEXT), geographic.county (TEXT), geographic.region (TEXT), ) Table location ( location.restaurant_id (INT), location.house_number (INT), location.street_name (TEXT), location.city_name (TEXT), ) Table restaurant ( restaurant.id (INT), restaurant.name (TEXT), restaurant.food_type (TEXT), restaurant.city_name (TEXT), restaurant.rating (REAL), ) Possible JOINs: location.restaurant_id = restaurant.restaurant_id location.city_name = geographic.city_name restaurant.city_name = geographic.city_name
{ 'geographic': ['city_name', 'county', 'region'], 'restaurant': ['id', 'name', 'food_type', 'city_name', 'rating'], 'location': ['restaurant_id', 'house_number', 'street_name', 'city_name'] }
{ 'restaurant': ['id', 'name', 'food_type', 'city_name', 'rating'], 'location': ['restaurant_id', 'house_number', 'city_name'] }
TABLE LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), LOCATION.CITY_NAME (TEXT), ) TABLE RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.FOOD_TYPE (TEXT), RESTAURANT.CITY_NAME (TEXT), RESTAURANT.RATING (REAL), ) Possible JOINs:
TABLE LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), LOCATION.STREET_NAME (TEXT), LOCATION.CITY_NAME (TEXT), ) TABLE RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.FOOD_TYPE (TEXT), RESTAURANT.CITY_NAME (TEXT), RESTAURANT.RATING (REAL), ) Possible JOINs: LOCATION.RESTAURANT_ID = RESTAURANT.RESTAURANT_ID LOCATION.CITY_NAME = GEOGRAPHIC.CITY_NAME RESTAURANT.CITY_NAME = GEOGRAPHIC.CITY_NAME
restaurants
give me a restaurant in mountain view that serves good arabic food ?
extra
Table GEOGRAPHIC ( GEOGRAPHIC.CITY_NAME (TEXT), GEOGRAPHIC.COUNTY (TEXT), GEOGRAPHIC.REGION (TEXT), ) Table LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), LOCATION.STREET_NAME (TEXT), LOCATION.CITY_NAME (TEXT), ) Table RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.FOOD_TYPE (TEXT), RESTAURANT.CITY_NAME (TEXT), RESTAURANT.RATING (REAL), ) Possible JOINs: LOCATION.RESTAURANT_ID = RESTAURANT.RESTAURANT_ID LOCATION.CITY_NAME = GEOGRAPHIC.CITY_NAME RESTAURANT.CITY_NAME = GEOGRAPHIC.CITY_NAME
SELECT t2.house_number , restaurant.name FROM restaurant JOIN LOCATION AS t2 ON restaurant.id = t2.restaurant_id WHERE t2.city_name = "mountain view" AND restaurant.food_type = "arabic" AND restaurant.rating > 2.5;
Table geographic ( geographic.city_name (TEXT), geographic.county (TEXT), geographic.region (TEXT), ) Table location ( location.restaurant_id (INT), location.house_number (INT), location.street_name (TEXT), location.city_name (TEXT), ) Table restaurant ( restaurant.id (INT), restaurant.name (TEXT), restaurant.food_type (TEXT), restaurant.city_name (TEXT), restaurant.rating (REAL), ) Possible JOINs: location.restaurant_id = restaurant.restaurant_id location.city_name = geographic.city_name restaurant.city_name = geographic.city_name
{ 'geographic': ['city_name', 'county', 'region'], 'restaurant': ['id', 'name', 'food_type', 'city_name', 'rating'], 'location': ['restaurant_id', 'house_number', 'street_name', 'city_name'] }
{ 'restaurant': ['id', 'name', 'food_type', 'city_name', 'rating'], 'location': ['restaurant_id', 'house_number', 'city_name'] }
TABLE LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), LOCATION.CITY_NAME (TEXT), ) TABLE RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.FOOD_TYPE (TEXT), RESTAURANT.CITY_NAME (TEXT), RESTAURANT.RATING (REAL), ) Possible JOINs:
TABLE LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), LOCATION.STREET_NAME (TEXT), LOCATION.CITY_NAME (TEXT), ) TABLE RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.FOOD_TYPE (TEXT), RESTAURANT.CITY_NAME (TEXT), RESTAURANT.RATING (REAL), ) Possible JOINs: LOCATION.RESTAURANT_ID = RESTAURANT.RESTAURANT_ID LOCATION.CITY_NAME = GEOGRAPHIC.CITY_NAME RESTAURANT.CITY_NAME = GEOGRAPHIC.CITY_NAME
restaurants
give me some good arabic restaurants in mountain view ?
extra
Table GEOGRAPHIC ( GEOGRAPHIC.CITY_NAME (TEXT), GEOGRAPHIC.COUNTY (TEXT), GEOGRAPHIC.REGION (TEXT), ) Table LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), LOCATION.STREET_NAME (TEXT), LOCATION.CITY_NAME (TEXT), ) Table RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.FOOD_TYPE (TEXT), RESTAURANT.CITY_NAME (TEXT), RESTAURANT.RATING (REAL), ) Possible JOINs: LOCATION.RESTAURANT_ID = RESTAURANT.RESTAURANT_ID LOCATION.CITY_NAME = GEOGRAPHIC.CITY_NAME RESTAURANT.CITY_NAME = GEOGRAPHIC.CITY_NAME
SELECT t2.house_number , restaurant.name FROM restaurant JOIN LOCATION AS t2 ON restaurant.id = t2.restaurant_id WHERE t2.city_name = "mountain view" AND restaurant.food_type = "arabic" AND restaurant.rating > 2.5;
Table geographic ( geographic.city_name (TEXT), geographic.county (TEXT), geographic.region (TEXT), ) Table location ( location.restaurant_id (INT), location.house_number (INT), location.street_name (TEXT), location.city_name (TEXT), ) Table restaurant ( restaurant.id (INT), restaurant.name (TEXT), restaurant.food_type (TEXT), restaurant.city_name (TEXT), restaurant.rating (REAL), ) Possible JOINs: location.restaurant_id = restaurant.restaurant_id location.city_name = geographic.city_name restaurant.city_name = geographic.city_name
{ 'geographic': ['city_name', 'county', 'region'], 'restaurant': ['id', 'name', 'food_type', 'city_name', 'rating'], 'location': ['restaurant_id', 'house_number', 'street_name', 'city_name'] }
{ 'restaurant': ['id', 'name', 'food_type', 'city_name', 'rating'], 'location': ['restaurant_id', 'house_number', 'city_name'] }
TABLE LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), LOCATION.CITY_NAME (TEXT), ) TABLE RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.FOOD_TYPE (TEXT), RESTAURANT.CITY_NAME (TEXT), RESTAURANT.RATING (REAL), ) Possible JOINs:
TABLE LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), LOCATION.STREET_NAME (TEXT), LOCATION.CITY_NAME (TEXT), ) TABLE RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.FOOD_TYPE (TEXT), RESTAURANT.CITY_NAME (TEXT), RESTAURANT.RATING (REAL), ) Possible JOINs: LOCATION.RESTAURANT_ID = RESTAURANT.RESTAURANT_ID LOCATION.CITY_NAME = GEOGRAPHIC.CITY_NAME RESTAURANT.CITY_NAME = GEOGRAPHIC.CITY_NAME
restaurants
where are some good places for arabic in mountain view ?
extra
Table GEOGRAPHIC ( GEOGRAPHIC.CITY_NAME (TEXT), GEOGRAPHIC.COUNTY (TEXT), GEOGRAPHIC.REGION (TEXT), ) Table LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), LOCATION.STREET_NAME (TEXT), LOCATION.CITY_NAME (TEXT), ) Table RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.FOOD_TYPE (TEXT), RESTAURANT.CITY_NAME (TEXT), RESTAURANT.RATING (REAL), ) Possible JOINs: LOCATION.RESTAURANT_ID = RESTAURANT.RESTAURANT_ID LOCATION.CITY_NAME = GEOGRAPHIC.CITY_NAME RESTAURANT.CITY_NAME = GEOGRAPHIC.CITY_NAME
SELECT t2.house_number , restaurant.name FROM restaurant JOIN LOCATION AS t2 ON restaurant.id = t2.restaurant_id WHERE t2.city_name = "mountain view" AND restaurant.food_type = "arabic" AND restaurant.rating > 2.5;
Table geographic ( geographic.city_name (TEXT), geographic.county (TEXT), geographic.region (TEXT), ) Table location ( location.restaurant_id (INT), location.house_number (INT), location.street_name (TEXT), location.city_name (TEXT), ) Table restaurant ( restaurant.id (INT), restaurant.name (TEXT), restaurant.food_type (TEXT), restaurant.city_name (TEXT), restaurant.rating (REAL), ) Possible JOINs: location.restaurant_id = restaurant.restaurant_id location.city_name = geographic.city_name restaurant.city_name = geographic.city_name
{ 'geographic': ['city_name', 'county', 'region'], 'restaurant': ['id', 'name', 'food_type', 'city_name', 'rating'], 'location': ['restaurant_id', 'house_number', 'street_name', 'city_name'] }
{ 'restaurant': ['id', 'name', 'food_type', 'city_name', 'rating'], 'location': ['restaurant_id', 'house_number', 'city_name'] }
TABLE LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), LOCATION.CITY_NAME (TEXT), ) TABLE RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.FOOD_TYPE (TEXT), RESTAURANT.CITY_NAME (TEXT), RESTAURANT.RATING (REAL), ) Possible JOINs:
TABLE LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), LOCATION.STREET_NAME (TEXT), LOCATION.CITY_NAME (TEXT), ) TABLE RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.FOOD_TYPE (TEXT), RESTAURANT.CITY_NAME (TEXT), RESTAURANT.RATING (REAL), ) Possible JOINs: LOCATION.RESTAURANT_ID = RESTAURANT.RESTAURANT_ID LOCATION.CITY_NAME = GEOGRAPHIC.CITY_NAME RESTAURANT.CITY_NAME = GEOGRAPHIC.CITY_NAME
restaurants
give me some good arabics in mountain view ?
extra
Table GEOGRAPHIC ( GEOGRAPHIC.CITY_NAME (TEXT), GEOGRAPHIC.COUNTY (TEXT), GEOGRAPHIC.REGION (TEXT), ) Table LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), LOCATION.STREET_NAME (TEXT), LOCATION.CITY_NAME (TEXT), ) Table RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.FOOD_TYPE (TEXT), RESTAURANT.CITY_NAME (TEXT), RESTAURANT.RATING (REAL), ) Possible JOINs: LOCATION.RESTAURANT_ID = RESTAURANT.RESTAURANT_ID LOCATION.CITY_NAME = GEOGRAPHIC.CITY_NAME RESTAURANT.CITY_NAME = GEOGRAPHIC.CITY_NAME
SELECT t2.house_number , restaurant.name FROM restaurant JOIN LOCATION AS t2 ON restaurant.id = t2.restaurant_id WHERE t2.city_name = "mountain view" AND restaurant.food_type = "arabic" AND restaurant.rating > 2.5;
Table geographic ( geographic.city_name (TEXT), geographic.county (TEXT), geographic.region (TEXT), ) Table location ( location.restaurant_id (INT), location.house_number (INT), location.street_name (TEXT), location.city_name (TEXT), ) Table restaurant ( restaurant.id (INT), restaurant.name (TEXT), restaurant.food_type (TEXT), restaurant.city_name (TEXT), restaurant.rating (REAL), ) Possible JOINs: location.restaurant_id = restaurant.restaurant_id location.city_name = geographic.city_name restaurant.city_name = geographic.city_name
{ 'geographic': ['city_name', 'county', 'region'], 'restaurant': ['id', 'name', 'food_type', 'city_name', 'rating'], 'location': ['restaurant_id', 'house_number', 'street_name', 'city_name'] }
{ 'restaurant': ['id', 'name', 'food_type', 'city_name', 'rating'], 'location': ['restaurant_id', 'house_number', 'city_name'] }
TABLE LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), LOCATION.CITY_NAME (TEXT), ) TABLE RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.FOOD_TYPE (TEXT), RESTAURANT.CITY_NAME (TEXT), RESTAURANT.RATING (REAL), ) Possible JOINs:
TABLE LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), LOCATION.STREET_NAME (TEXT), LOCATION.CITY_NAME (TEXT), ) TABLE RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.FOOD_TYPE (TEXT), RESTAURANT.CITY_NAME (TEXT), RESTAURANT.RATING (REAL), ) Possible JOINs: LOCATION.RESTAURANT_ID = RESTAURANT.RESTAURANT_ID LOCATION.CITY_NAME = GEOGRAPHIC.CITY_NAME RESTAURANT.CITY_NAME = GEOGRAPHIC.CITY_NAME
restaurants
give me a good restaurant in mountain view for arabic food ?
extra
Table GEOGRAPHIC ( GEOGRAPHIC.CITY_NAME (TEXT), GEOGRAPHIC.COUNTY (TEXT), GEOGRAPHIC.REGION (TEXT), ) Table LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), LOCATION.STREET_NAME (TEXT), LOCATION.CITY_NAME (TEXT), ) Table RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.FOOD_TYPE (TEXT), RESTAURANT.CITY_NAME (TEXT), RESTAURANT.RATING (REAL), ) Possible JOINs: LOCATION.RESTAURANT_ID = RESTAURANT.RESTAURANT_ID LOCATION.CITY_NAME = GEOGRAPHIC.CITY_NAME RESTAURANT.CITY_NAME = GEOGRAPHIC.CITY_NAME
SELECT t2.house_number , restaurant.name FROM restaurant JOIN LOCATION AS t2 ON restaurant.id = t2.restaurant_id WHERE t2.city_name = "mountain view" AND restaurant.food_type = "arabic" AND restaurant.rating > 2.5;
Table geographic ( geographic.city_name (TEXT), geographic.county (TEXT), geographic.region (TEXT), ) Table location ( location.restaurant_id (INT), location.house_number (INT), location.street_name (TEXT), location.city_name (TEXT), ) Table restaurant ( restaurant.id (INT), restaurant.name (TEXT), restaurant.food_type (TEXT), restaurant.city_name (TEXT), restaurant.rating (REAL), ) Possible JOINs: location.restaurant_id = restaurant.restaurant_id location.city_name = geographic.city_name restaurant.city_name = geographic.city_name
{ 'geographic': ['city_name', 'county', 'region'], 'restaurant': ['id', 'name', 'food_type', 'city_name', 'rating'], 'location': ['restaurant_id', 'house_number', 'street_name', 'city_name'] }
{ 'restaurant': ['id', 'name', 'food_type', 'city_name', 'rating'], 'location': ['restaurant_id', 'house_number', 'city_name'] }
TABLE LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), LOCATION.CITY_NAME (TEXT), ) TABLE RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.FOOD_TYPE (TEXT), RESTAURANT.CITY_NAME (TEXT), RESTAURANT.RATING (REAL), ) Possible JOINs:
TABLE LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), LOCATION.STREET_NAME (TEXT), LOCATION.CITY_NAME (TEXT), ) TABLE RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.FOOD_TYPE (TEXT), RESTAURANT.CITY_NAME (TEXT), RESTAURANT.RATING (REAL), ) Possible JOINs: LOCATION.RESTAURANT_ID = RESTAURANT.RESTAURANT_ID LOCATION.CITY_NAME = GEOGRAPHIC.CITY_NAME RESTAURANT.CITY_NAME = GEOGRAPHIC.CITY_NAME
restaurants
where is a good arabic restaurant in mountain view ?
extra
Table GEOGRAPHIC ( GEOGRAPHIC.CITY_NAME (TEXT), GEOGRAPHIC.COUNTY (TEXT), GEOGRAPHIC.REGION (TEXT), ) Table LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), LOCATION.STREET_NAME (TEXT), LOCATION.CITY_NAME (TEXT), ) Table RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.FOOD_TYPE (TEXT), RESTAURANT.CITY_NAME (TEXT), RESTAURANT.RATING (REAL), ) Possible JOINs: LOCATION.RESTAURANT_ID = RESTAURANT.RESTAURANT_ID LOCATION.CITY_NAME = GEOGRAPHIC.CITY_NAME RESTAURANT.CITY_NAME = GEOGRAPHIC.CITY_NAME
SELECT t2.house_number , restaurant.name FROM restaurant JOIN LOCATION AS t2 ON restaurant.id = t2.restaurant_id WHERE t2.city_name = "mountain view" AND restaurant.food_type = "arabic" AND restaurant.rating > 2.5;
Table geographic ( geographic.city_name (TEXT), geographic.county (TEXT), geographic.region (TEXT), ) Table location ( location.restaurant_id (INT), location.house_number (INT), location.street_name (TEXT), location.city_name (TEXT), ) Table restaurant ( restaurant.id (INT), restaurant.name (TEXT), restaurant.food_type (TEXT), restaurant.city_name (TEXT), restaurant.rating (REAL), ) Possible JOINs: location.restaurant_id = restaurant.restaurant_id location.city_name = geographic.city_name restaurant.city_name = geographic.city_name
{ 'geographic': ['city_name', 'county', 'region'], 'restaurant': ['id', 'name', 'food_type', 'city_name', 'rating'], 'location': ['restaurant_id', 'house_number', 'street_name', 'city_name'] }
{ 'restaurant': ['id', 'name', 'food_type', 'city_name', 'rating'], 'location': ['restaurant_id', 'house_number', 'city_name'] }
TABLE LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), LOCATION.CITY_NAME (TEXT), ) TABLE RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.FOOD_TYPE (TEXT), RESTAURANT.CITY_NAME (TEXT), RESTAURANT.RATING (REAL), ) Possible JOINs:
TABLE LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), LOCATION.STREET_NAME (TEXT), LOCATION.CITY_NAME (TEXT), ) TABLE RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.FOOD_TYPE (TEXT), RESTAURANT.CITY_NAME (TEXT), RESTAURANT.RATING (REAL), ) Possible JOINs: LOCATION.RESTAURANT_ID = RESTAURANT.RESTAURANT_ID LOCATION.CITY_NAME = GEOGRAPHIC.CITY_NAME RESTAURANT.CITY_NAME = GEOGRAPHIC.CITY_NAME
restaurants
what are some good places for arabic in mountain view ?
extra
Table GEOGRAPHIC ( GEOGRAPHIC.CITY_NAME (TEXT), GEOGRAPHIC.COUNTY (TEXT), GEOGRAPHIC.REGION (TEXT), ) Table LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), LOCATION.STREET_NAME (TEXT), LOCATION.CITY_NAME (TEXT), ) Table RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.FOOD_TYPE (TEXT), RESTAURANT.CITY_NAME (TEXT), RESTAURANT.RATING (REAL), ) Possible JOINs: LOCATION.RESTAURANT_ID = RESTAURANT.RESTAURANT_ID LOCATION.CITY_NAME = GEOGRAPHIC.CITY_NAME RESTAURANT.CITY_NAME = GEOGRAPHIC.CITY_NAME
SELECT t2.house_number , restaurant.name FROM restaurant JOIN LOCATION AS t2 ON restaurant.id = t2.restaurant_id WHERE t2.city_name = "mountain view" AND restaurant.food_type = "arabic" AND restaurant.rating > 2.5;
Table geographic ( geographic.city_name (TEXT), geographic.county (TEXT), geographic.region (TEXT), ) Table location ( location.restaurant_id (INT), location.house_number (INT), location.street_name (TEXT), location.city_name (TEXT), ) Table restaurant ( restaurant.id (INT), restaurant.name (TEXT), restaurant.food_type (TEXT), restaurant.city_name (TEXT), restaurant.rating (REAL), ) Possible JOINs: location.restaurant_id = restaurant.restaurant_id location.city_name = geographic.city_name restaurant.city_name = geographic.city_name
{ 'geographic': ['city_name', 'county', 'region'], 'restaurant': ['id', 'name', 'food_type', 'city_name', 'rating'], 'location': ['restaurant_id', 'house_number', 'street_name', 'city_name'] }
{ 'restaurant': ['id', 'name', 'food_type', 'city_name', 'rating'], 'location': ['restaurant_id', 'house_number', 'city_name'] }
TABLE LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), LOCATION.CITY_NAME (TEXT), ) TABLE RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.FOOD_TYPE (TEXT), RESTAURANT.CITY_NAME (TEXT), RESTAURANT.RATING (REAL), ) Possible JOINs:
TABLE LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), LOCATION.STREET_NAME (TEXT), LOCATION.CITY_NAME (TEXT), ) TABLE RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.FOOD_TYPE (TEXT), RESTAURANT.CITY_NAME (TEXT), RESTAURANT.RATING (REAL), ) Possible JOINs: LOCATION.RESTAURANT_ID = RESTAURANT.RESTAURANT_ID LOCATION.CITY_NAME = GEOGRAPHIC.CITY_NAME RESTAURANT.CITY_NAME = GEOGRAPHIC.CITY_NAME
restaurants
where is a good restaurant in mountain view for arabic food ?
extra
Table GEOGRAPHIC ( GEOGRAPHIC.CITY_NAME (TEXT), GEOGRAPHIC.COUNTY (TEXT), GEOGRAPHIC.REGION (TEXT), ) Table LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), LOCATION.STREET_NAME (TEXT), LOCATION.CITY_NAME (TEXT), ) Table RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.FOOD_TYPE (TEXT), RESTAURANT.CITY_NAME (TEXT), RESTAURANT.RATING (REAL), ) Possible JOINs: LOCATION.RESTAURANT_ID = RESTAURANT.RESTAURANT_ID LOCATION.CITY_NAME = GEOGRAPHIC.CITY_NAME RESTAURANT.CITY_NAME = GEOGRAPHIC.CITY_NAME
SELECT t2.house_number , restaurant.name FROM restaurant JOIN LOCATION AS t2 ON restaurant.id = t2.restaurant_id WHERE t2.city_name = "mountain view" AND restaurant.food_type = "arabic" AND restaurant.rating > 2.5;
Table geographic ( geographic.city_name (TEXT), geographic.county (TEXT), geographic.region (TEXT), ) Table location ( location.restaurant_id (INT), location.house_number (INT), location.street_name (TEXT), location.city_name (TEXT), ) Table restaurant ( restaurant.id (INT), restaurant.name (TEXT), restaurant.food_type (TEXT), restaurant.city_name (TEXT), restaurant.rating (REAL), ) Possible JOINs: location.restaurant_id = restaurant.restaurant_id location.city_name = geographic.city_name restaurant.city_name = geographic.city_name
{ 'geographic': ['city_name', 'county', 'region'], 'restaurant': ['id', 'name', 'food_type', 'city_name', 'rating'], 'location': ['restaurant_id', 'house_number', 'street_name', 'city_name'] }
{ 'restaurant': ['id', 'name', 'food_type', 'city_name', 'rating'], 'location': ['restaurant_id', 'house_number', 'city_name'] }
TABLE LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), LOCATION.CITY_NAME (TEXT), ) TABLE RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.FOOD_TYPE (TEXT), RESTAURANT.CITY_NAME (TEXT), RESTAURANT.RATING (REAL), ) Possible JOINs:
TABLE LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), LOCATION.STREET_NAME (TEXT), LOCATION.CITY_NAME (TEXT), ) TABLE RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.FOOD_TYPE (TEXT), RESTAURANT.CITY_NAME (TEXT), RESTAURANT.RATING (REAL), ) Possible JOINs: LOCATION.RESTAURANT_ID = RESTAURANT.RESTAURANT_ID LOCATION.CITY_NAME = GEOGRAPHIC.CITY_NAME RESTAURANT.CITY_NAME = GEOGRAPHIC.CITY_NAME
restaurants
where is a good place in mountain view for arabic food ?
extra
Table GEOGRAPHIC ( GEOGRAPHIC.CITY_NAME (TEXT), GEOGRAPHIC.COUNTY (TEXT), GEOGRAPHIC.REGION (TEXT), ) Table LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), LOCATION.STREET_NAME (TEXT), LOCATION.CITY_NAME (TEXT), ) Table RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.FOOD_TYPE (TEXT), RESTAURANT.CITY_NAME (TEXT), RESTAURANT.RATING (REAL), ) Possible JOINs: LOCATION.RESTAURANT_ID = RESTAURANT.RESTAURANT_ID LOCATION.CITY_NAME = GEOGRAPHIC.CITY_NAME RESTAURANT.CITY_NAME = GEOGRAPHIC.CITY_NAME
SELECT t2.house_number , restaurant.name FROM restaurant JOIN LOCATION AS t2 ON restaurant.id = t2.restaurant_id WHERE t2.city_name = "mountain view" AND restaurant.food_type = "arabic" AND restaurant.rating > 2.5;
Table geographic ( geographic.city_name (TEXT), geographic.county (TEXT), geographic.region (TEXT), ) Table location ( location.restaurant_id (INT), location.house_number (INT), location.street_name (TEXT), location.city_name (TEXT), ) Table restaurant ( restaurant.id (INT), restaurant.name (TEXT), restaurant.food_type (TEXT), restaurant.city_name (TEXT), restaurant.rating (REAL), ) Possible JOINs: location.restaurant_id = restaurant.restaurant_id location.city_name = geographic.city_name restaurant.city_name = geographic.city_name
{ 'geographic': ['city_name', 'county', 'region'], 'restaurant': ['id', 'name', 'food_type', 'city_name', 'rating'], 'location': ['restaurant_id', 'house_number', 'street_name', 'city_name'] }
{ 'restaurant': ['id', 'name', 'food_type', 'city_name', 'rating'], 'location': ['restaurant_id', 'house_number', 'city_name'] }
TABLE LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), LOCATION.CITY_NAME (TEXT), ) TABLE RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.FOOD_TYPE (TEXT), RESTAURANT.CITY_NAME (TEXT), RESTAURANT.RATING (REAL), ) Possible JOINs:
TABLE LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), LOCATION.STREET_NAME (TEXT), LOCATION.CITY_NAME (TEXT), ) TABLE RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.FOOD_TYPE (TEXT), RESTAURANT.CITY_NAME (TEXT), RESTAURANT.RATING (REAL), ) Possible JOINs: LOCATION.RESTAURANT_ID = RESTAURANT.RESTAURANT_ID LOCATION.CITY_NAME = GEOGRAPHIC.CITY_NAME RESTAURANT.CITY_NAME = GEOGRAPHIC.CITY_NAME
restaurants
where can i find a jamerican cuisine in san francisco ?
extra
Table GEOGRAPHIC ( GEOGRAPHIC.CITY_NAME (TEXT), GEOGRAPHIC.COUNTY (TEXT), GEOGRAPHIC.REGION (TEXT), ) Table LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), LOCATION.STREET_NAME (TEXT), LOCATION.CITY_NAME (TEXT), ) Table RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.FOOD_TYPE (TEXT), RESTAURANT.CITY_NAME (TEXT), RESTAURANT.RATING (REAL), ) Possible JOINs: LOCATION.RESTAURANT_ID = RESTAURANT.RESTAURANT_ID LOCATION.CITY_NAME = GEOGRAPHIC.CITY_NAME RESTAURANT.CITY_NAME = GEOGRAPHIC.CITY_NAME
SELECT t2.house_number , restaurant.name FROM restaurant JOIN LOCATION AS t2 ON restaurant.id = t2.restaurant_id WHERE t2.city_name = "san francisco" AND restaurant.name = "jamerican cuisine";
Table geographic ( geographic.city_name (TEXT), geographic.county (TEXT), geographic.region (TEXT), ) Table location ( location.restaurant_id (INT), location.house_number (INT), location.street_name (TEXT), location.city_name (TEXT), ) Table restaurant ( restaurant.id (INT), restaurant.name (TEXT), restaurant.food_type (TEXT), restaurant.city_name (TEXT), restaurant.rating (REAL), ) Possible JOINs: location.restaurant_id = restaurant.restaurant_id location.city_name = geographic.city_name restaurant.city_name = geographic.city_name
{ 'geographic': ['city_name', 'county', 'region'], 'restaurant': ['id', 'name', 'food_type', 'city_name', 'rating'], 'location': ['restaurant_id', 'house_number', 'street_name', 'city_name'] }
{ 'restaurant': ['id', 'name', 'city_name'], 'location': ['restaurant_id', 'house_number', 'city_name'] }
TABLE LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), LOCATION.CITY_NAME (TEXT), ) TABLE RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.CITY_NAME (TEXT), ) Possible JOINs:
TABLE LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), LOCATION.STREET_NAME (TEXT), LOCATION.CITY_NAME (TEXT), ) TABLE RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.FOOD_TYPE (TEXT), RESTAURANT.CITY_NAME (TEXT), RESTAURANT.RATING (REAL), ) Possible JOINs: LOCATION.RESTAURANT_ID = RESTAURANT.RESTAURANT_ID LOCATION.CITY_NAME = GEOGRAPHIC.CITY_NAME RESTAURANT.CITY_NAME = GEOGRAPHIC.CITY_NAME
restaurants
where is jamerican cuisine in san francisco ?
extra
Table GEOGRAPHIC ( GEOGRAPHIC.CITY_NAME (TEXT), GEOGRAPHIC.COUNTY (TEXT), GEOGRAPHIC.REGION (TEXT), ) Table LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), LOCATION.STREET_NAME (TEXT), LOCATION.CITY_NAME (TEXT), ) Table RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.FOOD_TYPE (TEXT), RESTAURANT.CITY_NAME (TEXT), RESTAURANT.RATING (REAL), ) Possible JOINs: LOCATION.RESTAURANT_ID = RESTAURANT.RESTAURANT_ID LOCATION.CITY_NAME = GEOGRAPHIC.CITY_NAME RESTAURANT.CITY_NAME = GEOGRAPHIC.CITY_NAME
SELECT t2.house_number , restaurant.name FROM restaurant JOIN LOCATION AS t2 ON restaurant.id = t2.restaurant_id WHERE t2.city_name = "san francisco" AND restaurant.name = "jamerican cuisine";
Table geographic ( geographic.city_name (TEXT), geographic.county (TEXT), geographic.region (TEXT), ) Table location ( location.restaurant_id (INT), location.house_number (INT), location.street_name (TEXT), location.city_name (TEXT), ) Table restaurant ( restaurant.id (INT), restaurant.name (TEXT), restaurant.food_type (TEXT), restaurant.city_name (TEXT), restaurant.rating (REAL), ) Possible JOINs: location.restaurant_id = restaurant.restaurant_id location.city_name = geographic.city_name restaurant.city_name = geographic.city_name
{ 'geographic': ['city_name', 'county', 'region'], 'restaurant': ['id', 'name', 'food_type', 'city_name', 'rating'], 'location': ['restaurant_id', 'house_number', 'street_name', 'city_name'] }
{ 'restaurant': ['id', 'name', 'city_name'], 'location': ['restaurant_id', 'house_number', 'city_name'] }
TABLE LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), LOCATION.CITY_NAME (TEXT), ) TABLE RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.CITY_NAME (TEXT), ) Possible JOINs:
TABLE LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), LOCATION.STREET_NAME (TEXT), LOCATION.CITY_NAME (TEXT), ) TABLE RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.FOOD_TYPE (TEXT), RESTAURANT.CITY_NAME (TEXT), RESTAURANT.RATING (REAL), ) Possible JOINs: LOCATION.RESTAURANT_ID = RESTAURANT.RESTAURANT_ID LOCATION.CITY_NAME = GEOGRAPHIC.CITY_NAME RESTAURANT.CITY_NAME = GEOGRAPHIC.CITY_NAME
restaurants
where is a jamerican cuisine in san francisco ?
extra
Table GEOGRAPHIC ( GEOGRAPHIC.CITY_NAME (TEXT), GEOGRAPHIC.COUNTY (TEXT), GEOGRAPHIC.REGION (TEXT), ) Table LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), LOCATION.STREET_NAME (TEXT), LOCATION.CITY_NAME (TEXT), ) Table RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.FOOD_TYPE (TEXT), RESTAURANT.CITY_NAME (TEXT), RESTAURANT.RATING (REAL), ) Possible JOINs: LOCATION.RESTAURANT_ID = RESTAURANT.RESTAURANT_ID LOCATION.CITY_NAME = GEOGRAPHIC.CITY_NAME RESTAURANT.CITY_NAME = GEOGRAPHIC.CITY_NAME
SELECT t2.house_number , restaurant.name FROM restaurant JOIN LOCATION AS t2 ON restaurant.id = t2.restaurant_id WHERE t2.city_name = "san francisco" AND restaurant.name = "jamerican cuisine";
Table geographic ( geographic.city_name (TEXT), geographic.county (TEXT), geographic.region (TEXT), ) Table location ( location.restaurant_id (INT), location.house_number (INT), location.street_name (TEXT), location.city_name (TEXT), ) Table restaurant ( restaurant.id (INT), restaurant.name (TEXT), restaurant.food_type (TEXT), restaurant.city_name (TEXT), restaurant.rating (REAL), ) Possible JOINs: location.restaurant_id = restaurant.restaurant_id location.city_name = geographic.city_name restaurant.city_name = geographic.city_name
{ 'geographic': ['city_name', 'county', 'region'], 'restaurant': ['id', 'name', 'food_type', 'city_name', 'rating'], 'location': ['restaurant_id', 'house_number', 'street_name', 'city_name'] }
{ 'restaurant': ['id', 'name', 'city_name'], 'location': ['restaurant_id', 'house_number', 'city_name'] }
TABLE LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), LOCATION.CITY_NAME (TEXT), ) TABLE RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.CITY_NAME (TEXT), ) Possible JOINs:
TABLE LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), LOCATION.STREET_NAME (TEXT), LOCATION.CITY_NAME (TEXT), ) TABLE RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.FOOD_TYPE (TEXT), RESTAURANT.CITY_NAME (TEXT), RESTAURANT.RATING (REAL), ) Possible JOINs: LOCATION.RESTAURANT_ID = RESTAURANT.RESTAURANT_ID LOCATION.CITY_NAME = GEOGRAPHIC.CITY_NAME RESTAURANT.CITY_NAME = GEOGRAPHIC.CITY_NAME
restaurants
where can we find some restaurants in the bay area ?
extra
Table GEOGRAPHIC ( GEOGRAPHIC.CITY_NAME (TEXT), GEOGRAPHIC.COUNTY (TEXT), GEOGRAPHIC.REGION (TEXT), ) Table LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), LOCATION.STREET_NAME (TEXT), LOCATION.CITY_NAME (TEXT), ) Table RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.FOOD_TYPE (TEXT), RESTAURANT.CITY_NAME (TEXT), RESTAURANT.RATING (REAL), ) Possible JOINs: LOCATION.RESTAURANT_ID = RESTAURANT.RESTAURANT_ID LOCATION.CITY_NAME = GEOGRAPHIC.CITY_NAME RESTAURANT.CITY_NAME = GEOGRAPHIC.CITY_NAME
SELECT t2.house_number , restaurant.name FROM LOCATION AS t2 JOIN restaurant ON restaurant.id = t2.restaurant_id WHERE restaurant.city_name IN ( SELECT city_name FROM geographic WHERE region = "bay area" );
Table geographic ( geographic.city_name (TEXT), geographic.county (TEXT), geographic.region (TEXT), ) Table location ( location.restaurant_id (INT), location.house_number (INT), location.street_name (TEXT), location.city_name (TEXT), ) Table restaurant ( restaurant.id (INT), restaurant.name (TEXT), restaurant.food_type (TEXT), restaurant.city_name (TEXT), restaurant.rating (REAL), ) Possible JOINs: location.restaurant_id = restaurant.restaurant_id location.city_name = geographic.city_name restaurant.city_name = geographic.city_name
{ 'geographic': ['city_name', 'county', 'region'], 'restaurant': ['id', 'name', 'food_type', 'city_name', 'rating'], 'location': ['restaurant_id', 'house_number', 'street_name', 'city_name'] }
{ 'location': ['restaurant_id', 'house_number', 'city_name'], 'restaurant': ['id', 'name', 'city_name'], 'geographic': ['city_name', 'region'] }
TABLE GEOGRAPHIC ( GEOGRAPHIC.CITY_NAME (TEXT), GEOGRAPHIC.REGION (TEXT), ) TABLE LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), LOCATION.CITY_NAME (TEXT), ) TABLE RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.CITY_NAME (TEXT), ) Possible JOINs:
TABLE GEOGRAPHIC ( GEOGRAPHIC.CITY_NAME (TEXT), GEOGRAPHIC.COUNTY (TEXT), GEOGRAPHIC.REGION (TEXT), ) TABLE LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), LOCATION.STREET_NAME (TEXT), LOCATION.CITY_NAME (TEXT), ) TABLE RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.FOOD_TYPE (TEXT), RESTAURANT.CITY_NAME (TEXT), RESTAURANT.RATING (REAL), ) Possible JOINs: LOCATION.RESTAURANT_ID = RESTAURANT.RESTAURANT_ID LOCATION.CITY_NAME = GEOGRAPHIC.CITY_NAME RESTAURANT.CITY_NAME = GEOGRAPHIC.CITY_NAME
restaurants
give me some restaurants in the bay area ?
extra
Table GEOGRAPHIC ( GEOGRAPHIC.CITY_NAME (TEXT), GEOGRAPHIC.COUNTY (TEXT), GEOGRAPHIC.REGION (TEXT), ) Table LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), LOCATION.STREET_NAME (TEXT), LOCATION.CITY_NAME (TEXT), ) Table RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.FOOD_TYPE (TEXT), RESTAURANT.CITY_NAME (TEXT), RESTAURANT.RATING (REAL), ) Possible JOINs: LOCATION.RESTAURANT_ID = RESTAURANT.RESTAURANT_ID LOCATION.CITY_NAME = GEOGRAPHIC.CITY_NAME RESTAURANT.CITY_NAME = GEOGRAPHIC.CITY_NAME
SELECT t2.house_number , restaurant.name FROM LOCATION AS t2 JOIN restaurant ON restaurant.id = t2.restaurant_id WHERE restaurant.city_name IN ( SELECT city_name FROM geographic WHERE region = "bay area" );
Table geographic ( geographic.city_name (TEXT), geographic.county (TEXT), geographic.region (TEXT), ) Table location ( location.restaurant_id (INT), location.house_number (INT), location.street_name (TEXT), location.city_name (TEXT), ) Table restaurant ( restaurant.id (INT), restaurant.name (TEXT), restaurant.food_type (TEXT), restaurant.city_name (TEXT), restaurant.rating (REAL), ) Possible JOINs: location.restaurant_id = restaurant.restaurant_id location.city_name = geographic.city_name restaurant.city_name = geographic.city_name
{ 'geographic': ['city_name', 'county', 'region'], 'restaurant': ['id', 'name', 'food_type', 'city_name', 'rating'], 'location': ['restaurant_id', 'house_number', 'street_name', 'city_name'] }
{ 'location': ['restaurant_id', 'house_number', 'city_name'], 'restaurant': ['id', 'name', 'city_name'], 'geographic': ['city_name', 'region'] }
TABLE GEOGRAPHIC ( GEOGRAPHIC.CITY_NAME (TEXT), GEOGRAPHIC.REGION (TEXT), ) TABLE LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), LOCATION.CITY_NAME (TEXT), ) TABLE RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.CITY_NAME (TEXT), ) Possible JOINs:
TABLE GEOGRAPHIC ( GEOGRAPHIC.CITY_NAME (TEXT), GEOGRAPHIC.COUNTY (TEXT), GEOGRAPHIC.REGION (TEXT), ) TABLE LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), LOCATION.STREET_NAME (TEXT), LOCATION.CITY_NAME (TEXT), ) TABLE RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.FOOD_TYPE (TEXT), RESTAURANT.CITY_NAME (TEXT), RESTAURANT.RATING (REAL), ) Possible JOINs: LOCATION.RESTAURANT_ID = RESTAURANT.RESTAURANT_ID LOCATION.CITY_NAME = GEOGRAPHIC.CITY_NAME RESTAURANT.CITY_NAME = GEOGRAPHIC.CITY_NAME
restaurants
give me a restaurant in the bay area ?
extra
Table GEOGRAPHIC ( GEOGRAPHIC.CITY_NAME (TEXT), GEOGRAPHIC.COUNTY (TEXT), GEOGRAPHIC.REGION (TEXT), ) Table LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), LOCATION.STREET_NAME (TEXT), LOCATION.CITY_NAME (TEXT), ) Table RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.FOOD_TYPE (TEXT), RESTAURANT.CITY_NAME (TEXT), RESTAURANT.RATING (REAL), ) Possible JOINs: LOCATION.RESTAURANT_ID = RESTAURANT.RESTAURANT_ID LOCATION.CITY_NAME = GEOGRAPHIC.CITY_NAME RESTAURANT.CITY_NAME = GEOGRAPHIC.CITY_NAME
SELECT t2.house_number , restaurant.name FROM LOCATION AS t2 JOIN restaurant ON restaurant.id = t2.restaurant_id WHERE restaurant.city_name IN ( SELECT city_name FROM geographic WHERE region = "bay area" );
Table geographic ( geographic.city_name (TEXT), geographic.county (TEXT), geographic.region (TEXT), ) Table location ( location.restaurant_id (INT), location.house_number (INT), location.street_name (TEXT), location.city_name (TEXT), ) Table restaurant ( restaurant.id (INT), restaurant.name (TEXT), restaurant.food_type (TEXT), restaurant.city_name (TEXT), restaurant.rating (REAL), ) Possible JOINs: location.restaurant_id = restaurant.restaurant_id location.city_name = geographic.city_name restaurant.city_name = geographic.city_name
{ 'geographic': ['city_name', 'county', 'region'], 'restaurant': ['id', 'name', 'food_type', 'city_name', 'rating'], 'location': ['restaurant_id', 'house_number', 'street_name', 'city_name'] }
{ 'location': ['restaurant_id', 'house_number', 'city_name'], 'restaurant': ['id', 'name', 'city_name'], 'geographic': ['city_name', 'region'] }
TABLE GEOGRAPHIC ( GEOGRAPHIC.CITY_NAME (TEXT), GEOGRAPHIC.REGION (TEXT), ) TABLE LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), LOCATION.CITY_NAME (TEXT), ) TABLE RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.CITY_NAME (TEXT), ) Possible JOINs:
TABLE GEOGRAPHIC ( GEOGRAPHIC.CITY_NAME (TEXT), GEOGRAPHIC.COUNTY (TEXT), GEOGRAPHIC.REGION (TEXT), ) TABLE LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), LOCATION.STREET_NAME (TEXT), LOCATION.CITY_NAME (TEXT), ) TABLE RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.FOOD_TYPE (TEXT), RESTAURANT.CITY_NAME (TEXT), RESTAURANT.RATING (REAL), ) Possible JOINs: LOCATION.RESTAURANT_ID = RESTAURANT.RESTAURANT_ID LOCATION.CITY_NAME = GEOGRAPHIC.CITY_NAME RESTAURANT.CITY_NAME = GEOGRAPHIC.CITY_NAME
restaurants
where can i find a restaurant in the bay area ?
extra
Table GEOGRAPHIC ( GEOGRAPHIC.CITY_NAME (TEXT), GEOGRAPHIC.COUNTY (TEXT), GEOGRAPHIC.REGION (TEXT), ) Table LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), LOCATION.STREET_NAME (TEXT), LOCATION.CITY_NAME (TEXT), ) Table RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.FOOD_TYPE (TEXT), RESTAURANT.CITY_NAME (TEXT), RESTAURANT.RATING (REAL), ) Possible JOINs: LOCATION.RESTAURANT_ID = RESTAURANT.RESTAURANT_ID LOCATION.CITY_NAME = GEOGRAPHIC.CITY_NAME RESTAURANT.CITY_NAME = GEOGRAPHIC.CITY_NAME
SELECT t2.house_number , restaurant.name FROM LOCATION AS t2 JOIN restaurant ON restaurant.id = t2.restaurant_id WHERE restaurant.city_name IN ( SELECT city_name FROM geographic WHERE region = "bay area" );
Table geographic ( geographic.city_name (TEXT), geographic.county (TEXT), geographic.region (TEXT), ) Table location ( location.restaurant_id (INT), location.house_number (INT), location.street_name (TEXT), location.city_name (TEXT), ) Table restaurant ( restaurant.id (INT), restaurant.name (TEXT), restaurant.food_type (TEXT), restaurant.city_name (TEXT), restaurant.rating (REAL), ) Possible JOINs: location.restaurant_id = restaurant.restaurant_id location.city_name = geographic.city_name restaurant.city_name = geographic.city_name
{ 'geographic': ['city_name', 'county', 'region'], 'restaurant': ['id', 'name', 'food_type', 'city_name', 'rating'], 'location': ['restaurant_id', 'house_number', 'street_name', 'city_name'] }
{ 'location': ['restaurant_id', 'house_number', 'city_name'], 'restaurant': ['id', 'name', 'city_name'], 'geographic': ['city_name', 'region'] }
TABLE GEOGRAPHIC ( GEOGRAPHIC.CITY_NAME (TEXT), GEOGRAPHIC.REGION (TEXT), ) TABLE LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), LOCATION.CITY_NAME (TEXT), ) TABLE RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.CITY_NAME (TEXT), ) Possible JOINs:
TABLE GEOGRAPHIC ( GEOGRAPHIC.CITY_NAME (TEXT), GEOGRAPHIC.COUNTY (TEXT), GEOGRAPHIC.REGION (TEXT), ) TABLE LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), LOCATION.STREET_NAME (TEXT), LOCATION.CITY_NAME (TEXT), ) TABLE RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.FOOD_TYPE (TEXT), RESTAURANT.CITY_NAME (TEXT), RESTAURANT.RATING (REAL), ) Possible JOINs: LOCATION.RESTAURANT_ID = RESTAURANT.RESTAURANT_ID LOCATION.CITY_NAME = GEOGRAPHIC.CITY_NAME RESTAURANT.CITY_NAME = GEOGRAPHIC.CITY_NAME
restaurants
give me a good restaurant in the bay area ?
extra
Table GEOGRAPHIC ( GEOGRAPHIC.CITY_NAME (TEXT), GEOGRAPHIC.COUNTY (TEXT), GEOGRAPHIC.REGION (TEXT), ) Table LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), LOCATION.STREET_NAME (TEXT), LOCATION.CITY_NAME (TEXT), ) Table RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.FOOD_TYPE (TEXT), RESTAURANT.CITY_NAME (TEXT), RESTAURANT.RATING (REAL), ) Possible JOINs: LOCATION.RESTAURANT_ID = RESTAURANT.RESTAURANT_ID LOCATION.CITY_NAME = GEOGRAPHIC.CITY_NAME RESTAURANT.CITY_NAME = GEOGRAPHIC.CITY_NAME
SELECT t2.house_number , restaurant.name FROM LOCATION AS t2 JOIN restaurant ON restaurant.id = t2.restaurant_id WHERE restaurant.city_name IN ( SELECT city_name FROM geographic WHERE region = "region0" ) AND restaurant.rating > 2.5;
Table geographic ( geographic.city_name (TEXT), geographic.county (TEXT), geographic.region (TEXT), ) Table location ( location.restaurant_id (INT), location.house_number (INT), location.street_name (TEXT), location.city_name (TEXT), ) Table restaurant ( restaurant.id (INT), restaurant.name (TEXT), restaurant.food_type (TEXT), restaurant.city_name (TEXT), restaurant.rating (REAL), ) Possible JOINs: location.restaurant_id = restaurant.restaurant_id location.city_name = geographic.city_name restaurant.city_name = geographic.city_name
{ 'geographic': ['city_name', 'county', 'region'], 'restaurant': ['id', 'name', 'food_type', 'city_name', 'rating'], 'location': ['restaurant_id', 'house_number', 'street_name', 'city_name'] }
{ 'location': ['restaurant_id', 'house_number', 'city_name'], 'restaurant': ['id', 'name', 'city_name', 'rating'], 'geographic': ['city_name', 'region'] }
TABLE GEOGRAPHIC ( GEOGRAPHIC.CITY_NAME (TEXT), GEOGRAPHIC.REGION (TEXT), ) TABLE LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), LOCATION.CITY_NAME (TEXT), ) TABLE RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.CITY_NAME (TEXT), RESTAURANT.RATING (REAL), ) Possible JOINs:
TABLE GEOGRAPHIC ( GEOGRAPHIC.CITY_NAME (TEXT), GEOGRAPHIC.COUNTY (TEXT), GEOGRAPHIC.REGION (TEXT), ) TABLE LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), LOCATION.STREET_NAME (TEXT), LOCATION.CITY_NAME (TEXT), ) TABLE RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.FOOD_TYPE (TEXT), RESTAURANT.CITY_NAME (TEXT), RESTAURANT.RATING (REAL), ) Possible JOINs: LOCATION.RESTAURANT_ID = RESTAURANT.RESTAURANT_ID LOCATION.CITY_NAME = GEOGRAPHIC.CITY_NAME RESTAURANT.CITY_NAME = GEOGRAPHIC.CITY_NAME
restaurants
what are some good restaurants in the bay area ?
extra
Table GEOGRAPHIC ( GEOGRAPHIC.CITY_NAME (TEXT), GEOGRAPHIC.COUNTY (TEXT), GEOGRAPHIC.REGION (TEXT), ) Table LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), LOCATION.STREET_NAME (TEXT), LOCATION.CITY_NAME (TEXT), ) Table RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.FOOD_TYPE (TEXT), RESTAURANT.CITY_NAME (TEXT), RESTAURANT.RATING (REAL), ) Possible JOINs: LOCATION.RESTAURANT_ID = RESTAURANT.RESTAURANT_ID LOCATION.CITY_NAME = GEOGRAPHIC.CITY_NAME RESTAURANT.CITY_NAME = GEOGRAPHIC.CITY_NAME
SELECT t2.house_number , restaurant.name FROM LOCATION AS t2 JOIN restaurant ON restaurant.id = t2.restaurant_id WHERE restaurant.city_name IN ( SELECT city_name FROM geographic WHERE region = "region0" ) AND restaurant.rating > 2.5;
Table geographic ( geographic.city_name (TEXT), geographic.county (TEXT), geographic.region (TEXT), ) Table location ( location.restaurant_id (INT), location.house_number (INT), location.street_name (TEXT), location.city_name (TEXT), ) Table restaurant ( restaurant.id (INT), restaurant.name (TEXT), restaurant.food_type (TEXT), restaurant.city_name (TEXT), restaurant.rating (REAL), ) Possible JOINs: location.restaurant_id = restaurant.restaurant_id location.city_name = geographic.city_name restaurant.city_name = geographic.city_name
{ 'geographic': ['city_name', 'county', 'region'], 'restaurant': ['id', 'name', 'food_type', 'city_name', 'rating'], 'location': ['restaurant_id', 'house_number', 'street_name', 'city_name'] }
{ 'location': ['restaurant_id', 'house_number', 'city_name'], 'restaurant': ['id', 'name', 'city_name', 'rating'], 'geographic': ['city_name', 'region'] }
TABLE GEOGRAPHIC ( GEOGRAPHIC.CITY_NAME (TEXT), GEOGRAPHIC.REGION (TEXT), ) TABLE LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), LOCATION.CITY_NAME (TEXT), ) TABLE RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.CITY_NAME (TEXT), RESTAURANT.RATING (REAL), ) Possible JOINs:
TABLE GEOGRAPHIC ( GEOGRAPHIC.CITY_NAME (TEXT), GEOGRAPHIC.COUNTY (TEXT), GEOGRAPHIC.REGION (TEXT), ) TABLE LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), LOCATION.STREET_NAME (TEXT), LOCATION.CITY_NAME (TEXT), ) TABLE RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.FOOD_TYPE (TEXT), RESTAURANT.CITY_NAME (TEXT), RESTAURANT.RATING (REAL), ) Possible JOINs: LOCATION.RESTAURANT_ID = RESTAURANT.RESTAURANT_ID LOCATION.CITY_NAME = GEOGRAPHIC.CITY_NAME RESTAURANT.CITY_NAME = GEOGRAPHIC.CITY_NAME
restaurants
give me some good restaurants in the bay area ?
extra
Table GEOGRAPHIC ( GEOGRAPHIC.CITY_NAME (TEXT), GEOGRAPHIC.COUNTY (TEXT), GEOGRAPHIC.REGION (TEXT), ) Table LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), LOCATION.STREET_NAME (TEXT), LOCATION.CITY_NAME (TEXT), ) Table RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.FOOD_TYPE (TEXT), RESTAURANT.CITY_NAME (TEXT), RESTAURANT.RATING (REAL), ) Possible JOINs: LOCATION.RESTAURANT_ID = RESTAURANT.RESTAURANT_ID LOCATION.CITY_NAME = GEOGRAPHIC.CITY_NAME RESTAURANT.CITY_NAME = GEOGRAPHIC.CITY_NAME
SELECT t2.house_number , restaurant.name FROM LOCATION AS t2 JOIN restaurant ON restaurant.id = t2.restaurant_id WHERE restaurant.city_name IN ( SELECT city_name FROM geographic WHERE region = "region0" ) AND restaurant.rating > 2.5;
Table geographic ( geographic.city_name (TEXT), geographic.county (TEXT), geographic.region (TEXT), ) Table location ( location.restaurant_id (INT), location.house_number (INT), location.street_name (TEXT), location.city_name (TEXT), ) Table restaurant ( restaurant.id (INT), restaurant.name (TEXT), restaurant.food_type (TEXT), restaurant.city_name (TEXT), restaurant.rating (REAL), ) Possible JOINs: location.restaurant_id = restaurant.restaurant_id location.city_name = geographic.city_name restaurant.city_name = geographic.city_name
{ 'geographic': ['city_name', 'county', 'region'], 'restaurant': ['id', 'name', 'food_type', 'city_name', 'rating'], 'location': ['restaurant_id', 'house_number', 'street_name', 'city_name'] }
{ 'location': ['restaurant_id', 'house_number', 'city_name'], 'restaurant': ['id', 'name', 'city_name', 'rating'], 'geographic': ['city_name', 'region'] }
TABLE GEOGRAPHIC ( GEOGRAPHIC.CITY_NAME (TEXT), GEOGRAPHIC.REGION (TEXT), ) TABLE LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), LOCATION.CITY_NAME (TEXT), ) TABLE RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.CITY_NAME (TEXT), RESTAURANT.RATING (REAL), ) Possible JOINs:
TABLE GEOGRAPHIC ( GEOGRAPHIC.CITY_NAME (TEXT), GEOGRAPHIC.COUNTY (TEXT), GEOGRAPHIC.REGION (TEXT), ) TABLE LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), LOCATION.STREET_NAME (TEXT), LOCATION.CITY_NAME (TEXT), ) TABLE RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.FOOD_TYPE (TEXT), RESTAURANT.CITY_NAME (TEXT), RESTAURANT.RATING (REAL), ) Possible JOINs: LOCATION.RESTAURANT_ID = RESTAURANT.RESTAURANT_ID LOCATION.CITY_NAME = GEOGRAPHIC.CITY_NAME RESTAURANT.CITY_NAME = GEOGRAPHIC.CITY_NAME
restaurants
what is a good restaurant in the bay area ?
extra
Table GEOGRAPHIC ( GEOGRAPHIC.CITY_NAME (TEXT), GEOGRAPHIC.COUNTY (TEXT), GEOGRAPHIC.REGION (TEXT), ) Table LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), LOCATION.STREET_NAME (TEXT), LOCATION.CITY_NAME (TEXT), ) Table RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.FOOD_TYPE (TEXT), RESTAURANT.CITY_NAME (TEXT), RESTAURANT.RATING (REAL), ) Possible JOINs: LOCATION.RESTAURANT_ID = RESTAURANT.RESTAURANT_ID LOCATION.CITY_NAME = GEOGRAPHIC.CITY_NAME RESTAURANT.CITY_NAME = GEOGRAPHIC.CITY_NAME
SELECT t2.house_number , restaurant.name FROM LOCATION AS t2 JOIN restaurant ON restaurant.id = t2.restaurant_id WHERE restaurant.city_name IN ( SELECT city_name FROM geographic WHERE region = "region0" ) AND restaurant.rating > 2.5;
Table geographic ( geographic.city_name (TEXT), geographic.county (TEXT), geographic.region (TEXT), ) Table location ( location.restaurant_id (INT), location.house_number (INT), location.street_name (TEXT), location.city_name (TEXT), ) Table restaurant ( restaurant.id (INT), restaurant.name (TEXT), restaurant.food_type (TEXT), restaurant.city_name (TEXT), restaurant.rating (REAL), ) Possible JOINs: location.restaurant_id = restaurant.restaurant_id location.city_name = geographic.city_name restaurant.city_name = geographic.city_name
{ 'geographic': ['city_name', 'county', 'region'], 'restaurant': ['id', 'name', 'food_type', 'city_name', 'rating'], 'location': ['restaurant_id', 'house_number', 'street_name', 'city_name'] }
{ 'location': ['restaurant_id', 'house_number', 'city_name'], 'restaurant': ['id', 'name', 'city_name', 'rating'], 'geographic': ['city_name', 'region'] }
TABLE GEOGRAPHIC ( GEOGRAPHIC.CITY_NAME (TEXT), GEOGRAPHIC.REGION (TEXT), ) TABLE LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), LOCATION.CITY_NAME (TEXT), ) TABLE RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.CITY_NAME (TEXT), RESTAURANT.RATING (REAL), ) Possible JOINs:
TABLE GEOGRAPHIC ( GEOGRAPHIC.CITY_NAME (TEXT), GEOGRAPHIC.COUNTY (TEXT), GEOGRAPHIC.REGION (TEXT), ) TABLE LOCATION ( LOCATION.RESTAURANT_ID (INT), LOCATION.HOUSE_NUMBER (INT), LOCATION.STREET_NAME (TEXT), LOCATION.CITY_NAME (TEXT), ) TABLE RESTAURANT ( RESTAURANT.ID (INT), RESTAURANT.NAME (TEXT), RESTAURANT.FOOD_TYPE (TEXT), RESTAURANT.CITY_NAME (TEXT), RESTAURANT.RATING (REAL), ) Possible JOINs: LOCATION.RESTAURANT_ID = RESTAURANT.RESTAURANT_ID LOCATION.CITY_NAME = GEOGRAPHIC.CITY_NAME RESTAURANT.CITY_NAME = GEOGRAPHIC.CITY_NAME