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: cast. Primary Key: (id)
id, INT
msid, INT
aid, INT
role, INT
- Table: actor. Primary Key: (aid)
aid, INT
gender, TEXT, Value Examples: []
name, TEXT, Value Examples: []
nationality, TEXT, Value Examples: []
birth_city, TEXT, Value Examples: []
birth_year, INT
- Table: movie. Primary Key: (mid)
mid, INT
title, TEXT, Value Examples: []
release_year, INT
title_aka, TEXT, Value Examples: []
budget, TEXT, Value Examples: []
[Foreign keys]
cast(aid) references actor(aid)
[Question]
How many movies did " Shahab Hosseini " act in ?
[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 COUNT (DISTINCT t2.title) FROM CAST AS t3 JOIN actor AS t1 ON t3.aid = t1.aid JOIN movie AS t2 ON t2.mid = t3.msid WHERE t1.name = "Shahab Hosseini"; | 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: cast. Primary Key: (id)
id, INT
msid, INT
aid, INT
role, INT
- Table: actor. Primary Key: (aid)
aid, INT
gender, TEXT, Value Examples: []
name, TEXT, Value Examples: []
nationality, TEXT, Value Examples: []
birth_city, TEXT, Value Examples: []
birth_year, INT
- Table: movie. Primary Key: (mid)
mid, INT
title, TEXT, Value Examples: []
release_year, INT
title_aka, TEXT, Value Examples: []
budget, TEXT, Value Examples: []
[Foreign keys]
cast(aid) references actor(aid)
[Question]
What is the number of movies in which " Shahab Hosseini " acted ?
[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 COUNT (DISTINCT t2.title) FROM CAST AS t3 JOIN actor AS t1 ON t3.aid = t1.aid JOIN movie AS t2 ON t2.mid = t3.msid WHERE t1.name = "Shahab Hosseini"; | 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: cast. Primary Key: (id)
id, INT
msid, INT
aid, INT
role, INT
- Table: actor. Primary Key: (aid)
aid, INT
gender, TEXT, Value Examples: []
name, TEXT, Value Examples: []
nationality, TEXT, Value Examples: []
birth_city, TEXT, Value Examples: []
birth_year, INT
- Table: movie. Primary Key: (mid)
mid, INT
title, TEXT, Value Examples: []
release_year, INT
title_aka, TEXT, Value Examples: []
budget, TEXT, Value Examples: []
[Foreign keys]
cast(aid) references actor(aid)
[Question]
What is the number of movies featuring " Shahab Hosseini " ?
[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 COUNT (DISTINCT t2.title) FROM CAST AS t3 JOIN actor AS t1 ON t3.aid = t1.aid JOIN movie AS t2 ON t2.mid = t3.msid WHERE t1.name = "Shahab Hosseini"; | 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: cast. Primary Key: (id)
id, INT
msid, INT
aid, INT
role, INT
- Table: actor. Primary Key: (aid)
aid, INT
gender, TEXT, Value Examples: []
name, TEXT, Value Examples: []
nationality, TEXT, Value Examples: []
birth_city, TEXT, Value Examples: []
birth_year, INT
- Table: movie. Primary Key: (mid)
mid, INT
title, TEXT, Value Examples: []
release_year, INT
title_aka, TEXT, Value Examples: []
budget, TEXT, Value Examples: []
[Foreign keys]
cast(aid) references actor(aid)
[Question]
How many movies did " Shahab Hosseini " act in
[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 COUNT (DISTINCT t2.title) FROM CAST AS t3 JOIN actor AS t1 ON t3.aid = t1.aid JOIN movie AS t2 ON t2.mid = t3.msid WHERE t1.name = "Shahab Hosseini"; | 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: actor. Primary Key: (aid)
aid, INT
gender, TEXT, Value Examples: []
name, TEXT, Value Examples: []
nationality, TEXT, Value Examples: []
birth_city, TEXT, Value Examples: []
birth_year, INT
[Foreign keys]
[Question]
How many actors were born in " Los Angeles " after 2000 ?
[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 COUNT (DISTINCT name) FROM actor WHERE birth_city = "Los Angeles" AND birth_year > 2000; | 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: cast. Primary Key: (id)
id, INT
msid, INT
aid, INT
role, INT
- Table: actor. Primary Key: (aid)
aid, INT
gender, TEXT, Value Examples: []
name, TEXT, Value Examples: []
nationality, TEXT, Value Examples: []
birth_city, TEXT, Value Examples: []
birth_year, INT
- Table: movie. Primary Key: (mid)
mid, INT
title, TEXT, Value Examples: []
release_year, INT
title_aka, TEXT, Value Examples: []
budget, TEXT, Value Examples: []
[Foreign keys]
cast(aid) references actor(aid)
[Question]
How many movies did " Humphrey Bogart " act in before 1942 ?
[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 COUNT (DISTINCT t2.title) FROM CAST AS t3 JOIN actor AS t1 ON t3.aid = t1.aid JOIN movie AS t2 ON t2.mid = t3.msid WHERE t1.name = "Humphrey Bogart" AND t2.release_year < 1942; | 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: cast. Primary Key: (id)
id, INT
msid, INT
aid, INT
role, INT
- Table: actor. Primary Key: (aid)
aid, INT
gender, TEXT, Value Examples: []
name, TEXT, Value Examples: []
nationality, TEXT, Value Examples: []
birth_city, TEXT, Value Examples: []
birth_year, INT
- Table: movie. Primary Key: (mid)
mid, INT
title, TEXT, Value Examples: []
release_year, INT
title_aka, TEXT, Value Examples: []
budget, TEXT, Value Examples: []
[Foreign keys]
cast(aid) references actor(aid)
[Question]
What is the number of movies that " Brad Pitt " acts in per year ?
[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 COUNT (DISTINCT t2.title) , t2.release_year FROM CAST AS t3 JOIN actor AS t1 ON t3.aid = t1.aid JOIN movie AS t2 ON t2.mid = t3.msid WHERE t1.name = "Brad Pitt" GROUP BY t2.release_year; | 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: tags. Primary Key: (id)
id, INT
msid, INT
kid, INT
- Table: keyword. Primary Key: (id)
id, INT
keyword, TEXT, Value Examples: []
- Table: movie. Primary Key: (mid)
mid, INT
title, TEXT, Value Examples: []
release_year, INT
title_aka, TEXT, Value Examples: []
budget, TEXT, Value Examples: []
[Foreign keys]
tags(kid) references keyword(kid)
[Question]
How many movies about Iraq war were produced in 2015 ?
[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 COUNT (DISTINCT t3.title) FROM tags AS t2 JOIN keyword AS t1 ON t2.kid = t1.id JOIN movie AS t3 ON t2.msid = t3.mid WHERE t1.keyword = "Iraq war" AND t3.release_year = 2015; | 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: tags. Primary Key: (id)
id, INT
msid, INT
kid, INT
- Table: keyword. Primary Key: (id)
id, INT
keyword, TEXT, Value Examples: []
- Table: movie. Primary Key: (mid)
mid, INT
title, TEXT, Value Examples: []
release_year, INT
title_aka, TEXT, Value Examples: []
budget, TEXT, Value Examples: []
[Foreign keys]
tags(kid) references keyword(kid)
[Question]
How many movies about Persians were released after 1990 ?
[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 COUNT (DISTINCT t3.title) FROM tags AS t2 JOIN keyword AS t1 ON t2.kid = t1.id JOIN movie AS t3 ON t2.msid = t3.mid WHERE t1.keyword = "Persians" AND t3.release_year > 1990; | 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: director. Primary Key: (did)
did, INT
gender, TEXT, Value Examples: []
name, TEXT, Value Examples: []
nationality, TEXT, Value Examples: []
birth_city, TEXT, Value Examples: []
birth_year, INT
- Table: directed_by. Primary Key: (id)
id, INT
msid, INT
did, INT
- Table: movie. Primary Key: (mid)
mid, INT
title, TEXT, Value Examples: []
release_year, INT
title_aka, TEXT, Value Examples: []
budget, TEXT, Value Examples: []
[Foreign keys]
directed_by(did) references director(did)
[Question]
How many movies did " Quentin Tarantino " direct after 2010 ?
[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 COUNT (DISTINCT t3.title) FROM director AS t2 JOIN directed_by AS t1 ON t2.did = t1.did JOIN movie AS t3 ON t3.mid = t1.msid WHERE t2.name = "Quentin Tarantino" AND t3.release_year > 2010; | 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: director. Primary Key: (did)
did, INT
gender, TEXT, Value Examples: []
name, TEXT, Value Examples: []
nationality, TEXT, Value Examples: []
birth_city, TEXT, Value Examples: []
birth_year, INT
- Table: directed_by. Primary Key: (id)
id, INT
msid, INT
did, INT
- Table: movie. Primary Key: (mid)
mid, INT
title, TEXT, Value Examples: []
release_year, INT
title_aka, TEXT, Value Examples: []
budget, TEXT, Value Examples: []
[Foreign keys]
directed_by(did) references director(did)
[Question]
How many movies did " Quentin Tarantino " direct before 2010 ?
[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 COUNT (DISTINCT t3.title) FROM director AS t2 JOIN directed_by AS t1 ON t2.did = t1.did JOIN movie AS t3 ON t3.mid = t1.msid WHERE t2.name = "Quentin Tarantino" AND t3.release_year < 2010; | 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: director. Primary Key: (did)
did, INT
gender, TEXT, Value Examples: []
name, TEXT, Value Examples: []
nationality, TEXT, Value Examples: []
birth_city, TEXT, Value Examples: []
birth_year, INT
- Table: directed_by. Primary Key: (id)
id, INT
msid, INT
did, INT
- Table: movie. Primary Key: (mid)
mid, INT
title, TEXT, Value Examples: []
release_year, INT
title_aka, TEXT, Value Examples: []
budget, TEXT, Value Examples: []
- Table: made_by. Primary Key: (id)
id, INT
msid, INT
pid, INT
- Table: producer. Primary Key: (pid)
pid, INT
gender, TEXT, Value Examples: []
name, TEXT, Value Examples: []
nationality, TEXT, Value Examples: []
birth_city, TEXT, Value Examples: []
birth_year, INT
[Foreign keys]
directed_by(did) references director(did)
made_by(pid) references producer(pid)
[Question]
How many movies did " Quentin Tarantino " direct before 2002 and after 2010 ?
[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 COUNT (DISTINCT t4.title) FROM director AS t3 JOIN directed_by AS t2 ON t3.did = t2.did JOIN movie AS t4 ON t4.mid = t2.msid JOIN made_by AS t5 ON t4.mid = t5.msid JOIN producer AS t1 ON t1.pid = t5.pid WHERE t3.name = "Quentin Tarantino" AND t4.release_year < 2010 AND t4.release_year > 2002; | 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: actor. Primary Key: (aid)
aid, INT
gender, TEXT, Value Examples: []
name, TEXT, Value Examples: []
nationality, TEXT, Value Examples: []
birth_city, TEXT, Value Examples: []
birth_year, INT
[Foreign keys]
[Question]
How many female actors were born in " New York City " after 1980 ?
[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 COUNT (DISTINCT name) FROM actor WHERE birth_city = "New York City" AND birth_year > 1980 AND gender = "female"; | 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: cast. Primary Key: (id)
id, INT
msid, INT
aid, INT
role, INT
- Table: actor. Primary Key: (aid)
aid, INT
gender, TEXT, Value Examples: []
name, TEXT, Value Examples: []
nationality, TEXT, Value Examples: []
birth_city, TEXT, Value Examples: []
birth_year, INT
- Table: movie. Primary Key: (mid)
mid, INT
title, TEXT, Value Examples: []
release_year, INT
title_aka, TEXT, Value Examples: []
budget, TEXT, Value Examples: []
- Table: directed_by. Primary Key: (id)
id, INT
msid, INT
did, INT
- Table: director. Primary Key: (did)
did, INT
gender, TEXT, Value Examples: []
name, TEXT, Value Examples: []
nationality, TEXT, Value Examples: []
birth_city, TEXT, Value Examples: []
birth_year, INT
[Foreign keys]
cast(aid) references actor(aid)
directed_by(did) references director(did)
[Question]
find the number of actors from Iran who played in " Jim Jarmusch " movies
[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 COUNT (DISTINCT t1.name) FROM CAST AS t4 JOIN actor AS t1 ON t4.aid = t1.aid JOIN movie AS t5 ON t5.mid = t4.msid JOIN directed_by AS t2 ON t5.mid = t2.msid JOIN director AS t3 ON t3.did = t2.did WHERE t1.nationality = "Iran" AND t3.name = "Jim Jarmusch"; | 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: cast. Primary Key: (id)
id, INT
msid, INT
aid, INT
role, INT
- Table: actor. Primary Key: (aid)
aid, INT
gender, TEXT, Value Examples: []
name, TEXT, Value Examples: []
nationality, TEXT, Value Examples: []
birth_city, TEXT, Value Examples: []
birth_year, INT
- Table: movie. Primary Key: (mid)
mid, INT
title, TEXT, Value Examples: []
release_year, INT
title_aka, TEXT, Value Examples: []
budget, TEXT, Value Examples: []
[Foreign keys]
cast(aid) references actor(aid)
[Question]
How many actors from China have acted in " Rush Hour 3 "
[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 COUNT (DISTINCT t1.name) FROM CAST AS t2 JOIN actor AS t1 ON t2.aid = t1.aid JOIN movie AS t3 ON t3.mid = t2.msid WHERE t1.nationality = "China" AND t3.title = "Rush Hour 3"; | 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: cast. Primary Key: (id)
id, INT
msid, INT
aid, INT
role, INT
- Table: actor. Primary Key: (aid)
aid, INT
gender, TEXT, Value Examples: []
name, TEXT, Value Examples: []
nationality, TEXT, Value Examples: []
birth_city, TEXT, Value Examples: []
birth_year, INT
- Table: movie. Primary Key: (mid)
mid, INT
title, TEXT, Value Examples: []
release_year, INT
title_aka, TEXT, Value Examples: []
budget, TEXT, Value Examples: []
[Foreign keys]
cast(aid) references actor(aid)
[Question]
Find all movies that star both " Woody Strode " and " Jason Robards "
[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 t4.title FROM CAST AS t5 JOIN actor AS t1 ON t5.aid = t1.aid JOIN movie AS t4 ON t4.mid = t5.msid JOIN CAST AS t3 ON t4.mid = t3.msid JOIN actor AS t2 ON t3.aid = t2.aid WHERE t1.name = "Woody Strode" AND t2.name = "Jason Robards"; | 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: cast. Primary Key: (id)
id, INT
msid, INT
aid, INT
role, INT
- Table: actor. Primary Key: (aid)
aid, INT
gender, TEXT, Value Examples: []
name, TEXT, Value Examples: []
nationality, TEXT, Value Examples: []
birth_city, TEXT, Value Examples: []
birth_year, INT
- Table: movie. Primary Key: (mid)
mid, INT
title, TEXT, Value Examples: []
release_year, INT
title_aka, TEXT, Value Examples: []
budget, TEXT, Value Examples: []
[Foreign keys]
cast(aid) references actor(aid)
[Question]
Find all movies featuring " Woody Strode " and " Jason Robards "
[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 t4.title FROM CAST AS t5 JOIN actor AS t1 ON t5.aid = t1.aid JOIN movie AS t4 ON t4.mid = t5.msid JOIN CAST AS t3 ON t4.mid = t3.msid JOIN actor AS t2 ON t3.aid = t2.aid WHERE t1.name = "Woody Strode" AND t2.name = "Jason Robards"; | 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: cast. Primary Key: (id)
id, INT
msid, INT
aid, INT
role, INT
- Table: actor. Primary Key: (aid)
aid, INT
gender, TEXT, Value Examples: []
name, TEXT, Value Examples: []
nationality, TEXT, Value Examples: []
birth_city, TEXT, Value Examples: []
birth_year, INT
- Table: movie. Primary Key: (mid)
mid, INT
title, TEXT, Value Examples: []
release_year, INT
title_aka, TEXT, Value Examples: []
budget, TEXT, Value Examples: []
[Foreign keys]
cast(aid) references actor(aid)
[Question]
Find all movies featuring both " Woody Strode " and " Jason Robards "
[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 t4.title FROM CAST AS t5 JOIN actor AS t1 ON t5.aid = t1.aid JOIN movie AS t4 ON t4.mid = t5.msid JOIN CAST AS t3 ON t4.mid = t3.msid JOIN actor AS t2 ON t3.aid = t2.aid WHERE t1.name = "Woody Strode" AND t2.name = "Jason Robards"; | 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: cast. Primary Key: (id)
id, INT
msid, INT
aid, INT
role, INT
- Table: actor. Primary Key: (aid)
aid, INT
gender, TEXT, Value Examples: []
name, TEXT, Value Examples: []
nationality, TEXT, Value Examples: []
birth_city, TEXT, Value Examples: []
birth_year, INT
- Table: movie. Primary Key: (mid)
mid, INT
title, TEXT, Value Examples: []
release_year, INT
title_aka, TEXT, Value Examples: []
budget, TEXT, Value Examples: []
[Foreign keys]
cast(aid) references actor(aid)
[Question]
Find all movies featuring " Jason Robards " and " Woody Strode "
[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 t4.title FROM CAST AS t5 JOIN actor AS t1 ON t5.aid = t1.aid JOIN movie AS t4 ON t4.mid = t5.msid JOIN CAST AS t3 ON t4.mid = t3.msid JOIN actor AS t2 ON t3.aid = t2.aid WHERE t1.name = "Woody Strode" AND t2.name = "Jason Robards"; | 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: cast. Primary Key: (id)
id, INT
msid, INT
aid, INT
role, INT
- Table: actor. Primary Key: (aid)
aid, INT
gender, TEXT, Value Examples: []
name, TEXT, Value Examples: []
nationality, TEXT, Value Examples: []
birth_city, TEXT, Value Examples: []
birth_year, INT
- Table: movie. Primary Key: (mid)
mid, INT
title, TEXT, Value Examples: []
release_year, INT
title_aka, TEXT, Value Examples: []
budget, TEXT, Value Examples: []
[Foreign keys]
cast(aid) references actor(aid)
[Question]
Find all actors who acted in the same movie as " Tom Hanks "
[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 t1.name FROM CAST AS t4 JOIN actor AS t1 ON t4.aid = t1.aid JOIN movie AS t5 ON t5.mid = t4.msid JOIN CAST AS t3 ON t5.mid = t3.msid JOIN actor AS t2 ON t3.aid = t2.aid WHERE t2.name = "Tom Hanks"; | 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: director. Primary Key: (did)
did, INT
gender, TEXT, Value Examples: []
name, TEXT, Value Examples: []
nationality, TEXT, Value Examples: []
birth_city, TEXT, Value Examples: []
birth_year, INT
- Table: directed_by. Primary Key: (id)
id, INT
msid, INT
did, INT
- Table: movie. Primary Key: (mid)
mid, INT
title, TEXT, Value Examples: []
release_year, INT
title_aka, TEXT, Value Examples: []
budget, TEXT, Value Examples: []
[Foreign keys]
directed_by(did) references director(did)
[Question]
What movies have the same director as the movie " Revolutionary Road " ?
[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.title FROM director AS t5 JOIN directed_by AS t2 ON t5.did = t2.did JOIN directed_by AS t1 ON t5.did = t1.did JOIN movie AS t4 ON t4.mid = t2.msid JOIN movie AS t3 ON t3.mid = t1.msid WHERE t4.title = "Revolutionary Road"; | 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: genre. Primary Key: (gid)
gid, INT
genre, TEXT, Value Examples: []
- Table: classification. Primary Key: (id)
id, INT
msid, INT
gid, INT
- Table: movie. Primary Key: (mid)
mid, INT
title, TEXT, Value Examples: []
release_year, INT
title_aka, TEXT, Value Examples: []
budget, TEXT, Value Examples: []
[Foreign keys]
classification(gid) references genre(gid)
[Question]
Find the movie which is classified in the most number of genres
[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.title FROM genre AS t2 JOIN classification AS t1 ON t2.gid = t1.gid JOIN movie AS t3 ON t3.mid = t1.msid GROUP BY t3.title ORDER BY COUNT (DISTINCT t2.genre) DESC LIMIT 1; | 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: cast. Primary Key: (id)
id, INT
msid, INT
aid, INT
role, INT
- Table: actor. Primary Key: (aid)
aid, INT
gender, TEXT, Value Examples: []
name, TEXT, Value Examples: []
nationality, TEXT, Value Examples: []
birth_city, TEXT, Value Examples: []
birth_year, INT
- Table: movie. Primary Key: (mid)
mid, INT
title, TEXT, Value Examples: []
release_year, INT
title_aka, TEXT, Value Examples: []
budget, TEXT, Value Examples: []
[Foreign keys]
cast(aid) references actor(aid)
[Question]
which movie has the most number of actors from China ?
[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.title FROM CAST AS t3 JOIN actor AS t1 ON t3.aid = t1.aid JOIN movie AS t2 ON t2.mid = t3.msid WHERE t1.nationality = "China" GROUP BY t2.title ORDER BY COUNT (DISTINCT t1.name) DESC LIMIT 1; | 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: cast. Primary Key: (id)
id, INT
msid, INT
aid, INT
role, INT
- Table: actor. Primary Key: (aid)
aid, INT
gender, TEXT, Value Examples: []
name, TEXT, Value Examples: []
nationality, TEXT, Value Examples: []
birth_city, TEXT, Value Examples: []
birth_year, INT
- Table: movie. Primary Key: (mid)
mid, INT
title, TEXT, Value Examples: []
release_year, INT
title_aka, TEXT, Value Examples: []
budget, TEXT, Value Examples: []
- Table: directed_by. Primary Key: (id)
id, INT
msid, INT
did, INT
- Table: director. Primary Key: (did)
did, INT
gender, TEXT, Value Examples: []
name, TEXT, Value Examples: []
nationality, TEXT, Value Examples: []
birth_city, TEXT, Value Examples: []
birth_year, INT
[Foreign keys]
cast(aid) references actor(aid)
directed_by(did) references director(did)
[Question]
Find the actors who played in the latest movie by " Quentin Tarantino "
[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 t1.name FROM CAST AS t4 JOIN actor AS t1 ON t4.aid = t1.aid JOIN movie AS t5 ON t5.mid = t4.msid JOIN directed_by AS t2 ON t5.mid = t2.msid JOIN director AS t3 ON t3.did = t2.did WHERE t3.name = "Quentin Tarantino" ORDER BY t5.release_year DESC LIMIT 1; | 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: director. Primary Key: (did)
did, INT
gender, TEXT, Value Examples: []
name, TEXT, Value Examples: []
nationality, TEXT, Value Examples: []
birth_city, TEXT, Value Examples: []
birth_year, INT
- Table: directed_by. Primary Key: (id)
id, INT
msid, INT
did, INT
- Table: movie. Primary Key: (mid)
mid, INT
title, TEXT, Value Examples: []
release_year, INT
title_aka, TEXT, Value Examples: []
budget, TEXT, Value Examples: []
[Foreign keys]
directed_by(did) references director(did)
[Question]
Find the name and budget of the latest movie by " Quentin Tarantino "
[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.budget , t3.title FROM director AS t2 JOIN directed_by AS t1 ON t2.did = t1.did JOIN movie AS t3 ON t3.mid = t1.msid WHERE t2.name = "Quentin Tarantino" ORDER BY t3.release_year DESC LIMIT 1; | 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: director. Primary Key: (did)
did, INT
gender, TEXT, Value Examples: []
name, TEXT, Value Examples: []
nationality, TEXT, Value Examples: []
birth_city, TEXT, Value Examples: []
birth_year, INT
- Table: directed_by. Primary Key: (id)
id, INT
msid, INT
did, INT
- Table: movie. Primary Key: (mid)
mid, INT
title, TEXT, Value Examples: []
release_year, INT
title_aka, TEXT, Value Examples: []
budget, TEXT, Value Examples: []
[Foreign keys]
directed_by(did) references director(did)
[Question]
What is the latest movie by " Jim Jarmusch "
[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.title FROM director AS t2 JOIN directed_by AS t1 ON t2.did = t1.did JOIN movie AS t3 ON t3.mid = t1.msid WHERE t2.name = "Jim Jarmusch" ORDER BY t3.release_year DESC LIMIT 1; | 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: director. Primary Key: (did)
did, INT
gender, TEXT, Value Examples: []
name, TEXT, Value Examples: []
nationality, TEXT, Value Examples: []
birth_city, TEXT, Value Examples: []
birth_year, INT
- Table: directed_by. Primary Key: (id)
id, INT
msid, INT
did, INT
- Table: movie. Primary Key: (mid)
mid, INT
title, TEXT, Value Examples: []
release_year, INT
title_aka, TEXT, Value Examples: []
budget, TEXT, Value Examples: []
- Table: made_by. Primary Key: (id)
id, INT
msid, INT
pid, INT
- Table: producer. Primary Key: (pid)
pid, INT
gender, TEXT, Value Examples: []
name, TEXT, Value Examples: []
nationality, TEXT, Value Examples: []
birth_city, TEXT, Value Examples: []
birth_year, INT
[Foreign keys]
directed_by(did) references director(did)
made_by(pid) references producer(pid)
[Question]
Which producer has worked with the most number of directors ?
[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 t1.name FROM director AS t3 JOIN directed_by AS t2 ON t3.did = t2.did JOIN movie AS t4 ON t4.mid = t2.msid JOIN made_by AS t5 ON t4.mid = t5.msid JOIN producer AS t1 ON t1.pid = t5.pid GROUP BY t1.name ORDER BY COUNT (DISTINCT t3.name) DESC LIMIT 1; | 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: cast. Primary Key: (id)
id, INT
msid, INT
aid, INT
role, INT
- Table: actor. Primary Key: (aid)
aid, INT
gender, TEXT, Value Examples: []
name, TEXT, Value Examples: []
nationality, TEXT, Value Examples: []
birth_city, TEXT, Value Examples: []
birth_year, INT
- Table: movie. Primary Key: (mid)
mid, INT
title, TEXT, Value Examples: []
release_year, INT
title_aka, TEXT, Value Examples: []
budget, TEXT, Value Examples: []
[Foreign keys]
cast(aid) references actor(aid)
[Question]
Find the latest movie which " Gabriele Ferzetti " acted in
[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 t1.name FROM CAST AS t2 JOIN actor AS t1 ON t2.aid = t1.aid JOIN movie AS t3 ON t3.mid = t2.msid WHERE t1.name = "Gabriele Ferzetti" ORDER BY t3.release_year DESC LIMIT 1; | 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]
how many buttercup kitchen are there 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 COUNT (*) FROM restaurant AS t1 JOIN LOCATION AS t2 ON t1.id = t2.restaurant_id WHERE t2.city_name = "san francisco" AND t1.name = "buttercup kitchen"; | 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: []
[Foreign keys]
restaurant(city_name) references geographic(city_name)
[Question]
how many chinese restaurants are there 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 COUNT (*) FROM restaurant AS t1 JOIN geographic AS t2 ON t1.city_name = t2.city_name WHERE t2.region = "bay area" AND t1.food_type = "chinese"; | 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: []
[Foreign keys]
restaurant(city_name) references geographic(city_name)
[Question]
how many places for chinese food are there 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 COUNT (*) FROM restaurant AS t1 JOIN geographic AS t2 ON t1.city_name = t2.city_name WHERE t2.region = "bay area" AND t1.food_type = "chinese"; | 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: []
[Foreign keys]
restaurant(city_name) references geographic(city_name)
[Question]
how many chinese places are there 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 COUNT (*) FROM restaurant AS t1 JOIN geographic AS t2 ON t1.city_name = t2.city_name WHERE t2.region = "bay area" AND t1.food_type = "chinese"; | 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: []
[Foreign keys]
restaurant(city_name) references geographic(city_name)
[Question]
how many places for chinese are there 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 COUNT (*) FROM restaurant AS t1 JOIN geographic AS t2 ON t1.city_name = t2.city_name WHERE t2.region = "bay area" AND t1.food_type = "chinese"; | 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: []
[Foreign keys]
restaurant(city_name) references geographic(city_name)
[Question]
how many jamerican cuisine are there in santa cruz county ?
[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 COUNT (*) FROM restaurant AS t1 JOIN geographic AS t2 ON t1.city_name = t2.city_name WHERE t2.county = "santa cruz county" 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 ?
[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 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]
what is the best french restaurant 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.food_type = "french" AND t1.rating = (SELECT MAX (t1.rating) FROM restaurant AS t1 JOIN LOCATION AS t2 ON t1.id = t2.restaurant_id WHERE t2.city_name = "san francisco" AND t1.food_type = "french" ); | 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 is the best french 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.food_type = "french" AND t1.rating = (SELECT MAX (t1.rating) FROM restaurant AS t1 JOIN LOCATION AS t2 ON t1.id = t2.restaurant_id WHERE t2.city_name = "san francisco" AND t1.food_type = "french" ); | 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 is the best place in san francisco 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 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.food_type = "french" AND t1.rating = (SELECT MAX (t1.rating) FROM restaurant AS t1 JOIN LOCATION AS t2 ON t1.id = t2.restaurant_id WHERE t2.city_name = "san francisco" AND t1.food_type = "french" ); | 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 the best place in san francisco 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 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.food_type = "french" AND t1.rating = (SELECT MAX (t1.rating) FROM restaurant AS t1 JOIN LOCATION AS t2 ON t1.id = t2.restaurant_id WHERE t2.city_name = "san francisco" AND t1.food_type = "french" ); | 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 the best french 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.food_type = "french" AND t1.rating = (SELECT MAX (t1.rating) FROM restaurant AS t1 JOIN LOCATION AS t2 ON t1.id = t2.restaurant_id WHERE t2.city_name = "san francisco" AND t1.food_type = "french" ); | 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 the best french 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.food_type = "french" AND t1.rating = (SELECT MAX (t1.rating) FROM restaurant AS t1 JOIN LOCATION AS t2 ON t1.id = t2.restaurant_id WHERE t2.city_name = "san francisco" AND t1.food_type = "french" ); | 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 the best french restaurant 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.food_type = "french" AND t1.rating = (SELECT MAX (t1.rating) FROM restaurant AS t1 JOIN LOCATION AS t2 ON t1.id = t2.restaurant_id WHERE t2.city_name = "san francisco" AND t1.food_type = "french" ); | 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 the best restaurant in san francisco 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 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.food_type = "french" AND t1.rating = (SELECT MAX (t1.rating) FROM restaurant AS t1 JOIN LOCATION AS t2 ON t1.id = t2.restaurant_id WHERE t2.city_name = "san francisco" AND t1.food_type = "french" ); | 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 the best french restaurant 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.food_type = "french" AND t1.rating = (SELECT MAX (t1.rating) FROM restaurant AS t1 JOIN LOCATION AS t2 ON t1.id = t2.restaurant_id WHERE t2.city_name = "san francisco" AND t1.food_type = "french" ); | 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 is the best restaurant in san francisco 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 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.food_type = "french" AND t1.rating = (SELECT MAX (t1.rating) FROM restaurant AS t1 JOIN LOCATION AS t2 ON t1.id = t2.restaurant_id WHERE t2.city_name = "san francisco" AND t1.food_type = "french" ); | 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 the best restaurant in san francisco 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 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.food_type = "french" AND t1.rating = (SELECT MAX (t1.rating) FROM restaurant AS t1 JOIN LOCATION AS t2 ON t1.id = t2.restaurant_id WHERE t2.city_name = "san francisco" AND t1.food_type = "french" ); | 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 denny 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.name = "denny"; | 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 on bethel island rd in bethel island ?
[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 = "bethel island" AND t2.street_name = "bethel island rd" 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 restaurants on bethel island rd in bethel island ?
[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 = "bethel island" AND t2.street_name = "bethel island rd" 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 on bethel island rd in bethel island ?
[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 = "bethel island" AND t2.street_name = "bethel island rd" 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 is a good restaurant on bethel island rd in bethel island ?
[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 = "bethel island" AND t2.street_name = "bethel island rd" 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 we find a restaurant in alameda ?
[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 = "alameda"; | 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 alameda ?
[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 = "alameda"; | 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 we find some restaurants in alameda ?
[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 = "alameda"; | 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 alameda ?
[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 = "alameda"; | 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 in alameda ?
[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 = "alameda"; | 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 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 t2.house_number , t1.name FROM restaurant AS t1 JOIN LOCATION AS t2 ON t1.id = t2.restaurant_id WHERE 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 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 t2.house_number , t1.name FROM restaurant AS t1 JOIN LOCATION AS t2 ON t1.id = t2.restaurant_id WHERE 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]
how many places for french food are there in palo alto ?
[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 COUNT (*) FROM restaurant AS t1 JOIN LOCATION AS t2 ON t1.id = t2.restaurant_id WHERE t2.city_name = "palo alto" AND t1.food_type = "french"; | 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]
how many french restaurants are there in palo alto ?
[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 COUNT (*) FROM restaurant AS t1 JOIN LOCATION AS t2 ON t1.id = t2.restaurant_id WHERE t2.city_name = "palo alto" AND t1.food_type = "french"; | 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]
how many french restaurant are there in palo alto ?
[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 COUNT (*) FROM restaurant AS t1 JOIN LOCATION AS t2 ON t1.id = t2.restaurant_id WHERE t2.city_name = "palo alto" AND t1.food_type = "french"; | 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]
how many places for french are there in palo alto ?
[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 COUNT (*) FROM restaurant AS t1 JOIN LOCATION AS t2 ON t1.id = t2.restaurant_id WHERE t2.city_name = "palo alto" AND t1.food_type = "french"; | 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: []
[Foreign keys]
restaurant(city_name) references geographic(city_name)
[Question]
how many italian restaurants are in the yolo county ?
[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 COUNT (*) FROM restaurant AS t1 JOIN geographic AS t2 ON t1.city_name = t2.city_name WHERE t2.county = "yolo county" AND t1.food_type = "italian"; | 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 french 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 = "french"; | 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: []
[Foreign keys]
restaurant(city_name) references geographic(city_name)
[Question]
how many denny are there 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 COUNT (*) FROM restaurant AS t1 JOIN geographic AS t2 ON t1.city_name = t2.city_name WHERE t2.region = "bay area" AND t1.name = "denny"; | 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 alameda ?
[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 = "alameda" 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 alameda ?
[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 = "alameda" 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 is a good restaurant in alameda ?
[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 = "alameda" 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 restaurants in alameda ?
[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 = "alameda" 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 on buchanan in san francisco 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 = "san francisco" AND t2.street_name = "buchanan" 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 on buchanan 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 t2.street_name = "buchanan" 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 on buchanan 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 t2.street_name = "buchanan" 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 on buchanan 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 t2.street_name = "buchanan" 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 on buchanan 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 t2.street_name = "buchanan" 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 on buchanan 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 t2.street_name = "buchanan" 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 on buchanan in san francisco 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 = "san francisco" AND t2.street_name = "buchanan" 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 on buchanan in san francisco 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 = "san francisco" AND t2.street_name = "buchanan" 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 arabic food on buchanan 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 t2.street_name = "buchanan" 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 on buchanan in san francisco 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 = "san francisco" AND t2.street_name = "buchanan" 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 arabic restaurant on buchanan 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 t2.street_name = "buchanan" 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 on buchanan in san francisco 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 = "san francisco" AND t2.street_name = "buchanan" 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 on buchanan in san francisco 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 = "san francisco" AND t2.street_name = "buchanan" 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 on buchanan in san francisco 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 = "san francisco" AND t2.street_name = "buchanan" 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 restaurants on buchanan in san francisco 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 = "san francisco" AND t2.street_name = "buchanan" 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 on buchanan 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 t2.street_name = "buchanan" 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 on buchanan 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 t2.street_name = "buchanan" 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 on buchanan 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 t2.street_name = "buchanan" 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 restaurants good for arabic food on buchanan 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 t2.street_name = "buchanan" 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 on buchanan 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 t2.street_name = "buchanan" 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 on buchanan 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 t2.street_name = "buchanan" 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 on buchanan 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 t2.street_name = "buchanan" 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: 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 french food 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 = "french"; | 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 on bethel island rd in bethel island ?
[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 = "bethel island" AND t2.street_name = "bethel island rd"; | 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 on bethel island rd in bethel island ?
[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 = "bethel island" AND t2.street_name = "bethel island rd"; | 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 we find a restaurant on bethel island rd in bethel island ?
[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 = "bethel island" AND t2.street_name = "bethel island rd"; | 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 we find some restaurants on bethel island rd in bethel island ?
[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 = "bethel island" AND t2.street_name = "bethel island rd"; | 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 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 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 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 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.
|