instruction
stringlengths
1.07k
3.45k
output
stringlengths
19
508
system
stringclasses
1 value
Given [Database Schema] and [Foreign Keys], your task is to write a [SQL Query] to answer the [Question]. [Database Schema] Every table consists of several columns. Each line describes the name, type of the column and optional value examples. In some cases, column name can be ambiguous, and extra comment is provided to assist in understanding. - Table: restaurant. Primary Key: (id) id, INT name, TEXT, Value Examples: [] food_type, TEXT, Value Examples: [] city_name, TEXT, Value Examples: [] rating, REAL - Table: geographic. Primary Key: (city_name) city_name, TEXT, Value Examples: [] county, TEXT, Value Examples: [] region, TEXT, Value Examples: [] - Table: location. Primary Key: (restaurant_id) restaurant_id, INT house_number, INT street_name, TEXT, Value Examples: [] city_name, TEXT, Value Examples: [] [Foreign keys] restaurant(city_name) references geographic(city_name) location(restaurant_id) references restaurant(restaurant_id) location(city_name) references geographic(city_name) [Question] where is the best american restaurant in the bay area ? [Constraints] Your [SQL Query] should satisfy the following constraints: - In `SELECT <column>`, must only use the column given in the [Database Schema]. - In `FROM <table>` or `JOIN <table>`, must only use the table given in the [Database Schema]. - In `JOIN`, must only use the tables and columns in the [Foreign keys]. - Without any specific instructions, Use `ASC` for `ORDER BY` by default, - Consider use `DISTINCT` when you need to eliminate duplicates. - The content in quotes is case sensitive. - Prioritize column whose value are more relevant to the [Question]. [SQL Query]
SELECT t3.house_number , t1.name FROM restaurant AS t1 JOIN geographic AS t2 ON t1.city_name = t2.city_name JOIN LOCATION AS t3 ON t1.id = t3.restaurant_id WHERE t2.region = "bay area" AND t1.food_type = "american" AND t1.rating = (SELECT MAX (t1.rating) FROM restaurant AS t1 JOIN geographic AS t2 ON t1.city_name = t2.city_name WHERE t2.region = "bay area" AND t1.food_type = "american" );
You are an experienced and professional database administrator.
Given [Database Schema] and [Foreign Keys], your task is to write a [SQL Query] to answer the [Question]. [Database Schema] Every table consists of several columns. Each line describes the name, type of the column and optional value examples. In some cases, column name can be ambiguous, and extra comment is provided to assist in understanding. - Table: restaurant. Primary Key: (id) id, INT name, TEXT, Value Examples: [] food_type, TEXT, Value Examples: [] city_name, TEXT, Value Examples: [] rating, REAL - Table: geographic. Primary Key: (city_name) city_name, TEXT, Value Examples: [] county, TEXT, Value Examples: [] region, TEXT, Value Examples: [] - Table: location. Primary Key: (restaurant_id) restaurant_id, INT house_number, INT street_name, TEXT, Value Examples: [] city_name, TEXT, Value Examples: [] [Foreign keys] restaurant(city_name) references geographic(city_name) location(restaurant_id) references restaurant(restaurant_id) location(city_name) references geographic(city_name) [Question] what is the best american in the bay area ? [Constraints] Your [SQL Query] should satisfy the following constraints: - In `SELECT <column>`, must only use the column given in the [Database Schema]. - In `FROM <table>` or `JOIN <table>`, must only use the table given in the [Database Schema]. - In `JOIN`, must only use the tables and columns in the [Foreign keys]. - Without any specific instructions, Use `ASC` for `ORDER BY` by default, - Consider use `DISTINCT` when you need to eliminate duplicates. - The content in quotes is case sensitive. - Prioritize column whose value are more relevant to the [Question]. [SQL Query]
SELECT t3.house_number , t1.name FROM restaurant AS t1 JOIN geographic AS t2 ON t1.city_name = t2.city_name JOIN LOCATION AS t3 ON t1.id = t3.restaurant_id WHERE t2.region = "bay area" AND t1.food_type = "american" AND t1.rating = (SELECT MAX (t1.rating) FROM restaurant AS t1 JOIN geographic AS t2 ON t1.city_name = t2.city_name WHERE t2.region = "bay area" AND t1.food_type = "american" );
You are an experienced and professional database administrator.
Given [Database Schema] and [Foreign Keys], your task is to write a [SQL Query] to answer the [Question]. [Database Schema] Every table consists of several columns. Each line describes the name, type of the column and optional value examples. In some cases, column name can be ambiguous, and extra comment is provided to assist in understanding. - Table: restaurant. Primary Key: (id) id, INT name, TEXT, Value Examples: [] food_type, TEXT, Value Examples: [] city_name, TEXT, Value Examples: [] rating, REAL - Table: geographic. Primary Key: (city_name) city_name, TEXT, Value Examples: [] county, TEXT, Value Examples: [] region, TEXT, Value Examples: [] - Table: location. Primary Key: (restaurant_id) restaurant_id, INT house_number, INT street_name, TEXT, Value Examples: [] city_name, TEXT, Value Examples: [] [Foreign keys] restaurant(city_name) references geographic(city_name) location(restaurant_id) references restaurant(restaurant_id) location(city_name) references geographic(city_name) [Question] give me the best restaurant in the bay area for american food ? [Constraints] Your [SQL Query] should satisfy the following constraints: - In `SELECT <column>`, must only use the column given in the [Database Schema]. - In `FROM <table>` or `JOIN <table>`, must only use the table given in the [Database Schema]. - In `JOIN`, must only use the tables and columns in the [Foreign keys]. - Without any specific instructions, Use `ASC` for `ORDER BY` by default, - Consider use `DISTINCT` when you need to eliminate duplicates. - The content in quotes is case sensitive. - Prioritize column whose value are more relevant to the [Question]. [SQL Query]
SELECT t3.house_number , t1.name FROM restaurant AS t1 JOIN geographic AS t2 ON t1.city_name = t2.city_name JOIN LOCATION AS t3 ON t1.id = t3.restaurant_id WHERE t2.region = "bay area" AND t1.food_type = "american" AND t1.rating = (SELECT MAX (t1.rating) FROM restaurant AS t1 JOIN geographic AS t2 ON t1.city_name = t2.city_name WHERE t2.region = "bay area" AND t1.food_type = "american" );
You are an experienced and professional database administrator.
Given [Database Schema] and [Foreign Keys], your task is to write a [SQL Query] to answer the [Question]. [Database Schema] Every table consists of several columns. Each line describes the name, type of the column and optional value examples. In some cases, column name can be ambiguous, and extra comment is provided to assist in understanding. - Table: restaurant. Primary Key: (id) id, INT name, TEXT, Value Examples: [] food_type, TEXT, Value Examples: [] city_name, TEXT, Value Examples: [] rating, REAL - Table: geographic. Primary Key: (city_name) city_name, TEXT, Value Examples: [] county, TEXT, Value Examples: [] region, TEXT, Value Examples: [] - Table: location. Primary Key: (restaurant_id) restaurant_id, INT house_number, INT street_name, TEXT, Value Examples: [] city_name, TEXT, Value Examples: [] [Foreign keys] restaurant(city_name) references geographic(city_name) location(restaurant_id) references restaurant(restaurant_id) location(city_name) references geographic(city_name) [Question] give me the best restaurant in bay area for american food ? [Constraints] Your [SQL Query] should satisfy the following constraints: - In `SELECT <column>`, must only use the column given in the [Database Schema]. - In `FROM <table>` or `JOIN <table>`, must only use the table given in the [Database Schema]. - In `JOIN`, must only use the tables and columns in the [Foreign keys]. - Without any specific instructions, Use `ASC` for `ORDER BY` by default, - Consider use `DISTINCT` when you need to eliminate duplicates. - The content in quotes is case sensitive. - Prioritize column whose value are more relevant to the [Question]. [SQL Query]
SELECT t3.house_number , t1.name FROM restaurant AS t1 JOIN geographic AS t2 ON t1.city_name = t2.city_name JOIN LOCATION AS t3 ON t1.id = t3.restaurant_id WHERE t2.region = "bay area" AND t1.food_type = "american" AND t1.rating = (SELECT MAX (t1.rating) FROM restaurant AS t1 JOIN geographic AS t2 ON t1.city_name = t2.city_name WHERE t2.region = "bay area" AND t1.food_type = "american" );
You are an experienced and professional database administrator.
Given [Database Schema] and [Foreign Keys], your task is to write a [SQL Query] to answer the [Question]. [Database Schema] Every table consists of several columns. Each line describes the name, type of the column and optional value examples. In some cases, column name can be ambiguous, and extra comment is provided to assist in understanding. - Table: restaurant. Primary Key: (id) id, INT name, TEXT, Value Examples: [] food_type, TEXT, Value Examples: [] city_name, TEXT, Value Examples: [] rating, REAL - Table: geographic. Primary Key: (city_name) city_name, TEXT, Value Examples: [] county, TEXT, Value Examples: [] region, TEXT, Value Examples: [] - Table: location. Primary Key: (restaurant_id) restaurant_id, INT house_number, INT street_name, TEXT, Value Examples: [] city_name, TEXT, Value Examples: [] [Foreign keys] restaurant(city_name) references geographic(city_name) location(restaurant_id) references restaurant(restaurant_id) location(city_name) references geographic(city_name) [Question] what is the best restaurant in the bay area for american food ? [Constraints] Your [SQL Query] should satisfy the following constraints: - In `SELECT <column>`, must only use the column given in the [Database Schema]. - In `FROM <table>` or `JOIN <table>`, must only use the table given in the [Database Schema]. - In `JOIN`, must only use the tables and columns in the [Foreign keys]. - Without any specific instructions, Use `ASC` for `ORDER BY` by default, - Consider use `DISTINCT` when you need to eliminate duplicates. - The content in quotes is case sensitive. - Prioritize column whose value are more relevant to the [Question]. [SQL Query]
SELECT t3.house_number , t1.name FROM restaurant AS t1 JOIN geographic AS t2 ON t1.city_name = t2.city_name JOIN LOCATION AS t3 ON t1.id = t3.restaurant_id WHERE t2.region = "bay area" AND t1.food_type = "american" AND t1.rating = (SELECT MAX (t1.rating) FROM restaurant AS t1 JOIN geographic AS t2 ON t1.city_name = t2.city_name WHERE t2.region = "bay area" AND t1.food_type = "american" );
You are an experienced and professional database administrator.
Given [Database Schema] and [Foreign Keys], your task is to write a [SQL Query] to answer the [Question]. [Database Schema] Every table consists of several columns. Each line describes the name, type of the column and optional value examples. In some cases, column name can be ambiguous, and extra comment is provided to assist in understanding. - Table: restaurant. Primary Key: (id) id, INT name, TEXT, Value Examples: [] food_type, TEXT, Value Examples: [] city_name, TEXT, Value Examples: [] rating, REAL - Table: geographic. Primary Key: (city_name) city_name, TEXT, Value Examples: [] county, TEXT, Value Examples: [] region, TEXT, Value Examples: [] - Table: location. Primary Key: (restaurant_id) restaurant_id, INT house_number, INT street_name, TEXT, Value Examples: [] city_name, TEXT, Value Examples: [] [Foreign keys] restaurant(city_name) references geographic(city_name) location(restaurant_id) references restaurant(restaurant_id) location(city_name) references geographic(city_name) [Question] where is the best american in the bay area ? [Constraints] Your [SQL Query] should satisfy the following constraints: - In `SELECT <column>`, must only use the column given in the [Database Schema]. - In `FROM <table>` or `JOIN <table>`, must only use the table given in the [Database Schema]. - In `JOIN`, must only use the tables and columns in the [Foreign keys]. - Without any specific instructions, Use `ASC` for `ORDER BY` by default, - Consider use `DISTINCT` when you need to eliminate duplicates. - The content in quotes is case sensitive. - Prioritize column whose value are more relevant to the [Question]. [SQL Query]
SELECT t3.house_number , t1.name FROM restaurant AS t1 JOIN geographic AS t2 ON t1.city_name = t2.city_name JOIN LOCATION AS t3 ON t1.id = t3.restaurant_id WHERE t2.region = "bay area" AND t1.food_type = "american" AND t1.rating = (SELECT MAX (t1.rating) FROM restaurant AS t1 JOIN geographic AS t2 ON t1.city_name = t2.city_name WHERE t2.region = "bay area" AND t1.food_type = "american" );
You are an experienced and professional database administrator.
Given [Database Schema] and [Foreign Keys], your task is to write a [SQL Query] to answer the [Question]. [Database Schema] Every table consists of several columns. Each line describes the name, type of the column and optional value examples. In some cases, column name can be ambiguous, and extra comment is provided to assist in understanding. - Table: restaurant. Primary Key: (id) id, INT name, TEXT, Value Examples: [] food_type, TEXT, Value Examples: [] city_name, TEXT, Value Examples: [] rating, REAL - Table: geographic. Primary Key: (city_name) city_name, TEXT, Value Examples: [] county, TEXT, Value Examples: [] region, TEXT, Value Examples: [] - Table: location. Primary Key: (restaurant_id) restaurant_id, INT house_number, INT street_name, TEXT, Value Examples: [] city_name, TEXT, Value Examples: [] [Foreign keys] restaurant(city_name) references geographic(city_name) location(restaurant_id) references restaurant(restaurant_id) location(city_name) references geographic(city_name) [Question] give me the best american in the bay area ? [Constraints] Your [SQL Query] should satisfy the following constraints: - In `SELECT <column>`, must only use the column given in the [Database Schema]. - In `FROM <table>` or `JOIN <table>`, must only use the table given in the [Database Schema]. - In `JOIN`, must only use the tables and columns in the [Foreign keys]. - Without any specific instructions, Use `ASC` for `ORDER BY` by default, - Consider use `DISTINCT` when you need to eliminate duplicates. - The content in quotes is case sensitive. - Prioritize column whose value are more relevant to the [Question]. [SQL Query]
SELECT t3.house_number , t1.name FROM restaurant AS t1 JOIN geographic AS t2 ON t1.city_name = t2.city_name JOIN LOCATION AS t3 ON t1.id = t3.restaurant_id WHERE t2.region = "bay area" AND t1.food_type = "american" AND t1.rating = (SELECT MAX (t1.rating) FROM restaurant AS t1 JOIN geographic AS t2 ON t1.city_name = t2.city_name WHERE t2.region = "bay area" AND t1.food_type = "american" );
You are an experienced and professional database administrator.
Given [Database Schema] and [Foreign Keys], your task is to write a [SQL Query] to answer the [Question]. [Database Schema] Every table consists of several columns. Each line describes the name, type of the column and optional value examples. In some cases, column name can be ambiguous, and extra comment is provided to assist in understanding. - Table: restaurant. Primary Key: (id) id, INT name, TEXT, Value Examples: [] food_type, TEXT, Value Examples: [] city_name, TEXT, Value Examples: [] rating, REAL - Table: geographic. Primary Key: (city_name) city_name, TEXT, Value Examples: [] county, TEXT, Value Examples: [] region, TEXT, Value Examples: [] - Table: location. Primary Key: (restaurant_id) restaurant_id, INT house_number, INT street_name, TEXT, Value Examples: [] city_name, TEXT, Value Examples: [] [Foreign keys] restaurant(city_name) references geographic(city_name) location(restaurant_id) references restaurant(restaurant_id) location(city_name) references geographic(city_name) [Question] give me the best american restaurant in the bay area ? [Constraints] Your [SQL Query] should satisfy the following constraints: - In `SELECT <column>`, must only use the column given in the [Database Schema]. - In `FROM <table>` or `JOIN <table>`, must only use the table given in the [Database Schema]. - In `JOIN`, must only use the tables and columns in the [Foreign keys]. - Without any specific instructions, Use `ASC` for `ORDER BY` by default, - Consider use `DISTINCT` when you need to eliminate duplicates. - The content in quotes is case sensitive. - Prioritize column whose value are more relevant to the [Question]. [SQL Query]
SELECT t3.house_number , t1.name FROM restaurant AS t1 JOIN geographic AS t2 ON t1.city_name = t2.city_name JOIN LOCATION AS t3 ON t1.id = t3.restaurant_id WHERE t2.region = "bay area" AND t1.food_type = "american" AND t1.rating = (SELECT MAX (t1.rating) FROM restaurant AS t1 JOIN geographic AS t2 ON t1.city_name = t2.city_name WHERE t2.region = "bay area" AND t1.food_type = "american" );
You are an experienced and professional database administrator.
Given [Database Schema] and [Foreign Keys], your task is to write a [SQL Query] to answer the [Question]. [Database Schema] Every table consists of several columns. Each line describes the name, type of the column and optional value examples. In some cases, column name can be ambiguous, and extra comment is provided to assist in understanding. - Table: restaurant. Primary Key: (id) id, INT name, TEXT, Value Examples: [] food_type, TEXT, Value Examples: [] city_name, TEXT, Value Examples: [] rating, REAL - Table: geographic. Primary Key: (city_name) city_name, TEXT, Value Examples: [] county, TEXT, Value Examples: [] region, TEXT, Value Examples: [] - Table: location. Primary Key: (restaurant_id) restaurant_id, INT house_number, INT street_name, TEXT, Value Examples: [] city_name, TEXT, Value Examples: [] [Foreign keys] restaurant(city_name) references geographic(city_name) location(restaurant_id) references restaurant(restaurant_id) location(city_name) references geographic(city_name) [Question] give me some restaurants good for french food in the yosemite and mono lake area ? [Constraints] Your [SQL Query] should satisfy the following constraints: - In `SELECT <column>`, must only use the column given in the [Database Schema]. - In `FROM <table>` or `JOIN <table>`, must only use the table given in the [Database Schema]. - In `JOIN`, must only use the tables and columns in the [Foreign keys]. - Without any specific instructions, Use `ASC` for `ORDER BY` by default, - Consider use `DISTINCT` when you need to eliminate duplicates. - The content in quotes is case sensitive. - Prioritize column whose value are more relevant to the [Question]. [SQL Query]
SELECT t3.house_number , t1.name FROM restaurant AS t1 JOIN geographic AS t2 ON t1.city_name = t2.city_name JOIN LOCATION AS t3 ON t1.id = t3.restaurant_id WHERE t2.region = "yosemite and mono lake area" AND t1.food_type = "french" AND t1.rating > 2.5;
You are an experienced and professional database administrator.
Given [Database Schema] and [Foreign Keys], your task is to write a [SQL Query] to answer the [Question]. [Database Schema] Every table consists of several columns. Each line describes the name, type of the column and optional value examples. In some cases, column name can be ambiguous, and extra comment is provided to assist in understanding. - Table: restaurant. Primary Key: (id) id, INT name, TEXT, Value Examples: [] food_type, TEXT, Value Examples: [] city_name, TEXT, Value Examples: [] rating, REAL - Table: geographic. Primary Key: (city_name) city_name, TEXT, Value Examples: [] county, TEXT, Value Examples: [] region, TEXT, Value Examples: [] - Table: location. Primary Key: (restaurant_id) restaurant_id, INT house_number, INT street_name, TEXT, Value Examples: [] city_name, TEXT, Value Examples: [] [Foreign keys] restaurant(city_name) references geographic(city_name) location(restaurant_id) references restaurant(restaurant_id) location(city_name) references geographic(city_name) [Question] what are some good places in the yosemite and mono lake area for french food ? [Constraints] Your [SQL Query] should satisfy the following constraints: - In `SELECT <column>`, must only use the column given in the [Database Schema]. - In `FROM <table>` or `JOIN <table>`, must only use the table given in the [Database Schema]. - In `JOIN`, must only use the tables and columns in the [Foreign keys]. - Without any specific instructions, Use `ASC` for `ORDER BY` by default, - Consider use `DISTINCT` when you need to eliminate duplicates. - The content in quotes is case sensitive. - Prioritize column whose value are more relevant to the [Question]. [SQL Query]
SELECT t3.house_number , t1.name FROM restaurant AS t1 JOIN geographic AS t2 ON t1.city_name = t2.city_name JOIN LOCATION AS t3 ON t1.id = t3.restaurant_id WHERE t2.region = "yosemite and mono lake area" AND t1.food_type = "french" AND t1.rating > 2.5;
You are an experienced and professional database administrator.
Given [Database Schema] and [Foreign Keys], your task is to write a [SQL Query] to answer the [Question]. [Database Schema] Every table consists of several columns. Each line describes the name, type of the column and optional value examples. In some cases, column name can be ambiguous, and extra comment is provided to assist in understanding. - Table: restaurant. Primary Key: (id) id, INT name, TEXT, Value Examples: [] food_type, TEXT, Value Examples: [] city_name, TEXT, Value Examples: [] rating, REAL - Table: geographic. Primary Key: (city_name) city_name, TEXT, Value Examples: [] county, TEXT, Value Examples: [] region, TEXT, Value Examples: [] - Table: location. Primary Key: (restaurant_id) restaurant_id, INT house_number, INT street_name, TEXT, Value Examples: [] city_name, TEXT, Value Examples: [] [Foreign keys] restaurant(city_name) references geographic(city_name) location(restaurant_id) references restaurant(restaurant_id) location(city_name) references geographic(city_name) [Question] give me a good restaurant in the yosemite and mono lake area for french food ? [Constraints] Your [SQL Query] should satisfy the following constraints: - In `SELECT <column>`, must only use the column given in the [Database Schema]. - In `FROM <table>` or `JOIN <table>`, must only use the table given in the [Database Schema]. - In `JOIN`, must only use the tables and columns in the [Foreign keys]. - Without any specific instructions, Use `ASC` for `ORDER BY` by default, - Consider use `DISTINCT` when you need to eliminate duplicates. - The content in quotes is case sensitive. - Prioritize column whose value are more relevant to the [Question]. [SQL Query]
SELECT t3.house_number , t1.name FROM restaurant AS t1 JOIN geographic AS t2 ON t1.city_name = t2.city_name JOIN LOCATION AS t3 ON t1.id = t3.restaurant_id WHERE t2.region = "yosemite and mono lake area" AND t1.food_type = "french" AND t1.rating > 2.5;
You are an experienced and professional database administrator.
Given [Database Schema] and [Foreign Keys], your task is to write a [SQL Query] to answer the [Question]. [Database Schema] Every table consists of several columns. Each line describes the name, type of the column and optional value examples. In some cases, column name can be ambiguous, and extra comment is provided to assist in understanding. - Table: restaurant. Primary Key: (id) id, INT name, TEXT, Value Examples: [] food_type, TEXT, Value Examples: [] city_name, TEXT, Value Examples: [] rating, REAL - Table: geographic. Primary Key: (city_name) city_name, TEXT, Value Examples: [] county, TEXT, Value Examples: [] region, TEXT, Value Examples: [] - Table: location. Primary Key: (restaurant_id) restaurant_id, INT house_number, INT street_name, TEXT, Value Examples: [] city_name, TEXT, Value Examples: [] [Foreign keys] restaurant(city_name) references geographic(city_name) location(restaurant_id) references restaurant(restaurant_id) location(city_name) references geographic(city_name) [Question] give me a good french restaurant in the yosemite and mono lake area ? [Constraints] Your [SQL Query] should satisfy the following constraints: - In `SELECT <column>`, must only use the column given in the [Database Schema]. - In `FROM <table>` or `JOIN <table>`, must only use the table given in the [Database Schema]. - In `JOIN`, must only use the tables and columns in the [Foreign keys]. - Without any specific instructions, Use `ASC` for `ORDER BY` by default, - Consider use `DISTINCT` when you need to eliminate duplicates. - The content in quotes is case sensitive. - Prioritize column whose value are more relevant to the [Question]. [SQL Query]
SELECT t3.house_number , t1.name FROM restaurant AS t1 JOIN geographic AS t2 ON t1.city_name = t2.city_name JOIN LOCATION AS t3 ON t1.id = t3.restaurant_id WHERE t2.region = "yosemite and mono lake area" AND t1.food_type = "french" AND t1.rating > 2.5;
You are an experienced and professional database administrator.
Given [Database Schema] and [Foreign Keys], your task is to write a [SQL Query] to answer the [Question]. [Database Schema] Every table consists of several columns. Each line describes the name, type of the column and optional value examples. In some cases, column name can be ambiguous, and extra comment is provided to assist in understanding. - Table: restaurant. Primary Key: (id) id, INT name, TEXT, Value Examples: [] food_type, TEXT, Value Examples: [] city_name, TEXT, Value Examples: [] rating, REAL - Table: geographic. Primary Key: (city_name) city_name, TEXT, Value Examples: [] county, TEXT, Value Examples: [] region, TEXT, Value Examples: [] - Table: location. Primary Key: (restaurant_id) restaurant_id, INT house_number, INT street_name, TEXT, Value Examples: [] city_name, TEXT, Value Examples: [] [Foreign keys] restaurant(city_name) references geographic(city_name) location(restaurant_id) references restaurant(restaurant_id) location(city_name) references geographic(city_name) [Question] where is a good place in the yosemite and mono lake area for french food ? [Constraints] Your [SQL Query] should satisfy the following constraints: - In `SELECT <column>`, must only use the column given in the [Database Schema]. - In `FROM <table>` or `JOIN <table>`, must only use the table given in the [Database Schema]. - In `JOIN`, must only use the tables and columns in the [Foreign keys]. - Without any specific instructions, Use `ASC` for `ORDER BY` by default, - Consider use `DISTINCT` when you need to eliminate duplicates. - The content in quotes is case sensitive. - Prioritize column whose value are more relevant to the [Question]. [SQL Query]
SELECT t3.house_number , t1.name FROM restaurant AS t1 JOIN geographic AS t2 ON t1.city_name = t2.city_name JOIN LOCATION AS t3 ON t1.id = t3.restaurant_id WHERE t2.region = "yosemite and mono lake area" AND t1.food_type = "french" AND t1.rating > 2.5;
You are an experienced and professional database administrator.
Given [Database Schema] and [Foreign Keys], your task is to write a [SQL Query] to answer the [Question]. [Database Schema] Every table consists of several columns. Each line describes the name, type of the column and optional value examples. In some cases, column name can be ambiguous, and extra comment is provided to assist in understanding. - Table: restaurant. Primary Key: (id) id, INT name, TEXT, Value Examples: [] food_type, TEXT, Value Examples: [] city_name, TEXT, Value Examples: [] rating, REAL - Table: geographic. Primary Key: (city_name) city_name, TEXT, Value Examples: [] county, TEXT, Value Examples: [] region, TEXT, Value Examples: [] - Table: location. Primary Key: (restaurant_id) restaurant_id, INT house_number, INT street_name, TEXT, Value Examples: [] city_name, TEXT, Value Examples: [] [Foreign keys] restaurant(city_name) references geographic(city_name) location(restaurant_id) references restaurant(restaurant_id) location(city_name) references geographic(city_name) [Question] where are some restaurants good for french food in the yosemite and mono lake area ? [Constraints] Your [SQL Query] should satisfy the following constraints: - In `SELECT <column>`, must only use the column given in the [Database Schema]. - In `FROM <table>` or `JOIN <table>`, must only use the table given in the [Database Schema]. - In `JOIN`, must only use the tables and columns in the [Foreign keys]. - Without any specific instructions, Use `ASC` for `ORDER BY` by default, - Consider use `DISTINCT` when you need to eliminate duplicates. - The content in quotes is case sensitive. - Prioritize column whose value are more relevant to the [Question]. [SQL Query]
SELECT t3.house_number , t1.name FROM restaurant AS t1 JOIN geographic AS t2 ON t1.city_name = t2.city_name JOIN LOCATION AS t3 ON t1.id = t3.restaurant_id WHERE t2.region = "yosemite and mono lake area" AND t1.food_type = "french" AND t1.rating > 2.5;
You are an experienced and professional database administrator.
Given [Database Schema] and [Foreign Keys], your task is to write a [SQL Query] to answer the [Question]. [Database Schema] Every table consists of several columns. Each line describes the name, type of the column and optional value examples. In some cases, column name can be ambiguous, and extra comment is provided to assist in understanding. - Table: restaurant. Primary Key: (id) id, INT name, TEXT, Value Examples: [] food_type, TEXT, Value Examples: [] city_name, TEXT, Value Examples: [] rating, REAL - Table: geographic. Primary Key: (city_name) city_name, TEXT, Value Examples: [] county, TEXT, Value Examples: [] region, TEXT, Value Examples: [] - Table: location. Primary Key: (restaurant_id) restaurant_id, INT house_number, INT street_name, TEXT, Value Examples: [] city_name, TEXT, Value Examples: [] [Foreign keys] restaurant(city_name) references geographic(city_name) location(restaurant_id) references restaurant(restaurant_id) location(city_name) references geographic(city_name) [Question] give me a good place in the yosemite and mono lake area for french food ? [Constraints] Your [SQL Query] should satisfy the following constraints: - In `SELECT <column>`, must only use the column given in the [Database Schema]. - In `FROM <table>` or `JOIN <table>`, must only use the table given in the [Database Schema]. - In `JOIN`, must only use the tables and columns in the [Foreign keys]. - Without any specific instructions, Use `ASC` for `ORDER BY` by default, - Consider use `DISTINCT` when you need to eliminate duplicates. - The content in quotes is case sensitive. - Prioritize column whose value are more relevant to the [Question]. [SQL Query]
SELECT t3.house_number , t1.name FROM restaurant AS t1 JOIN geographic AS t2 ON t1.city_name = t2.city_name JOIN LOCATION AS t3 ON t1.id = t3.restaurant_id WHERE t2.region = "yosemite and mono lake area" AND t1.food_type = "french" AND t1.rating > 2.5;
You are an experienced and professional database administrator.
Given [Database Schema] and [Foreign Keys], your task is to write a [SQL Query] to answer the [Question]. [Database Schema] Every table consists of several columns. Each line describes the name, type of the column and optional value examples. In some cases, column name can be ambiguous, and extra comment is provided to assist in understanding. - Table: restaurant. Primary Key: (id) id, INT name, TEXT, Value Examples: [] food_type, TEXT, Value Examples: [] city_name, TEXT, Value Examples: [] rating, REAL - Table: geographic. Primary Key: (city_name) city_name, TEXT, Value Examples: [] county, TEXT, Value Examples: [] region, TEXT, Value Examples: [] - Table: location. Primary Key: (restaurant_id) restaurant_id, INT house_number, INT street_name, TEXT, Value Examples: [] city_name, TEXT, Value Examples: [] [Foreign keys] restaurant(city_name) references geographic(city_name) location(restaurant_id) references restaurant(restaurant_id) location(city_name) references geographic(city_name) [Question] where is a good restaurant in the yosemite and mono lake area for french food ? [Constraints] Your [SQL Query] should satisfy the following constraints: - In `SELECT <column>`, must only use the column given in the [Database Schema]. - In `FROM <table>` or `JOIN <table>`, must only use the table given in the [Database Schema]. - In `JOIN`, must only use the tables and columns in the [Foreign keys]. - Without any specific instructions, Use `ASC` for `ORDER BY` by default, - Consider use `DISTINCT` when you need to eliminate duplicates. - The content in quotes is case sensitive. - Prioritize column whose value are more relevant to the [Question]. [SQL Query]
SELECT t3.house_number , t1.name FROM restaurant AS t1 JOIN geographic AS t2 ON t1.city_name = t2.city_name JOIN LOCATION AS t3 ON t1.id = t3.restaurant_id WHERE t2.region = "yosemite and mono lake area" AND t1.food_type = "french" AND t1.rating > 2.5;
You are an experienced and professional database administrator.
Given [Database Schema] and [Foreign Keys], your task is to write a [SQL Query] to answer the [Question]. [Database Schema] Every table consists of several columns. Each line describes the name, type of the column and optional value examples. In some cases, column name can be ambiguous, and extra comment is provided to assist in understanding. - Table: restaurant. Primary Key: (id) id, INT name, TEXT, Value Examples: [] food_type, TEXT, Value Examples: [] city_name, TEXT, Value Examples: [] rating, REAL - Table: geographic. Primary Key: (city_name) city_name, TEXT, Value Examples: [] county, TEXT, Value Examples: [] region, TEXT, Value Examples: [] - Table: location. Primary Key: (restaurant_id) restaurant_id, INT house_number, INT street_name, TEXT, Value Examples: [] city_name, TEXT, Value Examples: [] [Foreign keys] restaurant(city_name) references geographic(city_name) location(restaurant_id) references restaurant(restaurant_id) location(city_name) references geographic(city_name) [Question] what are some good restaurants in the yosemite and mono lake area for french food ? [Constraints] Your [SQL Query] should satisfy the following constraints: - In `SELECT <column>`, must only use the column given in the [Database Schema]. - In `FROM <table>` or `JOIN <table>`, must only use the table given in the [Database Schema]. - In `JOIN`, must only use the tables and columns in the [Foreign keys]. - Without any specific instructions, Use `ASC` for `ORDER BY` by default, - Consider use `DISTINCT` when you need to eliminate duplicates. - The content in quotes is case sensitive. - Prioritize column whose value are more relevant to the [Question]. [SQL Query]
SELECT t3.house_number , t1.name FROM restaurant AS t1 JOIN geographic AS t2 ON t1.city_name = t2.city_name JOIN LOCATION AS t3 ON t1.id = t3.restaurant_id WHERE t2.region = "yosemite and mono lake area" AND t1.food_type = "french" AND t1.rating > 2.5;
You are an experienced and professional database administrator.
Given [Database Schema] and [Foreign Keys], your task is to write a [SQL Query] to answer the [Question]. [Database Schema] Every table consists of several columns. Each line describes the name, type of the column and optional value examples. In some cases, column name can be ambiguous, and extra comment is provided to assist in understanding. - Table: restaurant. Primary Key: (id) id, INT name, TEXT, Value Examples: [] food_type, TEXT, Value Examples: [] city_name, TEXT, Value Examples: [] rating, REAL - Table: geographic. Primary Key: (city_name) city_name, TEXT, Value Examples: [] county, TEXT, Value Examples: [] region, TEXT, Value Examples: [] - Table: location. Primary Key: (restaurant_id) restaurant_id, INT house_number, INT street_name, TEXT, Value Examples: [] city_name, TEXT, Value Examples: [] [Foreign keys] restaurant(city_name) references geographic(city_name) location(restaurant_id) references restaurant(restaurant_id) location(city_name) references geographic(city_name) [Question] where is a good french restaurant in the yosemite and mono lake area ? [Constraints] Your [SQL Query] should satisfy the following constraints: - In `SELECT <column>`, must only use the column given in the [Database Schema]. - In `FROM <table>` or `JOIN <table>`, must only use the table given in the [Database Schema]. - In `JOIN`, must only use the tables and columns in the [Foreign keys]. - Without any specific instructions, Use `ASC` for `ORDER BY` by default, - Consider use `DISTINCT` when you need to eliminate duplicates. - The content in quotes is case sensitive. - Prioritize column whose value are more relevant to the [Question]. [SQL Query]
SELECT t3.house_number , t1.name FROM restaurant AS t1 JOIN geographic AS t2 ON t1.city_name = t2.city_name JOIN LOCATION AS t3 ON t1.id = t3.restaurant_id WHERE t2.region = "yosemite and mono lake area" AND t1.food_type = "french" AND t1.rating > 2.5;
You are an experienced and professional database administrator.
Given [Database Schema] and [Foreign Keys], your task is to write a [SQL Query] to answer the [Question]. [Database Schema] Every table consists of several columns. Each line describes the name, type of the column and optional value examples. In some cases, column name can be ambiguous, and extra comment is provided to assist in understanding. - Table: restaurant. Primary Key: (id) id, INT name, TEXT, Value Examples: [] food_type, TEXT, Value Examples: [] city_name, TEXT, Value Examples: [] rating, REAL - Table: geographic. Primary Key: (city_name) city_name, TEXT, Value Examples: [] county, TEXT, Value Examples: [] region, TEXT, Value Examples: [] - Table: location. Primary Key: (restaurant_id) restaurant_id, INT house_number, INT street_name, TEXT, Value Examples: [] city_name, TEXT, Value Examples: [] [Foreign keys] restaurant(city_name) references geographic(city_name) location(restaurant_id) references restaurant(restaurant_id) location(city_name) references geographic(city_name) [Question] where can i eat some good french food in the yosemite and mono lake area ? [Constraints] Your [SQL Query] should satisfy the following constraints: - In `SELECT <column>`, must only use the column given in the [Database Schema]. - In `FROM <table>` or `JOIN <table>`, must only use the table given in the [Database Schema]. - In `JOIN`, must only use the tables and columns in the [Foreign keys]. - Without any specific instructions, Use `ASC` for `ORDER BY` by default, - Consider use `DISTINCT` when you need to eliminate duplicates. - The content in quotes is case sensitive. - Prioritize column whose value are more relevant to the [Question]. [SQL Query]
SELECT t3.house_number , t1.name FROM restaurant AS t1 JOIN geographic AS t2 ON t1.city_name = t2.city_name JOIN LOCATION AS t3 ON t1.id = t3.restaurant_id WHERE t2.region = "yosemite and mono lake area" AND t1.food_type = "french" AND t1.rating > 2.5;
You are an experienced and professional database administrator.
Given [Database Schema] and [Foreign Keys], your task is to write a [SQL Query] to answer the [Question]. [Database Schema] Every table consists of several columns. Each line describes the name, type of the column and optional value examples. In some cases, column name can be ambiguous, and extra comment is provided to assist in understanding. - Table: restaurant. Primary Key: (id) id, INT name, TEXT, Value Examples: [] food_type, TEXT, Value Examples: [] city_name, TEXT, Value Examples: [] rating, REAL - Table: location. Primary Key: (restaurant_id) restaurant_id, INT house_number, INT street_name, TEXT, Value Examples: [] city_name, TEXT, Value Examples: [] [Foreign keys] location(restaurant_id) references restaurant(restaurant_id) [Question] where are some restaurants good for arabic food in mountain view ? [Constraints] Your [SQL Query] should satisfy the following constraints: - In `SELECT <column>`, must only use the column given in the [Database Schema]. - In `FROM <table>` or `JOIN <table>`, must only use the table given in the [Database Schema]. - In `JOIN`, must only use the tables and columns in the [Foreign keys]. - Without any specific instructions, Use `ASC` for `ORDER BY` by default, - Consider use `DISTINCT` when you need to eliminate duplicates. - The content in quotes is case sensitive. - Prioritize column whose value are more relevant to the [Question]. [SQL Query]
SELECT t2.house_number , t1.name FROM restaurant AS t1 JOIN LOCATION AS t2 ON t1.id = t2.restaurant_id WHERE t2.city_name = "mountain view" AND t1.food_type = "arabic" AND t1.rating > 2.5;
You are an experienced and professional database administrator.
Given [Database Schema] and [Foreign Keys], your task is to write a [SQL Query] to answer the [Question]. [Database Schema] Every table consists of several columns. Each line describes the name, type of the column and optional value examples. In some cases, column name can be ambiguous, and extra comment is provided to assist in understanding. - Table: restaurant. Primary Key: (id) id, INT name, TEXT, Value Examples: [] food_type, TEXT, Value Examples: [] city_name, TEXT, Value Examples: [] rating, REAL - Table: location. Primary Key: (restaurant_id) restaurant_id, INT house_number, INT street_name, TEXT, Value Examples: [] city_name, TEXT, Value Examples: [] [Foreign keys] location(restaurant_id) references restaurant(restaurant_id) [Question] what are some good places in mountain view for arabic food ? [Constraints] Your [SQL Query] should satisfy the following constraints: - In `SELECT <column>`, must only use the column given in the [Database Schema]. - In `FROM <table>` or `JOIN <table>`, must only use the table given in the [Database Schema]. - In `JOIN`, must only use the tables and columns in the [Foreign keys]. - Without any specific instructions, Use `ASC` for `ORDER BY` by default, - Consider use `DISTINCT` when you need to eliminate duplicates. - The content in quotes is case sensitive. - Prioritize column whose value are more relevant to the [Question]. [SQL Query]
SELECT t2.house_number , t1.name FROM restaurant AS t1 JOIN LOCATION AS t2 ON t1.id = t2.restaurant_id WHERE t2.city_name = "mountain view" AND t1.food_type = "arabic" AND t1.rating > 2.5;
You are an experienced and professional database administrator.
Given [Database Schema] and [Foreign Keys], your task is to write a [SQL Query] to answer the [Question]. [Database Schema] Every table consists of several columns. Each line describes the name, type of the column and optional value examples. In some cases, column name can be ambiguous, and extra comment is provided to assist in understanding. - Table: restaurant. Primary Key: (id) id, INT name, TEXT, Value Examples: [] food_type, TEXT, Value Examples: [] city_name, TEXT, Value Examples: [] rating, REAL - Table: location. Primary Key: (restaurant_id) restaurant_id, INT house_number, INT street_name, TEXT, Value Examples: [] city_name, TEXT, Value Examples: [] [Foreign keys] location(restaurant_id) references restaurant(restaurant_id) [Question] where are some good arabic restaurants in mountain view ? [Constraints] Your [SQL Query] should satisfy the following constraints: - In `SELECT <column>`, must only use the column given in the [Database Schema]. - In `FROM <table>` or `JOIN <table>`, must only use the table given in the [Database Schema]. - In `JOIN`, must only use the tables and columns in the [Foreign keys]. - Without any specific instructions, Use `ASC` for `ORDER BY` by default, - Consider use `DISTINCT` when you need to eliminate duplicates. - The content in quotes is case sensitive. - Prioritize column whose value are more relevant to the [Question]. [SQL Query]
SELECT t2.house_number , t1.name FROM restaurant AS t1 JOIN LOCATION AS t2 ON t1.id = t2.restaurant_id WHERE t2.city_name = "mountain view" AND t1.food_type = "arabic" AND t1.rating > 2.5;
You are an experienced and professional database administrator.
Given [Database Schema] and [Foreign Keys], your task is to write a [SQL Query] to answer the [Question]. [Database Schema] Every table consists of several columns. Each line describes the name, type of the column and optional value examples. In some cases, column name can be ambiguous, and extra comment is provided to assist in understanding. - Table: restaurant. Primary Key: (id) id, INT name, TEXT, Value Examples: [] food_type, TEXT, Value Examples: [] city_name, TEXT, Value Examples: [] rating, REAL - Table: location. Primary Key: (restaurant_id) restaurant_id, INT house_number, INT street_name, TEXT, Value Examples: [] city_name, TEXT, Value Examples: [] [Foreign keys] location(restaurant_id) references restaurant(restaurant_id) [Question] show me a good arabic restaurant in mountain view ? [Constraints] Your [SQL Query] should satisfy the following constraints: - In `SELECT <column>`, must only use the column given in the [Database Schema]. - In `FROM <table>` or `JOIN <table>`, must only use the table given in the [Database Schema]. - In `JOIN`, must only use the tables and columns in the [Foreign keys]. - Without any specific instructions, Use `ASC` for `ORDER BY` by default, - Consider use `DISTINCT` when you need to eliminate duplicates. - The content in quotes is case sensitive. - Prioritize column whose value are more relevant to the [Question]. [SQL Query]
SELECT t2.house_number , t1.name FROM restaurant AS t1 JOIN LOCATION AS t2 ON t1.id = t2.restaurant_id WHERE t2.city_name = "mountain view" AND t1.food_type = "arabic" AND t1.rating > 2.5;
You are an experienced and professional database administrator.
Given [Database Schema] and [Foreign Keys], your task is to write a [SQL Query] to answer the [Question]. [Database Schema] Every table consists of several columns. Each line describes the name, type of the column and optional value examples. In some cases, column name can be ambiguous, and extra comment is provided to assist in understanding. - Table: restaurant. Primary Key: (id) id, INT name, TEXT, Value Examples: [] food_type, TEXT, Value Examples: [] city_name, TEXT, Value Examples: [] rating, REAL - Table: location. Primary Key: (restaurant_id) restaurant_id, INT house_number, INT street_name, TEXT, Value Examples: [] city_name, TEXT, Value Examples: [] [Foreign keys] location(restaurant_id) references restaurant(restaurant_id) [Question] give me a good arabic in mountain view ? [Constraints] Your [SQL Query] should satisfy the following constraints: - In `SELECT <column>`, must only use the column given in the [Database Schema]. - In `FROM <table>` or `JOIN <table>`, must only use the table given in the [Database Schema]. - In `JOIN`, must only use the tables and columns in the [Foreign keys]. - Without any specific instructions, Use `ASC` for `ORDER BY` by default, - Consider use `DISTINCT` when you need to eliminate duplicates. - The content in quotes is case sensitive. - Prioritize column whose value are more relevant to the [Question]. [SQL Query]
SELECT t2.house_number , t1.name FROM restaurant AS t1 JOIN LOCATION AS t2 ON t1.id = t2.restaurant_id WHERE t2.city_name = "mountain view" AND t1.food_type = "arabic" AND t1.rating > 2.5;
You are an experienced and professional database administrator.
Given [Database Schema] and [Foreign Keys], your task is to write a [SQL Query] to answer the [Question]. [Database Schema] Every table consists of several columns. Each line describes the name, type of the column and optional value examples. In some cases, column name can be ambiguous, and extra comment is provided to assist in understanding. - Table: restaurant. Primary Key: (id) id, INT name, TEXT, Value Examples: [] food_type, TEXT, Value Examples: [] city_name, TEXT, Value Examples: [] rating, REAL - Table: location. Primary Key: (restaurant_id) restaurant_id, INT house_number, INT street_name, TEXT, Value Examples: [] city_name, TEXT, Value Examples: [] [Foreign keys] location(restaurant_id) references restaurant(restaurant_id) [Question] give me a good arabic restaurant in mountain view ? [Constraints] Your [SQL Query] should satisfy the following constraints: - In `SELECT <column>`, must only use the column given in the [Database Schema]. - In `FROM <table>` or `JOIN <table>`, must only use the table given in the [Database Schema]. - In `JOIN`, must only use the tables and columns in the [Foreign keys]. - Without any specific instructions, Use `ASC` for `ORDER BY` by default, - Consider use `DISTINCT` when you need to eliminate duplicates. - The content in quotes is case sensitive. - Prioritize column whose value are more relevant to the [Question]. [SQL Query]
SELECT t2.house_number , t1.name FROM restaurant AS t1 JOIN LOCATION AS t2 ON t1.id = t2.restaurant_id WHERE t2.city_name = "mountain view" AND t1.food_type = "arabic" AND t1.rating > 2.5;
You are an experienced and professional database administrator.
Given [Database Schema] and [Foreign Keys], your task is to write a [SQL Query] to answer the [Question]. [Database Schema] Every table consists of several columns. Each line describes the name, type of the column and optional value examples. In some cases, column name can be ambiguous, and extra comment is provided to assist in understanding. - Table: restaurant. Primary Key: (id) id, INT name, TEXT, Value Examples: [] food_type, TEXT, Value Examples: [] city_name, TEXT, Value Examples: [] rating, REAL - Table: location. Primary Key: (restaurant_id) restaurant_id, INT house_number, INT street_name, TEXT, Value Examples: [] city_name, TEXT, Value Examples: [] [Foreign keys] location(restaurant_id) references restaurant(restaurant_id) [Question] give me a good place in mountain view for arabic food ? [Constraints] Your [SQL Query] should satisfy the following constraints: - In `SELECT <column>`, must only use the column given in the [Database Schema]. - In `FROM <table>` or `JOIN <table>`, must only use the table given in the [Database Schema]. - In `JOIN`, must only use the tables and columns in the [Foreign keys]. - Without any specific instructions, Use `ASC` for `ORDER BY` by default, - Consider use `DISTINCT` when you need to eliminate duplicates. - The content in quotes is case sensitive. - Prioritize column whose value are more relevant to the [Question]. [SQL Query]
SELECT t2.house_number , t1.name FROM restaurant AS t1 JOIN LOCATION AS t2 ON t1.id = t2.restaurant_id WHERE t2.city_name = "mountain view" AND t1.food_type = "arabic" AND t1.rating > 2.5;
You are an experienced and professional database administrator.
Given [Database Schema] and [Foreign Keys], your task is to write a [SQL Query] to answer the [Question]. [Database Schema] Every table consists of several columns. Each line describes the name, type of the column and optional value examples. In some cases, column name can be ambiguous, and extra comment is provided to assist in understanding. - Table: restaurant. Primary Key: (id) id, INT name, TEXT, Value Examples: [] food_type, TEXT, Value Examples: [] city_name, TEXT, Value Examples: [] rating, REAL - Table: location. Primary Key: (restaurant_id) restaurant_id, INT house_number, INT street_name, TEXT, Value Examples: [] city_name, TEXT, Value Examples: [] [Foreign keys] location(restaurant_id) references restaurant(restaurant_id) [Question] where are some good arabics in mountain view ? [Constraints] Your [SQL Query] should satisfy the following constraints: - In `SELECT <column>`, must only use the column given in the [Database Schema]. - In `FROM <table>` or `JOIN <table>`, must only use the table given in the [Database Schema]. - In `JOIN`, must only use the tables and columns in the [Foreign keys]. - Without any specific instructions, Use `ASC` for `ORDER BY` by default, - Consider use `DISTINCT` when you need to eliminate duplicates. - The content in quotes is case sensitive. - Prioritize column whose value are more relevant to the [Question]. [SQL Query]
SELECT t2.house_number , t1.name FROM restaurant AS t1 JOIN LOCATION AS t2 ON t1.id = t2.restaurant_id WHERE t2.city_name = "mountain view" AND t1.food_type = "arabic" AND t1.rating > 2.5;
You are an experienced and professional database administrator.
Given [Database Schema] and [Foreign Keys], your task is to write a [SQL Query] to answer the [Question]. [Database Schema] Every table consists of several columns. Each line describes the name, type of the column and optional value examples. In some cases, column name can be ambiguous, and extra comment is provided to assist in understanding. - Table: restaurant. Primary Key: (id) id, INT name, TEXT, Value Examples: [] food_type, TEXT, Value Examples: [] city_name, TEXT, Value Examples: [] rating, REAL - Table: location. Primary Key: (restaurant_id) restaurant_id, INT house_number, INT street_name, TEXT, Value Examples: [] city_name, TEXT, Value Examples: [] [Foreign keys] location(restaurant_id) references restaurant(restaurant_id) [Question] where is a restaurant in mountain view that serves good arabic food ? [Constraints] Your [SQL Query] should satisfy the following constraints: - In `SELECT <column>`, must only use the column given in the [Database Schema]. - In `FROM <table>` or `JOIN <table>`, must only use the table given in the [Database Schema]. - In `JOIN`, must only use the tables and columns in the [Foreign keys]. - Without any specific instructions, Use `ASC` for `ORDER BY` by default, - Consider use `DISTINCT` when you need to eliminate duplicates. - The content in quotes is case sensitive. - Prioritize column whose value are more relevant to the [Question]. [SQL Query]
SELECT t2.house_number , t1.name FROM restaurant AS t1 JOIN LOCATION AS t2 ON t1.id = t2.restaurant_id WHERE t2.city_name = "mountain view" AND t1.food_type = "arabic" AND t1.rating > 2.5;
You are an experienced and professional database administrator.
Given [Database Schema] and [Foreign Keys], your task is to write a [SQL Query] to answer the [Question]. [Database Schema] Every table consists of several columns. Each line describes the name, type of the column and optional value examples. In some cases, column name can be ambiguous, and extra comment is provided to assist in understanding. - Table: restaurant. Primary Key: (id) id, INT name, TEXT, Value Examples: [] food_type, TEXT, Value Examples: [] city_name, TEXT, Value Examples: [] rating, REAL - Table: location. Primary Key: (restaurant_id) restaurant_id, INT house_number, INT street_name, TEXT, Value Examples: [] city_name, TEXT, Value Examples: [] [Foreign keys] location(restaurant_id) references restaurant(restaurant_id) [Question] what are some good restaurants in mountain view for arabic food ? [Constraints] Your [SQL Query] should satisfy the following constraints: - In `SELECT <column>`, must only use the column given in the [Database Schema]. - In `FROM <table>` or `JOIN <table>`, must only use the table given in the [Database Schema]. - In `JOIN`, must only use the tables and columns in the [Foreign keys]. - Without any specific instructions, Use `ASC` for `ORDER BY` by default, - Consider use `DISTINCT` when you need to eliminate duplicates. - The content in quotes is case sensitive. - Prioritize column whose value are more relevant to the [Question]. [SQL Query]
SELECT t2.house_number , t1.name FROM restaurant AS t1 JOIN LOCATION AS t2 ON t1.id = t2.restaurant_id WHERE t2.city_name = "mountain view" AND t1.food_type = "arabic" AND t1.rating > 2.5;
You are an experienced and professional database administrator.
Given [Database Schema] and [Foreign Keys], your task is to write a [SQL Query] to answer the [Question]. [Database Schema] Every table consists of several columns. Each line describes the name, type of the column and optional value examples. In some cases, column name can be ambiguous, and extra comment is provided to assist in understanding. - Table: restaurant. Primary Key: (id) id, INT name, TEXT, Value Examples: [] food_type, TEXT, Value Examples: [] city_name, TEXT, Value Examples: [] rating, REAL - Table: location. Primary Key: (restaurant_id) restaurant_id, INT house_number, INT street_name, TEXT, Value Examples: [] city_name, TEXT, Value Examples: [] [Foreign keys] location(restaurant_id) references restaurant(restaurant_id) [Question] give me some restaurants good for arabic food in mountain view ? [Constraints] Your [SQL Query] should satisfy the following constraints: - In `SELECT <column>`, must only use the column given in the [Database Schema]. - In `FROM <table>` or `JOIN <table>`, must only use the table given in the [Database Schema]. - In `JOIN`, must only use the tables and columns in the [Foreign keys]. - Without any specific instructions, Use `ASC` for `ORDER BY` by default, - Consider use `DISTINCT` when you need to eliminate duplicates. - The content in quotes is case sensitive. - Prioritize column whose value are more relevant to the [Question]. [SQL Query]
SELECT t2.house_number , t1.name FROM restaurant AS t1 JOIN LOCATION AS t2 ON t1.id = t2.restaurant_id WHERE t2.city_name = "mountain view" AND t1.food_type = "arabic" AND t1.rating > 2.5;
You are an experienced and professional database administrator.
Given [Database Schema] and [Foreign Keys], your task is to write a [SQL Query] to answer the [Question]. [Database Schema] Every table consists of several columns. Each line describes the name, type of the column and optional value examples. In some cases, column name can be ambiguous, and extra comment is provided to assist in understanding. - Table: restaurant. Primary Key: (id) id, INT name, TEXT, Value Examples: [] food_type, TEXT, Value Examples: [] city_name, TEXT, Value Examples: [] rating, REAL - Table: location. Primary Key: (restaurant_id) restaurant_id, INT house_number, INT street_name, TEXT, Value Examples: [] city_name, TEXT, Value Examples: [] [Foreign keys] location(restaurant_id) references restaurant(restaurant_id) [Question] where can i eat some good arabic food in mountain view ? [Constraints] Your [SQL Query] should satisfy the following constraints: - In `SELECT <column>`, must only use the column given in the [Database Schema]. - In `FROM <table>` or `JOIN <table>`, must only use the table given in the [Database Schema]. - In `JOIN`, must only use the tables and columns in the [Foreign keys]. - Without any specific instructions, Use `ASC` for `ORDER BY` by default, - Consider use `DISTINCT` when you need to eliminate duplicates. - The content in quotes is case sensitive. - Prioritize column whose value are more relevant to the [Question]. [SQL Query]
SELECT t2.house_number , t1.name FROM restaurant AS t1 JOIN LOCATION AS t2 ON t1.id = t2.restaurant_id WHERE t2.city_name = "mountain view" AND t1.food_type = "arabic" AND t1.rating > 2.5;
You are an experienced and professional database administrator.
Given [Database Schema] and [Foreign Keys], your task is to write a [SQL Query] to answer the [Question]. [Database Schema] Every table consists of several columns. Each line describes the name, type of the column and optional value examples. In some cases, column name can be ambiguous, and extra comment is provided to assist in understanding. - Table: restaurant. Primary Key: (id) id, INT name, TEXT, Value Examples: [] food_type, TEXT, Value Examples: [] city_name, TEXT, Value Examples: [] rating, REAL - Table: location. Primary Key: (restaurant_id) restaurant_id, INT house_number, INT street_name, TEXT, Value Examples: [] city_name, TEXT, Value Examples: [] [Foreign keys] location(restaurant_id) references restaurant(restaurant_id) [Question] give me some good places for arabic in mountain view ? [Constraints] Your [SQL Query] should satisfy the following constraints: - In `SELECT <column>`, must only use the column given in the [Database Schema]. - In `FROM <table>` or `JOIN <table>`, must only use the table given in the [Database Schema]. - In `JOIN`, must only use the tables and columns in the [Foreign keys]. - Without any specific instructions, Use `ASC` for `ORDER BY` by default, - Consider use `DISTINCT` when you need to eliminate duplicates. - The content in quotes is case sensitive. - Prioritize column whose value are more relevant to the [Question]. [SQL Query]
SELECT t2.house_number , t1.name FROM restaurant AS t1 JOIN LOCATION AS t2 ON t1.id = t2.restaurant_id WHERE t2.city_name = "mountain view" AND t1.food_type = "arabic" AND t1.rating > 2.5;
You are an experienced and professional database administrator.
Given [Database Schema] and [Foreign Keys], your task is to write a [SQL Query] to answer the [Question]. [Database Schema] Every table consists of several columns. Each line describes the name, type of the column and optional value examples. In some cases, column name can be ambiguous, and extra comment is provided to assist in understanding. - Table: restaurant. Primary Key: (id) id, INT name, TEXT, Value Examples: [] food_type, TEXT, Value Examples: [] city_name, TEXT, Value Examples: [] rating, REAL - Table: location. Primary Key: (restaurant_id) restaurant_id, INT house_number, INT street_name, TEXT, Value Examples: [] city_name, TEXT, Value Examples: [] [Foreign keys] location(restaurant_id) references restaurant(restaurant_id) [Question] where is a good arabic in mountain view ? [Constraints] Your [SQL Query] should satisfy the following constraints: - In `SELECT <column>`, must only use the column given in the [Database Schema]. - In `FROM <table>` or `JOIN <table>`, must only use the table given in the [Database Schema]. - In `JOIN`, must only use the tables and columns in the [Foreign keys]. - Without any specific instructions, Use `ASC` for `ORDER BY` by default, - Consider use `DISTINCT` when you need to eliminate duplicates. - The content in quotes is case sensitive. - Prioritize column whose value are more relevant to the [Question]. [SQL Query]
SELECT t2.house_number , t1.name FROM restaurant AS t1 JOIN LOCATION AS t2 ON t1.id = t2.restaurant_id WHERE t2.city_name = "mountain view" AND t1.food_type = "arabic" AND t1.rating > 2.5;
You are an experienced and professional database administrator.
Given [Database Schema] and [Foreign Keys], your task is to write a [SQL Query] to answer the [Question]. [Database Schema] Every table consists of several columns. Each line describes the name, type of the column and optional value examples. In some cases, column name can be ambiguous, and extra comment is provided to assist in understanding. - Table: restaurant. Primary Key: (id) id, INT name, TEXT, Value Examples: [] food_type, TEXT, Value Examples: [] city_name, TEXT, Value Examples: [] rating, REAL - Table: location. Primary Key: (restaurant_id) restaurant_id, INT house_number, INT street_name, TEXT, Value Examples: [] city_name, TEXT, Value Examples: [] [Foreign keys] location(restaurant_id) references restaurant(restaurant_id) [Question] give me a restaurant in mountain view that serves good arabic food ? [Constraints] Your [SQL Query] should satisfy the following constraints: - In `SELECT <column>`, must only use the column given in the [Database Schema]. - In `FROM <table>` or `JOIN <table>`, must only use the table given in the [Database Schema]. - In `JOIN`, must only use the tables and columns in the [Foreign keys]. - Without any specific instructions, Use `ASC` for `ORDER BY` by default, - Consider use `DISTINCT` when you need to eliminate duplicates. - The content in quotes is case sensitive. - Prioritize column whose value are more relevant to the [Question]. [SQL Query]
SELECT t2.house_number , t1.name FROM restaurant AS t1 JOIN LOCATION AS t2 ON t1.id = t2.restaurant_id WHERE t2.city_name = "mountain view" AND t1.food_type = "arabic" AND t1.rating > 2.5;
You are an experienced and professional database administrator.
Given [Database Schema] and [Foreign Keys], your task is to write a [SQL Query] to answer the [Question]. [Database Schema] Every table consists of several columns. Each line describes the name, type of the column and optional value examples. In some cases, column name can be ambiguous, and extra comment is provided to assist in understanding. - Table: restaurant. Primary Key: (id) id, INT name, TEXT, Value Examples: [] food_type, TEXT, Value Examples: [] city_name, TEXT, Value Examples: [] rating, REAL - Table: location. Primary Key: (restaurant_id) restaurant_id, INT house_number, INT street_name, TEXT, Value Examples: [] city_name, TEXT, Value Examples: [] [Foreign keys] location(restaurant_id) references restaurant(restaurant_id) [Question] give me some good arabic restaurants in mountain view ? [Constraints] Your [SQL Query] should satisfy the following constraints: - In `SELECT <column>`, must only use the column given in the [Database Schema]. - In `FROM <table>` or `JOIN <table>`, must only use the table given in the [Database Schema]. - In `JOIN`, must only use the tables and columns in the [Foreign keys]. - Without any specific instructions, Use `ASC` for `ORDER BY` by default, - Consider use `DISTINCT` when you need to eliminate duplicates. - The content in quotes is case sensitive. - Prioritize column whose value are more relevant to the [Question]. [SQL Query]
SELECT t2.house_number , t1.name FROM restaurant AS t1 JOIN LOCATION AS t2 ON t1.id = t2.restaurant_id WHERE t2.city_name = "mountain view" AND t1.food_type = "arabic" AND t1.rating > 2.5;
You are an experienced and professional database administrator.
Given [Database Schema] and [Foreign Keys], your task is to write a [SQL Query] to answer the [Question]. [Database Schema] Every table consists of several columns. Each line describes the name, type of the column and optional value examples. In some cases, column name can be ambiguous, and extra comment is provided to assist in understanding. - Table: restaurant. Primary Key: (id) id, INT name, TEXT, Value Examples: [] food_type, TEXT, Value Examples: [] city_name, TEXT, Value Examples: [] rating, REAL - Table: location. Primary Key: (restaurant_id) restaurant_id, INT house_number, INT street_name, TEXT, Value Examples: [] city_name, TEXT, Value Examples: [] [Foreign keys] location(restaurant_id) references restaurant(restaurant_id) [Question] where are some good places for arabic in mountain view ? [Constraints] Your [SQL Query] should satisfy the following constraints: - In `SELECT <column>`, must only use the column given in the [Database Schema]. - In `FROM <table>` or `JOIN <table>`, must only use the table given in the [Database Schema]. - In `JOIN`, must only use the tables and columns in the [Foreign keys]. - Without any specific instructions, Use `ASC` for `ORDER BY` by default, - Consider use `DISTINCT` when you need to eliminate duplicates. - The content in quotes is case sensitive. - Prioritize column whose value are more relevant to the [Question]. [SQL Query]
SELECT t2.house_number , t1.name FROM restaurant AS t1 JOIN LOCATION AS t2 ON t1.id = t2.restaurant_id WHERE t2.city_name = "mountain view" AND t1.food_type = "arabic" AND t1.rating > 2.5;
You are an experienced and professional database administrator.
Given [Database Schema] and [Foreign Keys], your task is to write a [SQL Query] to answer the [Question]. [Database Schema] Every table consists of several columns. Each line describes the name, type of the column and optional value examples. In some cases, column name can be ambiguous, and extra comment is provided to assist in understanding. - Table: restaurant. Primary Key: (id) id, INT name, TEXT, Value Examples: [] food_type, TEXT, Value Examples: [] city_name, TEXT, Value Examples: [] rating, REAL - Table: location. Primary Key: (restaurant_id) restaurant_id, INT house_number, INT street_name, TEXT, Value Examples: [] city_name, TEXT, Value Examples: [] [Foreign keys] location(restaurant_id) references restaurant(restaurant_id) [Question] give me some good arabics in mountain view ? [Constraints] Your [SQL Query] should satisfy the following constraints: - In `SELECT <column>`, must only use the column given in the [Database Schema]. - In `FROM <table>` or `JOIN <table>`, must only use the table given in the [Database Schema]. - In `JOIN`, must only use the tables and columns in the [Foreign keys]. - Without any specific instructions, Use `ASC` for `ORDER BY` by default, - Consider use `DISTINCT` when you need to eliminate duplicates. - The content in quotes is case sensitive. - Prioritize column whose value are more relevant to the [Question]. [SQL Query]
SELECT t2.house_number , t1.name FROM restaurant AS t1 JOIN LOCATION AS t2 ON t1.id = t2.restaurant_id WHERE t2.city_name = "mountain view" AND t1.food_type = "arabic" AND t1.rating > 2.5;
You are an experienced and professional database administrator.
Given [Database Schema] and [Foreign Keys], your task is to write a [SQL Query] to answer the [Question]. [Database Schema] Every table consists of several columns. Each line describes the name, type of the column and optional value examples. In some cases, column name can be ambiguous, and extra comment is provided to assist in understanding. - Table: restaurant. Primary Key: (id) id, INT name, TEXT, Value Examples: [] food_type, TEXT, Value Examples: [] city_name, TEXT, Value Examples: [] rating, REAL - Table: location. Primary Key: (restaurant_id) restaurant_id, INT house_number, INT street_name, TEXT, Value Examples: [] city_name, TEXT, Value Examples: [] [Foreign keys] location(restaurant_id) references restaurant(restaurant_id) [Question] give me a good restaurant in mountain view for arabic food ? [Constraints] Your [SQL Query] should satisfy the following constraints: - In `SELECT <column>`, must only use the column given in the [Database Schema]. - In `FROM <table>` or `JOIN <table>`, must only use the table given in the [Database Schema]. - In `JOIN`, must only use the tables and columns in the [Foreign keys]. - Without any specific instructions, Use `ASC` for `ORDER BY` by default, - Consider use `DISTINCT` when you need to eliminate duplicates. - The content in quotes is case sensitive. - Prioritize column whose value are more relevant to the [Question]. [SQL Query]
SELECT t2.house_number , t1.name FROM restaurant AS t1 JOIN LOCATION AS t2 ON t1.id = t2.restaurant_id WHERE t2.city_name = "mountain view" AND t1.food_type = "arabic" AND t1.rating > 2.5;
You are an experienced and professional database administrator.
Given [Database Schema] and [Foreign Keys], your task is to write a [SQL Query] to answer the [Question]. [Database Schema] Every table consists of several columns. Each line describes the name, type of the column and optional value examples. In some cases, column name can be ambiguous, and extra comment is provided to assist in understanding. - Table: restaurant. Primary Key: (id) id, INT name, TEXT, Value Examples: [] food_type, TEXT, Value Examples: [] city_name, TEXT, Value Examples: [] rating, REAL - Table: location. Primary Key: (restaurant_id) restaurant_id, INT house_number, INT street_name, TEXT, Value Examples: [] city_name, TEXT, Value Examples: [] [Foreign keys] location(restaurant_id) references restaurant(restaurant_id) [Question] where is a good arabic restaurant in mountain view ? [Constraints] Your [SQL Query] should satisfy the following constraints: - In `SELECT <column>`, must only use the column given in the [Database Schema]. - In `FROM <table>` or `JOIN <table>`, must only use the table given in the [Database Schema]. - In `JOIN`, must only use the tables and columns in the [Foreign keys]. - Without any specific instructions, Use `ASC` for `ORDER BY` by default, - Consider use `DISTINCT` when you need to eliminate duplicates. - The content in quotes is case sensitive. - Prioritize column whose value are more relevant to the [Question]. [SQL Query]
SELECT t2.house_number , t1.name FROM restaurant AS t1 JOIN LOCATION AS t2 ON t1.id = t2.restaurant_id WHERE t2.city_name = "mountain view" AND t1.food_type = "arabic" AND t1.rating > 2.5;
You are an experienced and professional database administrator.
Given [Database Schema] and [Foreign Keys], your task is to write a [SQL Query] to answer the [Question]. [Database Schema] Every table consists of several columns. Each line describes the name, type of the column and optional value examples. In some cases, column name can be ambiguous, and extra comment is provided to assist in understanding. - Table: restaurant. Primary Key: (id) id, INT name, TEXT, Value Examples: [] food_type, TEXT, Value Examples: [] city_name, TEXT, Value Examples: [] rating, REAL - Table: location. Primary Key: (restaurant_id) restaurant_id, INT house_number, INT street_name, TEXT, Value Examples: [] city_name, TEXT, Value Examples: [] [Foreign keys] location(restaurant_id) references restaurant(restaurant_id) [Question] what are some good places for arabic in mountain view ? [Constraints] Your [SQL Query] should satisfy the following constraints: - In `SELECT <column>`, must only use the column given in the [Database Schema]. - In `FROM <table>` or `JOIN <table>`, must only use the table given in the [Database Schema]. - In `JOIN`, must only use the tables and columns in the [Foreign keys]. - Without any specific instructions, Use `ASC` for `ORDER BY` by default, - Consider use `DISTINCT` when you need to eliminate duplicates. - The content in quotes is case sensitive. - Prioritize column whose value are more relevant to the [Question]. [SQL Query]
SELECT t2.house_number , t1.name FROM restaurant AS t1 JOIN LOCATION AS t2 ON t1.id = t2.restaurant_id WHERE t2.city_name = "mountain view" AND t1.food_type = "arabic" AND t1.rating > 2.5;
You are an experienced and professional database administrator.
Given [Database Schema] and [Foreign Keys], your task is to write a [SQL Query] to answer the [Question]. [Database Schema] Every table consists of several columns. Each line describes the name, type of the column and optional value examples. In some cases, column name can be ambiguous, and extra comment is provided to assist in understanding. - Table: restaurant. Primary Key: (id) id, INT name, TEXT, Value Examples: [] food_type, TEXT, Value Examples: [] city_name, TEXT, Value Examples: [] rating, REAL - Table: location. Primary Key: (restaurant_id) restaurant_id, INT house_number, INT street_name, TEXT, Value Examples: [] city_name, TEXT, Value Examples: [] [Foreign keys] location(restaurant_id) references restaurant(restaurant_id) [Question] where is a good restaurant in mountain view for arabic food ? [Constraints] Your [SQL Query] should satisfy the following constraints: - In `SELECT <column>`, must only use the column given in the [Database Schema]. - In `FROM <table>` or `JOIN <table>`, must only use the table given in the [Database Schema]. - In `JOIN`, must only use the tables and columns in the [Foreign keys]. - Without any specific instructions, Use `ASC` for `ORDER BY` by default, - Consider use `DISTINCT` when you need to eliminate duplicates. - The content in quotes is case sensitive. - Prioritize column whose value are more relevant to the [Question]. [SQL Query]
SELECT t2.house_number , t1.name FROM restaurant AS t1 JOIN LOCATION AS t2 ON t1.id = t2.restaurant_id WHERE t2.city_name = "mountain view" AND t1.food_type = "arabic" AND t1.rating > 2.5;
You are an experienced and professional database administrator.
Given [Database Schema] and [Foreign Keys], your task is to write a [SQL Query] to answer the [Question]. [Database Schema] Every table consists of several columns. Each line describes the name, type of the column and optional value examples. In some cases, column name can be ambiguous, and extra comment is provided to assist in understanding. - Table: restaurant. Primary Key: (id) id, INT name, TEXT, Value Examples: [] food_type, TEXT, Value Examples: [] city_name, TEXT, Value Examples: [] rating, REAL - Table: location. Primary Key: (restaurant_id) restaurant_id, INT house_number, INT street_name, TEXT, Value Examples: [] city_name, TEXT, Value Examples: [] [Foreign keys] location(restaurant_id) references restaurant(restaurant_id) [Question] where is a good place in mountain view for arabic food ? [Constraints] Your [SQL Query] should satisfy the following constraints: - In `SELECT <column>`, must only use the column given in the [Database Schema]. - In `FROM <table>` or `JOIN <table>`, must only use the table given in the [Database Schema]. - In `JOIN`, must only use the tables and columns in the [Foreign keys]. - Without any specific instructions, Use `ASC` for `ORDER BY` by default, - Consider use `DISTINCT` when you need to eliminate duplicates. - The content in quotes is case sensitive. - Prioritize column whose value are more relevant to the [Question]. [SQL Query]
SELECT t2.house_number , t1.name FROM restaurant AS t1 JOIN LOCATION AS t2 ON t1.id = t2.restaurant_id WHERE t2.city_name = "mountain view" AND t1.food_type = "arabic" AND t1.rating > 2.5;
You are an experienced and professional database administrator.
Given [Database Schema] and [Foreign Keys], your task is to write a [SQL Query] to answer the [Question]. [Database Schema] Every table consists of several columns. Each line describes the name, type of the column and optional value examples. In some cases, column name can be ambiguous, and extra comment is provided to assist in understanding. - Table: restaurant. Primary Key: (id) id, INT name, TEXT, Value Examples: [] food_type, TEXT, Value Examples: [] city_name, TEXT, Value Examples: [] rating, REAL - Table: location. Primary Key: (restaurant_id) restaurant_id, INT house_number, INT street_name, TEXT, Value Examples: [] city_name, TEXT, Value Examples: [] [Foreign keys] location(restaurant_id) references restaurant(restaurant_id) [Question] where can i find a jamerican cuisine in san francisco ? [Constraints] Your [SQL Query] should satisfy the following constraints: - In `SELECT <column>`, must only use the column given in the [Database Schema]. - In `FROM <table>` or `JOIN <table>`, must only use the table given in the [Database Schema]. - In `JOIN`, must only use the tables and columns in the [Foreign keys]. - Without any specific instructions, Use `ASC` for `ORDER BY` by default, - Consider use `DISTINCT` when you need to eliminate duplicates. - The content in quotes is case sensitive. - Prioritize column whose value are more relevant to the [Question]. [SQL Query]
SELECT t2.house_number , t1.name FROM restaurant AS t1 JOIN LOCATION AS t2 ON t1.id = t2.restaurant_id WHERE t2.city_name = "san francisco" AND t1.name = "jamerican cuisine";
You are an experienced and professional database administrator.
Given [Database Schema] and [Foreign Keys], your task is to write a [SQL Query] to answer the [Question]. [Database Schema] Every table consists of several columns. Each line describes the name, type of the column and optional value examples. In some cases, column name can be ambiguous, and extra comment is provided to assist in understanding. - Table: restaurant. Primary Key: (id) id, INT name, TEXT, Value Examples: [] food_type, TEXT, Value Examples: [] city_name, TEXT, Value Examples: [] rating, REAL - Table: location. Primary Key: (restaurant_id) restaurant_id, INT house_number, INT street_name, TEXT, Value Examples: [] city_name, TEXT, Value Examples: [] [Foreign keys] location(restaurant_id) references restaurant(restaurant_id) [Question] where is jamerican cuisine in san francisco ? [Constraints] Your [SQL Query] should satisfy the following constraints: - In `SELECT <column>`, must only use the column given in the [Database Schema]. - In `FROM <table>` or `JOIN <table>`, must only use the table given in the [Database Schema]. - In `JOIN`, must only use the tables and columns in the [Foreign keys]. - Without any specific instructions, Use `ASC` for `ORDER BY` by default, - Consider use `DISTINCT` when you need to eliminate duplicates. - The content in quotes is case sensitive. - Prioritize column whose value are more relevant to the [Question]. [SQL Query]
SELECT t2.house_number , t1.name FROM restaurant AS t1 JOIN LOCATION AS t2 ON t1.id = t2.restaurant_id WHERE t2.city_name = "san francisco" AND t1.name = "jamerican cuisine";
You are an experienced and professional database administrator.
Given [Database Schema] and [Foreign Keys], your task is to write a [SQL Query] to answer the [Question]. [Database Schema] Every table consists of several columns. Each line describes the name, type of the column and optional value examples. In some cases, column name can be ambiguous, and extra comment is provided to assist in understanding. - Table: restaurant. Primary Key: (id) id, INT name, TEXT, Value Examples: [] food_type, TEXT, Value Examples: [] city_name, TEXT, Value Examples: [] rating, REAL - Table: location. Primary Key: (restaurant_id) restaurant_id, INT house_number, INT street_name, TEXT, Value Examples: [] city_name, TEXT, Value Examples: [] [Foreign keys] location(restaurant_id) references restaurant(restaurant_id) [Question] where is a jamerican cuisine in san francisco ? [Constraints] Your [SQL Query] should satisfy the following constraints: - In `SELECT <column>`, must only use the column given in the [Database Schema]. - In `FROM <table>` or `JOIN <table>`, must only use the table given in the [Database Schema]. - In `JOIN`, must only use the tables and columns in the [Foreign keys]. - Without any specific instructions, Use `ASC` for `ORDER BY` by default, - Consider use `DISTINCT` when you need to eliminate duplicates. - The content in quotes is case sensitive. - Prioritize column whose value are more relevant to the [Question]. [SQL Query]
SELECT t2.house_number , t1.name FROM restaurant AS t1 JOIN LOCATION AS t2 ON t1.id = t2.restaurant_id WHERE t2.city_name = "san francisco" AND t1.name = "jamerican cuisine";
You are an experienced and professional database administrator.
Given [Database Schema] and [Foreign Keys], your task is to write a [SQL Query] to answer the [Question]. [Database Schema] Every table consists of several columns. Each line describes the name, type of the column and optional value examples. In some cases, column name can be ambiguous, and extra comment is provided to assist in understanding. - Table: location. Primary Key: (restaurant_id) restaurant_id, INT house_number, INT street_name, TEXT, Value Examples: [] city_name, TEXT, Value Examples: [] - Table: restaurant. Primary Key: (id) id, INT name, TEXT, Value Examples: [] food_type, TEXT, Value Examples: [] city_name, TEXT, Value Examples: [] rating, REAL - Table: geographic. Primary Key: (city_name) city_name, TEXT, Value Examples: [] county, TEXT, Value Examples: [] region, TEXT, Value Examples: [] [Foreign keys] location(restaurant_id) references restaurant(restaurant_id) location(city_name) references geographic(city_name) restaurant(city_name) references geographic(city_name) [Question] where can we find some restaurants in the bay area ? [Constraints] Your [SQL Query] should satisfy the following constraints: - In `SELECT <column>`, must only use the column given in the [Database Schema]. - In `FROM <table>` or `JOIN <table>`, must only use the table given in the [Database Schema]. - In `JOIN`, must only use the tables and columns in the [Foreign keys]. - Without any specific instructions, Use `ASC` for `ORDER BY` by default, - Consider use `DISTINCT` when you need to eliminate duplicates. - The content in quotes is case sensitive. - Prioritize column whose value are more relevant to the [Question]. [SQL Query]
SELECT t2.house_number , t1.name FROM LOCATION AS t2 JOIN restaurant AS t1 ON t1.id = t2.restaurant_id WHERE t1.city_name IN (SELECT city_name FROM geographic WHERE region = "bay area" );
You are an experienced and professional database administrator.
Given [Database Schema] and [Foreign Keys], your task is to write a [SQL Query] to answer the [Question]. [Database Schema] Every table consists of several columns. Each line describes the name, type of the column and optional value examples. In some cases, column name can be ambiguous, and extra comment is provided to assist in understanding. - Table: location. Primary Key: (restaurant_id) restaurant_id, INT house_number, INT street_name, TEXT, Value Examples: [] city_name, TEXT, Value Examples: [] - Table: restaurant. Primary Key: (id) id, INT name, TEXT, Value Examples: [] food_type, TEXT, Value Examples: [] city_name, TEXT, Value Examples: [] rating, REAL - Table: geographic. Primary Key: (city_name) city_name, TEXT, Value Examples: [] county, TEXT, Value Examples: [] region, TEXT, Value Examples: [] [Foreign keys] location(restaurant_id) references restaurant(restaurant_id) location(city_name) references geographic(city_name) restaurant(city_name) references geographic(city_name) [Question] give me some restaurants in the bay area ? [Constraints] Your [SQL Query] should satisfy the following constraints: - In `SELECT <column>`, must only use the column given in the [Database Schema]. - In `FROM <table>` or `JOIN <table>`, must only use the table given in the [Database Schema]. - In `JOIN`, must only use the tables and columns in the [Foreign keys]. - Without any specific instructions, Use `ASC` for `ORDER BY` by default, - Consider use `DISTINCT` when you need to eliminate duplicates. - The content in quotes is case sensitive. - Prioritize column whose value are more relevant to the [Question]. [SQL Query]
SELECT t2.house_number , t1.name FROM LOCATION AS t2 JOIN restaurant AS t1 ON t1.id = t2.restaurant_id WHERE t1.city_name IN (SELECT city_name FROM geographic WHERE region = "bay area" );
You are an experienced and professional database administrator.
Given [Database Schema] and [Foreign Keys], your task is to write a [SQL Query] to answer the [Question]. [Database Schema] Every table consists of several columns. Each line describes the name, type of the column and optional value examples. In some cases, column name can be ambiguous, and extra comment is provided to assist in understanding. - Table: location. Primary Key: (restaurant_id) restaurant_id, INT house_number, INT street_name, TEXT, Value Examples: [] city_name, TEXT, Value Examples: [] - Table: restaurant. Primary Key: (id) id, INT name, TEXT, Value Examples: [] food_type, TEXT, Value Examples: [] city_name, TEXT, Value Examples: [] rating, REAL - Table: geographic. Primary Key: (city_name) city_name, TEXT, Value Examples: [] county, TEXT, Value Examples: [] region, TEXT, Value Examples: [] [Foreign keys] location(restaurant_id) references restaurant(restaurant_id) location(city_name) references geographic(city_name) restaurant(city_name) references geographic(city_name) [Question] give me a restaurant in the bay area ? [Constraints] Your [SQL Query] should satisfy the following constraints: - In `SELECT <column>`, must only use the column given in the [Database Schema]. - In `FROM <table>` or `JOIN <table>`, must only use the table given in the [Database Schema]. - In `JOIN`, must only use the tables and columns in the [Foreign keys]. - Without any specific instructions, Use `ASC` for `ORDER BY` by default, - Consider use `DISTINCT` when you need to eliminate duplicates. - The content in quotes is case sensitive. - Prioritize column whose value are more relevant to the [Question]. [SQL Query]
SELECT t2.house_number , t1.name FROM LOCATION AS t2 JOIN restaurant AS t1 ON t1.id = t2.restaurant_id WHERE t1.city_name IN (SELECT city_name FROM geographic WHERE region = "bay area" );
You are an experienced and professional database administrator.
Given [Database Schema] and [Foreign Keys], your task is to write a [SQL Query] to answer the [Question]. [Database Schema] Every table consists of several columns. Each line describes the name, type of the column and optional value examples. In some cases, column name can be ambiguous, and extra comment is provided to assist in understanding. - Table: location. Primary Key: (restaurant_id) restaurant_id, INT house_number, INT street_name, TEXT, Value Examples: [] city_name, TEXT, Value Examples: [] - Table: restaurant. Primary Key: (id) id, INT name, TEXT, Value Examples: [] food_type, TEXT, Value Examples: [] city_name, TEXT, Value Examples: [] rating, REAL - Table: geographic. Primary Key: (city_name) city_name, TEXT, Value Examples: [] county, TEXT, Value Examples: [] region, TEXT, Value Examples: [] [Foreign keys] location(restaurant_id) references restaurant(restaurant_id) location(city_name) references geographic(city_name) restaurant(city_name) references geographic(city_name) [Question] where can i find a restaurant in the bay area ? [Constraints] Your [SQL Query] should satisfy the following constraints: - In `SELECT <column>`, must only use the column given in the [Database Schema]. - In `FROM <table>` or `JOIN <table>`, must only use the table given in the [Database Schema]. - In `JOIN`, must only use the tables and columns in the [Foreign keys]. - Without any specific instructions, Use `ASC` for `ORDER BY` by default, - Consider use `DISTINCT` when you need to eliminate duplicates. - The content in quotes is case sensitive. - Prioritize column whose value are more relevant to the [Question]. [SQL Query]
SELECT t2.house_number , t1.name FROM LOCATION AS t2 JOIN restaurant AS t1 ON t1.id = t2.restaurant_id WHERE t1.city_name IN (SELECT city_name FROM geographic WHERE region = "bay area" );
You are an experienced and professional database administrator.
Given [Database Schema] and [Foreign Keys], your task is to write a [SQL Query] to answer the [Question]. [Database Schema] Every table consists of several columns. Each line describes the name, type of the column and optional value examples. In some cases, column name can be ambiguous, and extra comment is provided to assist in understanding. - Table: location. Primary Key: (restaurant_id) restaurant_id, INT house_number, INT street_name, TEXT, Value Examples: [] city_name, TEXT, Value Examples: [] - Table: restaurant. Primary Key: (id) id, INT name, TEXT, Value Examples: [] food_type, TEXT, Value Examples: [] city_name, TEXT, Value Examples: [] rating, REAL - Table: geographic. Primary Key: (city_name) city_name, TEXT, Value Examples: [] county, TEXT, Value Examples: [] region, TEXT, Value Examples: [] [Foreign keys] location(restaurant_id) references restaurant(restaurant_id) location(city_name) references geographic(city_name) restaurant(city_name) references geographic(city_name) [Question] give me a good restaurant in the bay area ? [Constraints] Your [SQL Query] should satisfy the following constraints: - In `SELECT <column>`, must only use the column given in the [Database Schema]. - In `FROM <table>` or `JOIN <table>`, must only use the table given in the [Database Schema]. - In `JOIN`, must only use the tables and columns in the [Foreign keys]. - Without any specific instructions, Use `ASC` for `ORDER BY` by default, - Consider use `DISTINCT` when you need to eliminate duplicates. - The content in quotes is case sensitive. - Prioritize column whose value are more relevant to the [Question]. [SQL Query]
SELECT t2.house_number , t1.name FROM LOCATION AS t2 JOIN restaurant AS t1 ON t1.id = t2.restaurant_id WHERE t1.city_name IN (SELECT city_name FROM geographic WHERE region = "region0" ) AND t1.rating > 2.5;
You are an experienced and professional database administrator.
Given [Database Schema] and [Foreign Keys], your task is to write a [SQL Query] to answer the [Question]. [Database Schema] Every table consists of several columns. Each line describes the name, type of the column and optional value examples. In some cases, column name can be ambiguous, and extra comment is provided to assist in understanding. - Table: location. Primary Key: (restaurant_id) restaurant_id, INT house_number, INT street_name, TEXT, Value Examples: [] city_name, TEXT, Value Examples: [] - Table: restaurant. Primary Key: (id) id, INT name, TEXT, Value Examples: [] food_type, TEXT, Value Examples: [] city_name, TEXT, Value Examples: [] rating, REAL - Table: geographic. Primary Key: (city_name) city_name, TEXT, Value Examples: [] county, TEXT, Value Examples: [] region, TEXT, Value Examples: [] [Foreign keys] location(restaurant_id) references restaurant(restaurant_id) location(city_name) references geographic(city_name) restaurant(city_name) references geographic(city_name) [Question] what are some good restaurants in the bay area ? [Constraints] Your [SQL Query] should satisfy the following constraints: - In `SELECT <column>`, must only use the column given in the [Database Schema]. - In `FROM <table>` or `JOIN <table>`, must only use the table given in the [Database Schema]. - In `JOIN`, must only use the tables and columns in the [Foreign keys]. - Without any specific instructions, Use `ASC` for `ORDER BY` by default, - Consider use `DISTINCT` when you need to eliminate duplicates. - The content in quotes is case sensitive. - Prioritize column whose value are more relevant to the [Question]. [SQL Query]
SELECT t2.house_number , t1.name FROM LOCATION AS t2 JOIN restaurant AS t1 ON t1.id = t2.restaurant_id WHERE t1.city_name IN (SELECT city_name FROM geographic WHERE region = "region0" ) AND t1.rating > 2.5;
You are an experienced and professional database administrator.
Given [Database Schema] and [Foreign Keys], your task is to write a [SQL Query] to answer the [Question]. [Database Schema] Every table consists of several columns. Each line describes the name, type of the column and optional value examples. In some cases, column name can be ambiguous, and extra comment is provided to assist in understanding. - Table: location. Primary Key: (restaurant_id) restaurant_id, INT house_number, INT street_name, TEXT, Value Examples: [] city_name, TEXT, Value Examples: [] - Table: restaurant. Primary Key: (id) id, INT name, TEXT, Value Examples: [] food_type, TEXT, Value Examples: [] city_name, TEXT, Value Examples: [] rating, REAL - Table: geographic. Primary Key: (city_name) city_name, TEXT, Value Examples: [] county, TEXT, Value Examples: [] region, TEXT, Value Examples: [] [Foreign keys] location(restaurant_id) references restaurant(restaurant_id) location(city_name) references geographic(city_name) restaurant(city_name) references geographic(city_name) [Question] give me some good restaurants in the bay area ? [Constraints] Your [SQL Query] should satisfy the following constraints: - In `SELECT <column>`, must only use the column given in the [Database Schema]. - In `FROM <table>` or `JOIN <table>`, must only use the table given in the [Database Schema]. - In `JOIN`, must only use the tables and columns in the [Foreign keys]. - Without any specific instructions, Use `ASC` for `ORDER BY` by default, - Consider use `DISTINCT` when you need to eliminate duplicates. - The content in quotes is case sensitive. - Prioritize column whose value are more relevant to the [Question]. [SQL Query]
SELECT t2.house_number , t1.name FROM LOCATION AS t2 JOIN restaurant AS t1 ON t1.id = t2.restaurant_id WHERE t1.city_name IN (SELECT city_name FROM geographic WHERE region = "region0" ) AND t1.rating > 2.5;
You are an experienced and professional database administrator.
Given [Database Schema] and [Foreign Keys], your task is to write a [SQL Query] to answer the [Question]. [Database Schema] Every table consists of several columns. Each line describes the name, type of the column and optional value examples. In some cases, column name can be ambiguous, and extra comment is provided to assist in understanding. - Table: location. Primary Key: (restaurant_id) restaurant_id, INT house_number, INT street_name, TEXT, Value Examples: [] city_name, TEXT, Value Examples: [] - Table: restaurant. Primary Key: (id) id, INT name, TEXT, Value Examples: [] food_type, TEXT, Value Examples: [] city_name, TEXT, Value Examples: [] rating, REAL - Table: geographic. Primary Key: (city_name) city_name, TEXT, Value Examples: [] county, TEXT, Value Examples: [] region, TEXT, Value Examples: [] [Foreign keys] location(restaurant_id) references restaurant(restaurant_id) location(city_name) references geographic(city_name) restaurant(city_name) references geographic(city_name) [Question] what is a good restaurant in the bay area ? [Constraints] Your [SQL Query] should satisfy the following constraints: - In `SELECT <column>`, must only use the column given in the [Database Schema]. - In `FROM <table>` or `JOIN <table>`, must only use the table given in the [Database Schema]. - In `JOIN`, must only use the tables and columns in the [Foreign keys]. - Without any specific instructions, Use `ASC` for `ORDER BY` by default, - Consider use `DISTINCT` when you need to eliminate duplicates. - The content in quotes is case sensitive. - Prioritize column whose value are more relevant to the [Question]. [SQL Query]
SELECT t2.house_number , t1.name FROM LOCATION AS t2 JOIN restaurant AS t1 ON t1.id = t2.restaurant_id WHERE t1.city_name IN (SELECT city_name FROM geographic WHERE region = "region0" ) AND t1.rating > 2.5;
You are an experienced and professional database administrator.