Question: What are the account details with the largest value or with value having char '5' in it?

ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_budget_codes : budget_type_code (text) , budget_type_description (text) | projects : project_id (number) , project_details (text) | documents : document_id (number) , document_type_code (text) , project_id (number) , document_date (time) , document_name (text) , document_description (text) , other_details (text) | statements : statement_id (number) , statement_details (text) | documents_with_expenses : document_id (number) , budget_type_code (text) , document_details (text) | accounts : account_id (number) , statement_id (number) , account_details (text)

accounts : account_details (text) , account_id (number)


Question: Return the account details with the greatest value, as well as those that include the character 5.

ref_document_types : document_type_code (text) , document_type_name (text) , document_type_description (text) | ref_budget_codes : budget_type_code (text) , budget_type_description (text) | projects : project_id (number) , project_details (text) | documents : document_id (number) , document_type_code (text) , project_id (number) , document_date (time) , document_name (text) , document_description (text) , other_details (text) | statements : statement_id (number) , statement_details (text) | documents_with_expenses : document_id (number) , budget_type_code (text) , document_details (text) | accounts : account_id (number) , statement_id (number) , account_details (text)

accounts : account_details (text) , account_id (number)


Question: Find the total number of scientists.

scientists : ssn (number) , name (text) | projects : code (text) , name (text) , hours (number) | assignedto : scientist (number) , project (text)


Question: How many scientists are there?

scientists : ssn (number) , name (text) | projects : code (text) , name (text) , hours (number) | assignedto : scientist (number) , project (text)


Question: Find the total hours of all projects.

scientists : ssn (number) , name (text) | projects : code (text) , name (text) , hours (number) | assignedto : scientist (number) , project (text)


Question: What is the total number of hours for all projects?

scientists : ssn (number) , name (text) | projects : code (text) , name (text) , hours (number) | assignedto : scientist (number) , project (text)


Question: How many different scientists are assigned to any project?

scientists : ssn (number) , name (text) | projects : code (text) , name (text) , hours (number) | assignedto : scientist (number) , project (text)


Question: Count the number of different scientists assigned to any project.

scientists : ssn (number) , name (text) | projects : code (text) , name (text) , hours (number) | assignedto : scientist (number) , project (text)


Question: Find the number of distinct projects.

scientists : ssn (number) , name (text) | projects : code (text) , name (text) , hours (number) | assignedto : scientist (number) , project (text)


Question: How many different projects are there?

scientists : ssn (number) , name (text) | projects : code (text) , name (text) , hours (number) | assignedto : scientist (number) , project (text)


Question: Find the average hours of all projects.

scientists : ssn (number) , name (text) | projects : code (text) , name (text) , hours (number) | assignedto : scientist (number) , project (text)


Question: What is the average hours across all projects?

scientists : ssn (number) , name (text) | projects : code (text) , name (text) , hours (number) | assignedto : scientist (number) , project (text)


Question: Find the name of project that continues for the longest time.

scientists : ssn (number) , name (text) | projects : code (text) , name (text) , hours (number) | assignedto : scientist (number) , project (text)

projects : name (text) , hours (number) , code (text)


Question: What is the name of the project with the most hours?

scientists : ssn (number) , name (text) | projects : code (text) , name (text) , hours (number) | assignedto : scientist (number) , project (text)

projects : name (text) , hours (number) , code (text)


Question: List the name of all projects that are operated longer than the average working hours of all projects.

scientists : ssn (number) , name (text) | projects : code (text) , name (text) , hours (number) | assignedto : scientist (number) , project (text)

projects : name (text) , hours (number) , code (text)


Question: What are the names of projects that have taken longer than the average number of hours for all projects?

scientists : ssn (number) , name (text) | projects : code (text) , name (text) , hours (number) | assignedto : scientist (number) , project (text)

projects : name (text) , hours (number) , code (text)


Question: Find the name and hours of project that has the most number of scientists.

scientists : ssn (number) , name (text) | projects : code (text) , name (text) , hours (number) | assignedto : scientist (number) , project (text)

projects : name (text) , hours (number) , code (text) | assignedto : project (text) , scientist (number)


Question: What is the name and hours for the project which has the most scientists assigned to it?

scientists : ssn (number) , name (text) | projects : code (text) , name (text) , hours (number) | assignedto : scientist (number) , project (text)

projects : name (text) , hours (number) , code (text) | assignedto : project (text) , scientist (number)


Question: Find the name of the project for which a scientist whose name contains ‘Smith’ is assigned to.

scientists : ssn (number) , name (text) | projects : code (text) , name (text) , hours (number) | assignedto : scientist (number) , project (text)

scientists : name (text) , ssn (number) | projects : name (text) , code (text) | assignedto : project (text) , scientist (number)


Question: What is the name of the project that has a scientist assigned to it whose name contains 'Smith'?

scientists : ssn (number) , name (text) | projects : code (text) , name (text) , hours (number) | assignedto : scientist (number) , project (text)

scientists : name (text) , ssn (number) | projects : name (text) , code (text) | assignedto : project (text) , scientist (number)


Question: Find the total hours of the projects that scientists named Michael Rogers or Carol Smith are assigned to.

scientists : ssn (number) , name (text) | projects : code (text) , name (text) , hours (number) | assignedto : scientist (number) , project (text)

projects : hours (number) , code (text) , name (text) | assignedto : project (text) , scientist (number) | scientists : ssn (number) , name (text)


Question: What is the sum of hours for projects that scientists with the name Michael Rogers or Carol Smith are assigned to?

scientists : ssn (number) , name (text) | projects : code (text) , name (text) , hours (number) | assignedto : scientist (number) , project (text)

projects : hours (number) , code (text) , name (text) | assignedto : project (text) , scientist (number) | scientists : ssn (number) , name (text)


Question: Find the name of projects that require between 100 and 300 hours of work.

scientists : ssn (number) , name (text) | projects : code (text) , name (text) , hours (number) | assignedto : scientist (number) , project (text)

projects : name (text) , hours (number) , code (text)


Question: What are the names of projects that require between 100 and 300 hours?

scientists : ssn (number) , name (text) | projects : code (text) , name (text) , hours (number) | assignedto : scientist (number) , project (text)

projects : name (text) , hours (number) , code (text)


Question: Find the name of the scientist who worked on both a project named 'Matter of Time' and a project named 'A Puzzling Parallax'.

scientists : ssn (number) , name (text) | projects : code (text) , name (text) , hours (number) | assignedto : scientist (number) , project (text)

scientists : name (text) , ssn (number) | projects : name (text) , code (text) | assignedto : project (text) , scientist (number)


Question: What are the names of any scientists who worked on projects named 'Matter of Time' and 'A Puzzling Pattern'?

scientists : ssn (number) , name (text) | projects : code (text) , name (text) , hours (number) | assignedto : scientist (number) , project (text)

scientists : name (text) , ssn (number) | projects : name (text) , code (text) | assignedto : project (text) , scientist (number)


Question: List the names of all scientists sorted in alphabetical order.

scientists : ssn (number) , name (text) | projects : code (text) , name (text) , hours (number) | assignedto : scientist (number) , project (text)


Question: What are the names of all the scientists in alphabetical order?

scientists : ssn (number) , name (text) | projects : code (text) , name (text) , hours (number) | assignedto : scientist (number) , project (text)


Question: Find the number of scientists involved for each project name.

scientists : ssn (number) , name (text) | projects : code (text) , name (text) , hours (number) | assignedto : scientist (number) , project (text)

projects : name (text) , code (text) | assignedto : project (text) , scientist (number)


Question: What are the naems of all the projects, and how many scientists were assigned to each of them?

scientists : ssn (number) , name (text) | projects : code (text) , name (text) , hours (number) | assignedto : scientist (number) , project (text)

projects : name (text) , code (text) | assignedto : project (text) , scientist (number)


Question: Find the number of scientists involved for the projects that require more than 300 hours.

scientists : ssn (number) , name (text) | projects : code (text) , name (text) , hours (number) | assignedto : scientist (number) , project (text)

projects : name (text) , code (text) , hours (number) | assignedto : project (text) , scientist (number)


Question: What are the names of projects that require more than 300 hours, and how many scientists are assigned to each?

scientists : ssn (number) , name (text) | projects : code (text) , name (text) , hours (number) | assignedto : scientist (number) , project (text)

projects : name (text) , code (text) , hours (number) | assignedto : project (text) , scientist (number)


Question: Find the number of projects which each scientist is working on and scientist's name.

scientists : ssn (number) , name (text) | projects : code (text) , name (text) , hours (number) | assignedto : scientist (number) , project (text)

scientists : name (text) , ssn (number) | assignedto : scientist (number)


Question: What are the names of the scientists, and how many projects are each of them working on?

scientists : ssn (number) , name (text) | projects : code (text) , name (text) , hours (number) | assignedto : scientist (number) , project (text)

scientists : name (text) , ssn (number) | assignedto : scientist (number)


Question: Find the SSN and name of scientists who are assigned to the project with the longest hours.

scientists : ssn (number) , name (text) | projects : code (text) , name (text) , hours (number) | assignedto : scientist (number) , project (text)

scientists : ssn (number) , name (text) | projects : name (text) , code (text) , hours (number) | assignedto : project (text) , scientist (number)


Question: What are the SSN and names of scientists working on the project with the most hours?

scientists : ssn (number) , name (text) | projects : code (text) , name (text) , hours (number) | assignedto : scientist (number) , project (text)

scientists : ssn (number) , name (text) | projects : name (text) , code (text) , hours (number) | assignedto : project (text) , scientist (number)


Question: Find the name of scientists who are assigned to some project.

scientists : ssn (number) , name (text) | projects : code (text) , name (text) , hours (number) | assignedto : scientist (number) , project (text)

scientists : name (text) , ssn (number) | assignedto : scientist (number)


Question: What are the names of scientists who are assigned to any project?

scientists : ssn (number) , name (text) | projects : code (text) , name (text) , hours (number) | assignedto : scientist (number) , project (text)

scientists : name (text) , ssn (number) | assignedto : scientist (number)


Question: Select the project names which are not assigned yet.

scientists : ssn (number) , name (text) | projects : code (text) , name (text) , hours (number) | assignedto : scientist (number) , project (text)

projects : name (text) , code (text) | assignedto : project (text) , scientist (number)


Question: What are the names of projects that have not been assigned?

scientists : ssn (number) , name (text) | projects : code (text) , name (text) , hours (number) | assignedto : scientist (number) , project (text)

projects : name (text) , code (text) | assignedto : project (text) , scientist (number)


Question: Find the name of scientists who are not assigned to any project.

scientists : ssn (number) , name (text) | projects : code (text) , name (text) , hours (number) | assignedto : scientist (number) , project (text)

scientists : name (text) , ssn (number) | assignedto : scientist (number)


Question: What are the names of scientists who have not been assigned a project?

scientists : ssn (number) , name (text) | projects : code (text) , name (text) , hours (number) | assignedto : scientist (number) , project (text)

scientists : name (text) , ssn (number) | assignedto : scientist (number)


Question: Find the number of scientists who are not assigned to any project.

scientists : ssn (number) , name (text) | projects : code (text) , name (text) , hours (number) | assignedto : scientist (number) , project (text)

scientists : ssn (number) | assignedto : scientist (number)


Question: How many scientists do not have any projects assigned to them?

scientists : ssn (number) , name (text) | projects : code (text) , name (text) , hours (number) | assignedto : scientist (number) , project (text)

scientists : ssn (number) | assignedto : scientist (number)


Question: Find the names of scientists who are not working on the project with the highest hours.

scientists : ssn (number) , name (text) | projects : code (text) , name (text) , hours (number) | assignedto : scientist (number) , project (text)

scientists : name (text) , ssn (number) | projects : name (text) , code (text) , hours (number) | assignedto : project (text) , scientist (number)


Question: What are the names of scientists who are not working on the project with the most hours?

scientists : ssn (number) , name (text) | projects : code (text) , name (text) , hours (number) | assignedto : scientist (number) , project (text)

scientists : name (text) , ssn (number) | projects : name (text) , code (text) , hours (number) | assignedto : project (text) , scientist (number)


Question: List all the scientists' names, their projects' names, and the hours worked by that scientist on each project, in alphabetical order of project name, and then scientist name.

scientists : ssn (number) , name (text) | projects : code (text) , name (text) , hours (number) | assignedto : scientist (number) , project (text)

scientists : name (text) , ssn (number) | projects : name (text) , hours (number) , code (text) | assignedto : scientist (number) , project (text)


Question: What are the names of each scientist, the names of the projects that they work on, and the hours for each of those projects, listed in alphabetical order by project name, then scientist name.

scientists : ssn (number) , name (text) | projects : code (text) , name (text) , hours (number) | assignedto : scientist (number) , project (text)

scientists : name (text) , ssn (number) | projects : name (text) , hours (number) , code (text) | assignedto : scientist (number) , project (text)


Question: Find name of the project that needs the least amount of time to finish and the name of scientists who worked on it.

scientists : ssn (number) , name (text) | projects : code (text) , name (text) , hours (number) | assignedto : scientist (number) , project (text)

scientists : name (text) , ssn (number) | projects : name (text) , code (text) , hours (number) | assignedto : project (text) , scientist (number)


Question: What is the name of the project that requires the fewest number of hours, and the names of the scientists assigned to it?

scientists : ssn (number) , name (text) | projects : code (text) , name (text) , hours (number) | assignedto : scientist (number) , project (text)

scientists : name (text) , ssn (number) | projects : name (text) , code (text) , hours (number) | assignedto : project (text) , scientist (number)


Question: What is the name of the highest rated wine?

grapes : id (number) , grape (text) , color (text) | appellations : no (number) , appelation (text) , county (text) , state (text) , area (text) , isava (text) | wine : no (number) , grape (text) , winery (text) , appelation (text) , state (text) , name (text) , year (number) , price (number) , score (number) , cases (number) , drink (text)


Question: Give the name of the wine with the highest score.

grapes : id (number) , grape (text) , color (text) | appellations : no (number) , appelation (text) , county (text) , state (text) , area (text) , isava (text) | wine : no (number) , grape (text) , winery (text) , appelation (text) , state (text) , name (text) , year (number) , price (number) , score (number) , cases (number) , drink (text)


Question: Which winery is the wine that has the highest score from?

grapes : id (number) , grape (text) , color (text) | appellations : no (number) , appelation (text) , county (text) , state (text) , area (text) , isava (text) | wine : no (number) , grape (text) , winery (text) , appelation (text) , state (text) , name (text) , year (number) , price (number) , score (number) , cases (number) , drink (text)


Question: What is the winery at which the wine with the highest score was made?

grapes : id (number) , grape (text) , color (text) | appellations : no (number) , appelation (text) , county (text) , state (text) , area (text) , isava (text) | wine : no (number) , grape (text) , winery (text) , appelation (text) , state (text) , name (text) , year (number) , price (number) , score (number) , cases (number) , drink (text)


Question: Find the names of all wines produced in 2008.

grapes : id (number) , grape (text) , color (text) | appellations : no (number) , appelation (text) , county (text) , state (text) , area (text) , isava (text) | wine : no (number) , grape (text) , winery (text) , appelation (text) , state (text) , name (text) , year (number) , price (number) , score (number) , cases (number) , drink (text)


Question: What are the names of all wines produced in 2008?

grapes : id (number) , grape (text) , color (text) | appellations : no (number) , appelation (text) , county (text) , state (text) , area (text) , isava (text) | wine : no (number) , grape (text) , winery (text) , appelation (text) , state (text) , name (text) , year (number) , price (number) , score (number) , cases (number) , drink (text)


Question: List the grapes and appelations of all wines.

grapes : id (number) , grape (text) , color (text) | appellations : no (number) , appelation (text) , county (text) , state (text) , area (text) , isava (text) | wine : no (number) , grape (text) , winery (text) , appelation (text) , state (text) , name (text) , year (number) , price (number) , score (number) , cases (number) , drink (text)


Question: What are the grapes and appelations of each wine?

grapes : id (number) , grape (text) , color (text) | appellations : no (number) , appelation (text) , county (text) , state (text) , area (text) , isava (text) | wine : no (number) , grape (text) , winery (text) , appelation (text) , state (text) , name (text) , year (number) , price (number) , score (number) , cases (number) , drink (text)


Question: List the names and scores of all wines.

grapes : id (number) , grape (text) , color (text) | appellations : no (number) , appelation (text) , county (text) , state (text) , area (text) , isava (text) | wine : no (number) , grape (text) , winery (text) , appelation (text) , state (text) , name (text) , year (number) , price (number) , score (number) , cases (number) , drink (text)


Question: What are the names and scores of all wines?

grapes : id (number) , grape (text) , color (text) | appellations : no (number) , appelation (text) , county (text) , state (text) , area (text) , isava (text) | wine : no (number) , grape (text) , winery (text) , appelation (text) , state (text) , name (text) , year (number) , price (number) , score (number) , cases (number) , drink (text)


Question: List the area and county of all appelations.

grapes : id (number) , grape (text) , color (text) | appellations : no (number) , appelation (text) , county (text) , state (text) , area (text) , isava (text) | wine : no (number) , grape (text) , winery (text) , appelation (text) , state (text) , name (text) , year (number) , price (number) , score (number) , cases (number) , drink (text)

appellations : area (text) , county (text) , no (number)


Question: What are the areas and counties for all appelations?

grapes : id (number) , grape (text) , color (text) | appellations : no (number) , appelation (text) , county (text) , state (text) , area (text) , isava (text) | wine : no (number) , grape (text) , winery (text) , appelation (text) , state (text) , name (text) , year (number) , price (number) , score (number) , cases (number) , drink (text)

appellations : area (text) , county (text) , no (number)


Question: What are the prices of wines produced before the year of 2010?

grapes : id (number) , grape (text) , color (text) | appellations : no (number) , appelation (text) , county (text) , state (text) , area (text) , isava (text) | wine : no (number) , grape (text) , winery (text) , appelation (text) , state (text) , name (text) , year (number) , price (number) , score (number) , cases (number) , drink (text)


Question: Return the prices of wines produced before 2010.

grapes : id (number) , grape (text) , color (text) | appellations : no (number) , appelation (text) , county (text) , state (text) , area (text) , isava (text) | wine : no (number) , grape (text) , winery (text) , appelation (text) , state (text) , name (text) , year (number) , price (number) , score (number) , cases (number) , drink (text)


Question: List the names of all distinct wines that have scores higher than 90.

grapes : id (number) , grape (text) , color (text) | appellations : no (number) , appelation (text) , county (text) , state (text) , area (text) , isava (text) | wine : no (number) , grape (text) , winery (text) , appelation (text) , state (text) , name (text) , year (number) , price (number) , score (number) , cases (number) , drink (text)


Question: What are the names of wines with scores higher than 90?

grapes : id (number) , grape (text) , color (text) | appellations : no (number) , appelation (text) , county (text) , state (text) , area (text) , isava (text) | wine : no (number) , grape (text) , winery (text) , appelation (text) , state (text) , name (text) , year (number) , price (number) , score (number) , cases (number) , drink (text)


Question: List the names of all distinct wines that are made of red color grape.

grapes : id (number) , grape (text) , color (text) | appellations : no (number) , appelation (text) , county (text) , state (text) , area (text) , isava (text) | wine : no (number) , grape (text) , winery (text) , appelation (text) , state (text) , name (text) , year (number) , price (number) , score (number) , cases (number) , drink (text)

wine : name (text) , grape (text) | grapes : grape (text) , color (text) , id (number)


Question: What are the names of wines made from red grapes?

grapes : id (number) , grape (text) , color (text) | appellations : no (number) , appelation (text) , county (text) , state (text) , area (text) , isava (text) | wine : no (number) , grape (text) , winery (text) , appelation (text) , state (text) , name (text) , year (number) , price (number) , score (number) , cases (number) , drink (text)

wine : name (text) , grape (text) | grapes : grape (text) , color (text) , id (number)


Question: Find the names of all distinct wines that have appellations in North Coast area.

grapes : id (number) , grape (text) , color (text) | appellations : no (number) , appelation (text) , county (text) , state (text) , area (text) , isava (text) | wine : no (number) , grape (text) , winery (text) , appelation (text) , state (text) , name (text) , year (number) , price (number) , score (number) , cases (number) , drink (text)

wine : name (text) , appelation (text) | appellations : appelation (text) , area (text) , no (number)


Question: What are the distinct names of wines that have appellations in the North Coast area?

grapes : id (number) , grape (text) , color (text) | appellations : no (number) , appelation (text) , county (text) , state (text) , area (text) , isava (text) | wine : no (number) , grape (text) , winery (text) , appelation (text) , state (text) , name (text) , year (number) , price (number) , score (number) , cases (number) , drink (text)

wine : name (text) , appelation (text) | appellations : appelation (text) , area (text) , no (number)


Question: How many wines are produced at Robert Biale winery?

grapes : id (number) , grape (text) , color (text) | appellations : no (number) , appelation (text) , county (text) , state (text) , area (text) , isava (text) | wine : no (number) , grape (text) , winery (text) , appelation (text) , state (text) , name (text) , year (number) , price (number) , score (number) , cases (number) , drink (text)


Question: Count the number of wines produced at Robert Biale winery.

grapes : id (number) , grape (text) , color (text) | appellations : no (number) , appelation (text) , county (text) , state (text) , area (text) , isava (text) | wine : no (number) , grape (text) , winery (text) , appelation (text) , state (text) , name (text) , year (number) , price (number) , score (number) , cases (number) , drink (text)


Question: How many appelations are in Napa Country?

grapes : id (number) , grape (text) , color (text) | appellations : no (number) , appelation (text) , county (text) , state (text) , area (text) , isava (text) | wine : no (number) , grape (text) , winery (text) , appelation (text) , state (text) , name (text) , year (number) , price (number) , score (number) , cases (number) , drink (text)

appellations : county (text) , no (number)


Question: Count the number of appelations in Napa County.

grapes : id (number) , grape (text) , color (text) | appellations : no (number) , appelation (text) , county (text) , state (text) , area (text) , isava (text) | wine : no (number) , grape (text) , winery (text) , appelation (text) , state (text) , name (text) , year (number) , price (number) , score (number) , cases (number) , drink (text)

appellations : county (text) , no (number)


Question: Give me the average prices of wines that are produced by appelations in Sonoma County.

grapes : id (number) , grape (text) , color (text) | appellations : no (number) , appelation (text) , county (text) , state (text) , area (text) , isava (text) | wine : no (number) , grape (text) , winery (text) , appelation (text) , state (text) , name (text) , year (number) , price (number) , score (number) , cases (number) , drink (text)

wine : price (number) , appelation (text) | appellations : appelation (text) , county (text) , no (number)


Question: What is the average price of wines produced in appelations in Sonoma County?

grapes : id (number) , grape (text) , color (text) | appellations : no (number) , appelation (text) , county (text) , state (text) , area (text) , isava (text) | wine : no (number) , grape (text) , winery (text) , appelation (text) , state (text) , name (text) , year (number) , price (number) , score (number) , cases (number) , drink (text)

wine : price (number) , appelation (text) | appellations : appelation (text) , county (text) , no (number)


Question: What are the names and scores of wines that are made of white color grapes?

grapes : id (number) , grape (text) , color (text) | appellations : no (number) , appelation (text) , county (text) , state (text) , area (text) , isava (text) | wine : no (number) , grape (text) , winery (text) , appelation (text) , state (text) , name (text) , year (number) , price (number) , score (number) , cases (number) , drink (text)

wine : name (text) , score (number) , grape (text) | grapes : grape (text) , color (text) , id (number)


Question: Give the names and scores of wines made from white grapes.

grapes : id (number) , grape (text) , color (text) | appellations : no (number) , appelation (text) , county (text) , state (text) , area (text) , isava (text) | wine : no (number) , grape (text) , winery (text) , appelation (text) , state (text) , name (text) , year (number) , price (number) , score (number) , cases (number) , drink (text)

wine : name (text) , score (number) , grape (text) | grapes : grape (text) , color (text) , id (number)


Question: Find the maximum price of wins from the appelations in Central Coast area and produced before the year of 2005.

grapes : id (number) , grape (text) , color (text) | appellations : no (number) , appelation (text) , county (text) , state (text) , area (text) , isava (text) | wine : no (number) , grape (text) , winery (text) , appelation (text) , state (text) , name (text) , year (number) , price (number) , score (number) , cases (number) , drink (text)

wine : price (number) , appelation (text) , year (number) | appellations : appelation (text) , area (text) , no (number)


Question: What is the maximum price of wines from the appelation in the Central Coast area, which was produced before 2005?

grapes : id (number) , grape (text) , color (text) | appellations : no (number) , appelation (text) , county (text) , state (text) , area (text) , isava (text) | wine : no (number) , grape (text) , winery (text) , appelation (text) , state (text) , name (text) , year (number) , price (number) , score (number) , cases (number) , drink (text)

wine : price (number) , appelation (text) , year (number) | appellations : appelation (text) , area (text) , no (number)


Question: Find the the grape whose white color grapes are used to produce wines with scores higher than 90.

grapes : id (number) , grape (text) , color (text) | appellations : no (number) , appelation (text) , county (text) , state (text) , area (text) , isava (text) | wine : no (number) , grape (text) , winery (text) , appelation (text) , state (text) , name (text) , year (number) , price (number) , score (number) , cases (number) , drink (text)

grapes : grape (text) , color (text) , id (number) | wine : grape (text) , score (number)


Question: Find the white grape used to produce wines with scores above 90.

grapes : id (number) , grape (text) , color (text) | appellations : no (number) , appelation (text) , county (text) , state (text) , area (text) , isava (text) | wine : no (number) , grape (text) , winery (text) , appelation (text) , state (text) , name (text) , year (number) , price (number) , score (number) , cases (number) , drink (text)

grapes : grape (text) , color (text) , id (number) | wine : grape (text) , score (number)


Question: What are the wines that have prices higher than 50 and made of Red color grapes?

grapes : id (number) , grape (text) , color (text) | appellations : no (number) , appelation (text) , county (text) , state (text) , area (text) , isava (text) | wine : no (number) , grape (text) , winery (text) , appelation (text) , state (text) , name (text) , year (number) , price (number) , score (number) , cases (number) , drink (text)

wine : name (text) , grape (text) , price (number) | grapes : grape (text) , color (text) , id (number)


Question: What are the names of wines made from red grapes and with prices above 50?

grapes : id (number) , grape (text) , color (text) | appellations : no (number) , appelation (text) , county (text) , state (text) , area (text) , isava (text) | wine : no (number) , grape (text) , winery (text) , appelation (text) , state (text) , name (text) , year (number) , price (number) , score (number) , cases (number) , drink (text)

wine : name (text) , grape (text) , price (number) | grapes : grape (text) , color (text) , id (number)


Question: What are the wines that have prices lower than 50 and have appelations in Monterey county?

grapes : id (number) , grape (text) , color (text) | appellations : no (number) , appelation (text) , county (text) , state (text) , area (text) , isava (text) | wine : no (number) , grape (text) , winery (text) , appelation (text) , state (text) , name (text) , year (number) , price (number) , score (number) , cases (number) , drink (text)

wine : name (text) , appelation (text) , price (number) | appellations : appelation (text) , county (text) , no (number)


Question: Give the neames of wines with prices below 50 and with appelations in Monterey county.

grapes : id (number) , grape (text) , color (text) | appellations : no (number) , appelation (text) , county (text) , state (text) , area (text) , isava (text) | wine : no (number) , grape (text) , winery (text) , appelation (text) , state (text) , name (text) , year (number) , price (number) , score (number) , cases (number) , drink (text)

wine : name (text) , appelation (text) , price (number) | appellations : appelation (text) , county (text) , no (number)


Question: What are the numbers of wines for different grapes?

grapes : id (number) , grape (text) , color (text) | appellations : no (number) , appelation (text) , county (text) , state (text) , area (text) , isava (text) | wine : no (number) , grape (text) , winery (text) , appelation (text) , state (text) , name (text) , year (number) , price (number) , score (number) , cases (number) , drink (text)


Question: How many wines are there for each grape?

grapes : id (number) , grape (text) , color (text) | appellations : no (number) , appelation (text) , county (text) , state (text) , area (text) , isava (text) | wine : no (number) , grape (text) , winery (text) , appelation (text) , state (text) , name (text) , year (number) , price (number) , score (number) , cases (number) , drink (text)


Question: What are the average prices of wines for different years?

grapes : id (number) , grape (text) , color (text) | appellations : no (number) , appelation (text) , county (text) , state (text) , area (text) , isava (text) | wine : no (number) , grape (text) , winery (text) , appelation (text) , state (text) , name (text) , year (number) , price (number) , score (number) , cases (number) , drink (text)


Question: What is the average prices of wines for each each?

grapes : id (number) , grape (text) , color (text) | appellations : no (number) , appelation (text) , county (text) , state (text) , area (text) , isava (text) | wine : no (number) , grape (text) , winery (text) , appelation (text) , state (text) , name (text) , year (number) , price (number) , score (number) , cases (number) , drink (text)


Question: Find the distinct names of all wines that have prices higher than some wines from John Anthony winery.

grapes : id (number) , grape (text) , color (text) | appellations : no (number) , appelation (text) , county (text) , state (text) , area (text) , isava (text) | wine : no (number) , grape (text) , winery (text) , appelation (text) , state (text) , name (text) , year (number) , price (number) , score (number) , cases (number) , drink (text)

wine : name (text) , price (number) , winery (text)


Question: What are the distinct names of wines with prices higher than any wine from John Anthony winery.

grapes : id (number) , grape (text) , color (text) | appellations : no (number) , appelation (text) , county (text) , state (text) , area (text) , isava (text) | wine : no (number) , grape (text) , winery (text) , appelation (text) , state (text) , name (text) , year (number) , price (number) , score (number) , cases (number) , drink (text)

wine : name (text) , price (number) , winery (text)


Question: List the names of all distinct wines in alphabetical order.

grapes : id (number) , grape (text) , color (text) | appellations : no (number) , appelation (text) , county (text) , state (text) , area (text) , isava (text) | wine : no (number) , grape (text) , winery (text) , appelation (text) , state (text) , name (text) , year (number) , price (number) , score (number) , cases (number) , drink (text)


Question: What are the names of wines, sorted in alphabetical order?

grapes : id (number) , grape (text) , color (text) | appellations : no (number) , appelation (text) , county (text) , state (text) , area (text) , isava (text) | wine : no (number) , grape (text) , winery (text) , appelation (text) , state (text) , name (text) , year (number) , price (number) , score (number) , cases (number) , drink (text)


Question: List the names of all distinct wines ordered by price.

grapes : id (number) , grape (text) , color (text) | appellations : no (number) , appelation (text) , county (text) , state (text) , area (text) , isava (text) | wine : no (number) , grape (text) , winery (text) , appelation (text) , state (text) , name (text) , year (number) , price (number) , score (number) , cases (number) , drink (text)


Question: What are the names of wines, sorted by price ascending?

grapes : id (number) , grape (text) , color (text) | appellations : no (number) , appelation (text) , county (text) , state (text) , area (text) , isava (text) | wine : no (number) , grape (text) , winery (text) , appelation (text) , state (text) , name (text) , year (number) , price (number) , score (number) , cases (number) , drink (text)


Question: What is the area of the appelation that produces the highest number of wines before the year of 2010?

grapes : id (number) , grape (text) , color (text) | appellations : no (number) , appelation (text) , county (text) , state (text) , area (text) , isava (text) | wine : no (number) , grape (text) , winery (text) , appelation (text) , state (text) , name (text) , year (number) , price (number) , score (number) , cases (number) , drink (text)

appellations : area (text) , appelation (text) , no (number) | wine : appelation (text) , year (number)


Question: What is the area for the appelation which produced the most wines prior to 2010?

grapes : id (number) , grape (text) , color (text) | appellations : no (number) , appelation (text) , county (text) , state (text) , area (text) , isava (text) | wine : no (number) , grape (text) , winery (text) , appelation (text) , state (text) , name (text) , year (number) , price (number) , score (number) , cases (number) , drink (text)

appellations : area (text) , appelation (text) , no (number) | wine : appelation (text) , year (number)


Question: What is the color of the grape whose wine products has the highest average price?

grapes : id (number) , grape (text) , color (text) | appellations : no (number) , appelation (text) , county (text) , state (text) , area (text) , isava (text) | wine : no (number) , grape (text) , winery (text) , appelation (text) , state (text) , name (text) , year (number) , price (number) , score (number) , cases (number) , drink (text)

grapes : color (text) , grape (text) , id (number) | wine : grape (text) , price (number)


Question: Give the color of the grape whose wine products have the highest average price?

grapes : id (number) , grape (text) , color (text) | appellations : no (number) , appelation (text) , county (text) , state (text) , area (text) , isava (text) | wine : no (number) , grape (text) , winery (text) , appelation (text) , state (text) , name (text) , year (number) , price (number) , score (number) , cases (number) , drink (text)

grapes : color (text) , grape (text) , id (number) | wine : grape (text) , price (number)


Question: Find the distinct names of wines produced before the year of 2000 or after the year of 2010.

grapes : id (number) , grape (text) , color (text) | appellations : no (number) , appelation (text) , county (text) , state (text) , area (text) , isava (text) | wine : no (number) , grape (text) , winery (text) , appelation (text) , state (text) , name (text) , year (number) , price (number) , score (number) , cases (number) , drink (text)


Question: Give the distinct names of wines made before 2000 or after 2010.

grapes : id (number) , grape (text) , color (text) | appellations : no (number) , appelation (text) , county (text) , state (text) , area (text) , isava (text) | wine : no (number) , grape (text) , winery (text) , appelation (text) , state (text) , name (text) , year (number) , price (number) , score (number) , cases (number) , drink (text)


Question: Find the distinct winery of wines having price between 50 and 100.

grapes : id (number) , grape (text) , color (text) | appellations : no (number) , appelation (text) , county (text) , state (text) , area (text) , isava (text) | wine : no (number) , grape (text) , winery (text) , appelation (text) , state (text) , name (text) , year (number) , price (number) , score (number) , cases (number) , drink (text)


Question: What are the distinct wineries which produce wines costing between 50 and 100?

grapes : id (number) , grape (text) , color (text) | appellations : no (number) , appelation (text) , county (text) , state (text) , area (text) , isava (text) | wine : no (number) , grape (text) , winery (text) , appelation (text) , state (text) , name (text) , year (number) , price (number) , score (number) , cases (number) , drink (text)


Question: What are the average prices and cases of wines produced in the year of 2009 and made of Zinfandel grape?

grapes : id (number) , grape (text) , color (text) | appellations : no (number) , appelation (text) , county (text) , state (text) , area (text) , isava (text) | wine : no (number) , grape (text) , winery (text) , appelation (text) , state (text) , name (text) , year (number) , price (number) , score (number) , cases (number) , drink (text)

wine : price (number) , cases (number) , year (number) , grape (text)


Question: Give the average price and case of wines made from Zinfandel grapes in the year 2009.

grapes : id (number) , grape (text) , color (text) | appellations : no (number) , appelation (text) , county (text) , state (text) , area (text) , isava (text) | wine : no (number) , grape (text) , winery (text) , appelation (text) , state (text) , name (text) , year (number) , price (number) , score (number) , cases (number) , drink (text)

wine : price (number) , cases (number) , year (number) , grape (text)


Question: What are the maximum price and score of wines produced by St. Helena appelation?

grapes : id (number) , grape (text) , color (text) | appellations : no (number) , appelation (text) , county (text) , state (text) , area (text) , isava (text) | wine : no (number) , grape (text) , winery (text) , appelation (text) , state (text) , name (text) , year (number) , price (number) , score (number) , cases (number) , drink (text)

wine : price (number) , score (number) , appelation (text)


Question: Give the maximum price and score for wines produced in the appelation St. Helena.

grapes : id (number) , grape (text) , color (text) | appellations : no (number) , appelation (text) , county (text) , state (text) , area (text) , isava (text) | wine : no (number) , grape (text) , winery (text) , appelation (text) , state (text) , name (text) , year (number) , price (number) , score (number) , cases (number) , drink (text)

wine : price (number) , score (number) , appelation (text)


Question: What are the maximum price and score of wines in each year?

grapes : id (number) , grape (text) , color (text) | appellations : no (number) , appelation (text) , county (text) , state (text) , area (text) , isava (text) | wine : no (number) , grape (text) , winery (text) , appelation (text) , state (text) , name (text) , year (number) , price (number) , score (number) , cases (number) , drink (text)

wine : price (number) , score (number) , year (number)


Question: What are the maximum price and score of wines for each year?

grapes : id (number) , grape (text) , color (text) | appellations : no (number) , appelation (text) , county (text) , state (text) , area (text) , isava (text) | wine : no (number) , grape (text) , winery (text) , appelation (text) , state (text) , name (text) , year (number) , price (number) , score (number) , cases (number) , drink (text)

wine : price (number) , score (number) , year (number)


Question: What are the average price and score of wines grouped by appelation?

grapes : id (number) , grape (text) , color (text) | appellations : no (number) , appelation (text) , county (text) , state (text) , area (text) , isava (text) | wine : no (number) , grape (text) , winery (text) , appelation (text) , state (text) , name (text) , year (number) , price (number) , score (number) , cases (number) , drink (text)

wine : price (number) , score (number) , appelation (text)


Question: What are the average price and score of wines for each appelation?

grapes : id (number) , grape (text) , color (text) | appellations : no (number) , appelation (text) , county (text) , state (text) , area (text) , isava (text) | wine : no (number) , grape (text) , winery (text) , appelation (text) , state (text) , name (text) , year (number) , price (number) , score (number) , cases (number) , drink (text)

wine : price (number) , score (number) , appelation (text)


Question: Find the wineries that have at least four wines.

grapes : id (number) , grape (text) , color (text) | appellations : no (number) , appelation (text) , county (text) , state (text) , area (text) , isava (text) | wine : no (number) , grape (text) , winery (text) , appelation (text) , state (text) , name (text) , year (number) , price (number) , score (number) , cases (number) , drink (text)


Question: Which wineries produce at least four wines?

grapes : id (number) , grape (text) , color (text) | appellations : no (number) , appelation (text) , county (text) , state (text) , area (text) , isava (text) | wine : no (number) , grape (text) , winery (text) , appelation (text) , state (text) , name (text) , year (number) , price (number) , score (number) , cases (number) , drink (text)


Question: Find the country of all appelations who have at most three wines.

grapes : id (number) , grape (text) , color (text) | appellations : no (number) , appelation (text) , county (text) , state (text) , area (text) , isava (text) | wine : no (number) , grape (text) , winery (text) , appelation (text) , state (text) , name (text) , year (number) , price (number) , score (number) , cases (number) , drink (text)

appellations : county (text) , appelation (text) , no (number) | wine : appelation (text)


Question: What are the countries for appelations with at most 3 wines?

grapes : id (number) , grape (text) , color (text) | appellations : no (number) , appelation (text) , county (text) , state (text) , area (text) , isava (text) | wine : no (number) , grape (text) , winery (text) , appelation (text) , state (text) , name (text) , year (number) , price (number) , score (number) , cases (number) , drink (text)

appellations : county (text) , appelation (text) , no (number) | wine : appelation (text)


Question: What are the names of wines whose production year are before the year of all wines by Brander winery?

grapes : id (number) , grape (text) , color (text) | appellations : no (number) , appelation (text) , county (text) , state (text) , area (text) , isava (text) | wine : no (number) , grape (text) , winery (text) , appelation (text) , state (text) , name (text) , year (number) , price (number) , score (number) , cases (number) , drink (text)

wine : name (text) , year (number) , winery (text)


Question: What are the names of wines produced before any wine from the Brander winery?

grapes : id (number) , grape (text) , color (text) | appellations : no (number) , appelation (text) , county (text) , state (text) , area (text) , isava (text) | wine : no (number) , grape (text) , winery (text) , appelation (text) , state (text) , name (text) , year (number) , price (number) , score (number) , cases (number) , drink (text)

wine : name (text) , year (number) , winery (text)


Question: What are the names of wines that are more expensive then all wines made in the year 2006?

grapes : id (number) , grape (text) , color (text) | appellations : no (number) , appelation (text) , county (text) , state (text) , area (text) , isava (text) | wine : no (number) , grape (text) , winery (text) , appelation (text) , state (text) , name (text) , year (number) , price (number) , score (number) , cases (number) , drink (text)

wine : name (text) , price (number) , year (number)


Question: Give the names of wines with prices above any wine produced in 2006.

grapes : id (number) , grape (text) , color (text) | appellations : no (number) , appelation (text) , county (text) , state (text) , area (text) , isava (text) | wine : no (number) , grape (text) , winery (text) , appelation (text) , state (text) , name (text) , year (number) , price (number) , score (number) , cases (number) , drink (text)

wine : name (text) , price (number) , year (number)


Question: Find the top 3 wineries with the greatest number of wines made of white color grapes.

grapes : id (number) , grape (text) , color (text) | appellations : no (number) , appelation (text) , county (text) , state (text) , area (text) , isava (text) | wine : no (number) , grape (text) , winery (text) , appelation (text) , state (text) , name (text) , year (number) , price (number) , score (number) , cases (number) , drink (text)

wine : winery (text) , grape (text) | grapes : grape (text) , color (text) , id (number)


Question: Which 3 wineries produce the most wines made from white grapes?

grapes : id (number) , grape (text) , color (text) | appellations : no (number) , appelation (text) , county (text) , state (text) , area (text) , isava (text) | wine : no (number) , grape (text) , winery (text) , appelation (text) , state (text) , name (text) , year (number) , price (number) , score (number) , cases (number) , drink (text)

wine : winery (text) , grape (text) | grapes : grape (text) , color (text) , id (number)


Question: List the grape, winery and year of the wines whose price is bigger than 100 ordered by year.

grapes : id (number) , grape (text) , color (text) | appellations : no (number) , appelation (text) , county (text) , state (text) , area (text) , isava (text) | wine : no (number) , grape (text) , winery (text) , appelation (text) , state (text) , name (text) , year (number) , price (number) , score (number) , cases (number) , drink (text)

wine : grape (text) , winery (text) , year (number) , price (number)


Question: What are the grapes, wineries and years for wines with price higher than 100, sorted by year?

grapes : id (number) , grape (text) , color (text) | appellations : no (number) , appelation (text) , county (text) , state (text) , area (text) , isava (text) | wine : no (number) , grape (text) , winery (text) , appelation (text) , state (text) , name (text) , year (number) , price (number) , score (number) , cases (number) , drink (text)

wine : grape (text) , winery (text) , year (number) , price (number)


Question: List the grape, appelation and name of wines whose score is higher than 93 ordered by Name.

grapes : id (number) , grape (text) , color (text) | appellations : no (number) , appelation (text) , county (text) , state (text) , area (text) , isava (text) | wine : no (number) , grape (text) , winery (text) , appelation (text) , state (text) , name (text) , year (number) , price (number) , score (number) , cases (number) , drink (text)

wine : grape (text) , appelation (text) , name (text) , score (number)


Question: What are the grapes, appelations, and wines with scores above 93, sorted by Name?

grapes : id (number) , grape (text) , color (text) | appellations : no (number) , appelation (text) , county (text) , state (text) , area (text) , isava (text) | wine : no (number) , grape (text) , winery (text) , appelation (text) , state (text) , name (text) , year (number) , price (number) , score (number) , cases (number) , drink (text)

wine : grape (text) , appelation (text) , name (text) , score (number)


Question: Find the appelations that produce wines after the year of 2008 but not in Central Coast area.

grapes : id (number) , grape (text) , color (text) | appellations : no (number) , appelation (text) , county (text) , state (text) , area (text) , isava (text) | wine : no (number) , grape (text) , winery (text) , appelation (text) , state (text) , name (text) , year (number) , price (number) , score (number) , cases (number) , drink (text)

appellations : appelation (text) , area (text) , no (number) | wine : appelation (text) , year (number)


Question: What are the appelations for wines produced after 2008 but not in the Central Coast area?

grapes : id (number) , grape (text) , color (text) | appellations : no (number) , appelation (text) , county (text) , state (text) , area (text) , isava (text) | wine : no (number) , grape (text) , winery (text) , appelation (text) , state (text) , name (text) , year (number) , price (number) , score (number) , cases (number) , drink (text)

appellations : appelation (text) , area (text) , no (number) | wine : appelation (text) , year (number)


Question: Find the average price of wines that are not produced from Sonoma county.

grapes : id (number) , grape (text) , color (text) | appellations : no (number) , appelation (text) , county (text) , state (text) , area (text) , isava (text) | wine : no (number) , grape (text) , winery (text) , appelation (text) , state (text) , name (text) , year (number) , price (number) , score (number) , cases (number) , drink (text)

wine : price (number) , appelation (text) | appellations : appelation (text) , county (text) , no (number)


Question: What is the average price for wines not produced in Sonoma county?

grapes : id (number) , grape (text) , color (text) | appellations : no (number) , appelation (text) , county (text) , state (text) , area (text) , isava (text) | wine : no (number) , grape (text) , winery (text) , appelation (text) , state (text) , name (text) , year (number) , price (number) , score (number) , cases (number) , drink (text)

wine : price (number) , appelation (text) | appellations : appelation (text) , county (text) , no (number)


Question: Find the county where produces the most number of wines with score higher than 90.

grapes : id (number) , grape (text) , color (text) | appellations : no (number) , appelation (text) , county (text) , state (text) , area (text) , isava (text) | wine : no (number) , grape (text) , winery (text) , appelation (text) , state (text) , name (text) , year (number) , price (number) , score (number) , cases (number) , drink (text)

appellations : county (text) , appelation (text) , no (number) | wine : appelation (text) , score (number)


Question: What is the county that produces the most wines scoring higher than 90?

grapes : id (number) , grape (text) , color (text) | appellations : no (number) , appelation (text) , county (text) , state (text) , area (text) , isava (text) | wine : no (number) , grape (text) , winery (text) , appelation (text) , state (text) , name (text) , year (number) , price (number) , score (number) , cases (number) , drink (text)

appellations : county (text) , appelation (text) , no (number) | wine : appelation (text) , score (number)


Question: How many train stations are there?

station : station_id (number) , name (text) , annual_entry_exit (number) , annual_interchanges (number) , total_passengers (number) , location (text) , main_services (text) , number_of_platforms (number) | train : train_id (number) , name (text) , time (text) , service (text) | train_station : train_id (number) , station_id (number)


Question: Show the name, location, and number of platforms for all stations.

station : station_id (number) , name (text) , annual_entry_exit (number) , annual_interchanges (number) , total_passengers (number) , location (text) , main_services (text) , number_of_platforms (number) | train : train_id (number) , name (text) , time (text) , service (text) | train_station : train_id (number) , station_id (number)

station : name (text) , location (text) , number_of_platforms (number) , station_id (number)


Question: What are all locations of train stations?

station : station_id (number) , name (text) , annual_entry_exit (number) , annual_interchanges (number) , total_passengers (number) , location (text) , main_services (text) , number_of_platforms (number) | train : train_id (number) , name (text) , time (text) , service (text) | train_station : train_id (number) , station_id (number)

station : location (text) , station_id (number)


Question: Show the names and total passengers for all train stations not in London.

station : station_id (number) , name (text) , annual_entry_exit (number) , annual_interchanges (number) , total_passengers (number) , location (text) , main_services (text) , number_of_platforms (number) | train : train_id (number) , name (text) , time (text) , service (text) | train_station : train_id (number) , station_id (number)

station : name (text) , total_passengers (number) , location (text) , station_id (number)


Question: Show the names and main services for train stations that have the top three total number of passengers.

station : station_id (number) , name (text) , annual_entry_exit (number) , annual_interchanges (number) , total_passengers (number) , location (text) , main_services (text) , number_of_platforms (number) | train : train_id (number) , name (text) , time (text) , service (text) | train_station : train_id (number) , station_id (number)

station : name (text) , main_services (text) , total_passengers (number) , station_id (number)


Question: What is the average and maximum number of total passengers for train stations in London or Glasgow?

station : station_id (number) , name (text) , annual_entry_exit (number) , annual_interchanges (number) , total_passengers (number) , location (text) , main_services (text) , number_of_platforms (number) | train : train_id (number) , name (text) , time (text) , service (text) | train_station : train_id (number) , station_id (number)

station : total_passengers (number) , location (text) , station_id (number)


Question: Show all locations and the total number of platforms and passengers for all train stations in each location.

station : station_id (number) , name (text) , annual_entry_exit (number) , annual_interchanges (number) , total_passengers (number) , location (text) , main_services (text) , number_of_platforms (number) | train : train_id (number) , name (text) , time (text) , service (text) | train_station : train_id (number) , station_id (number)

station : location (text) , number_of_platforms (number) , total_passengers (number) , station_id (number)


Question: Show all locations that have train stations with at least 15 platforms and train stations with more than 25 total passengers.

station : station_id (number) , name (text) , annual_entry_exit (number) , annual_interchanges (number) , total_passengers (number) , location (text) , main_services (text) , number_of_platforms (number) | train : train_id (number) , name (text) , time (text) , service (text) | train_station : train_id (number) , station_id (number)

station : location (text) , number_of_platforms (number) , total_passengers (number) , station_id (number)


Question: Show all locations which don't have a train station with at least 15 platforms.

station : station_id (number) , name (text) , annual_entry_exit (number) , annual_interchanges (number) , total_passengers (number) , location (text) , main_services (text) , number_of_platforms (number) | train : train_id (number) , name (text) , time (text) , service (text) | train_station : train_id (number) , station_id (number)

station : location (text) , number_of_platforms (number) , station_id (number)


Question: Show the location with most number of train stations.

station : station_id (number) , name (text) , annual_entry_exit (number) , annual_interchanges (number) , total_passengers (number) , location (text) , main_services (text) , number_of_platforms (number) | train : train_id (number) , name (text) , time (text) , service (text) | train_station : train_id (number) , station_id (number)

station : location (text) , station_id (number)


Question: Show the name, time, and service for all trains.

station : station_id (number) , name (text) , annual_entry_exit (number) , annual_interchanges (number) , total_passengers (number) , location (text) , main_services (text) , number_of_platforms (number) | train : train_id (number) , name (text) , time (text) , service (text) | train_station : train_id (number) , station_id (number)

train : name (text) , time (text) , service (text) , train_id (number)


Question: Show the number of trains

station : station_id (number) , name (text) , annual_entry_exit (number) , annual_interchanges (number) , total_passengers (number) , location (text) , main_services (text) , number_of_platforms (number) | train : train_id (number) , name (text) , time (text) , service (text) | train_station : train_id (number) , station_id (number)


Question: Show the name and service for all trains in order by time.

station : station_id (number) , name (text) , annual_entry_exit (number) , annual_interchanges (number) , total_passengers (number) , location (text) , main_services (text) , number_of_platforms (number) | train : train_id (number) , name (text) , time (text) , service (text) | train_station : train_id (number) , station_id (number)

train : name (text) , service (text) , time (text) , train_id (number)


Question: Show the station name and number of trains in each station.

station : station_id (number) , name (text) , annual_entry_exit (number) , annual_interchanges (number) , total_passengers (number) , location (text) , main_services (text) , number_of_platforms (number) | train : train_id (number) , name (text) , time (text) , service (text) | train_station : train_id (number) , station_id (number)

station : name (text) , station_id (number) | train_station : station_id (number) , train_id (number)


Question: show the train name and station name for each train.

station : station_id (number) , name (text) , annual_entry_exit (number) , annual_interchanges (number) , total_passengers (number) , location (text) , main_services (text) , number_of_platforms (number) | train : train_id (number) , name (text) , time (text) , service (text) | train_station : train_id (number) , station_id (number)

station : name (text) , station_id (number) | train : name (text) , train_id (number) | train_station : station_id (number) , train_id (number)


Question: Show all train names and times in stations in London in descending order by train time.

station : station_id (number) , name (text) , annual_entry_exit (number) , annual_interchanges (number) , total_passengers (number) , location (text) , main_services (text) , number_of_platforms (number) | train : train_id (number) , name (text) , time (text) , service (text) | train_station : train_id (number) , station_id (number)

station : name (text) , station_id (number) , location (text) | train : name (text) , time (text) , train_id (number) | train_station : station_id (number) , train_id (number)


Question: Show the station name with greatest number of trains.

station : station_id (number) , name (text) , annual_entry_exit (number) , annual_interchanges (number) , total_passengers (number) , location (text) , main_services (text) , number_of_platforms (number) | train : train_id (number) , name (text) , time (text) , service (text) | train_station : train_id (number) , station_id (number)

station : name (text) , station_id (number) | train_station : station_id (number) , train_id (number)


Question: Show the station name with at least two trains.

station : station_id (number) , name (text) , annual_entry_exit (number) , annual_interchanges (number) , total_passengers (number) , location (text) , main_services (text) , number_of_platforms (number) | train : train_id (number) , name (text) , time (text) , service (text) | train_station : train_id (number) , station_id (number)

station : name (text) , station_id (number) | train_station : station_id (number) , train_id (number)


Question: Show all locations with only 1 station.

station : station_id (number) , name (text) , annual_entry_exit (number) , annual_interchanges (number) , total_passengers (number) , location (text) , main_services (text) , number_of_platforms (number) | train : train_id (number) , name (text) , time (text) , service (text) | train_station : train_id (number) , station_id (number)

station : location (text) , station_id (number)


Question: Show station names without any trains.

station : station_id (number) , name (text) , annual_entry_exit (number) , annual_interchanges (number) , total_passengers (number) , location (text) , main_services (text) , number_of_platforms (number) | train : train_id (number) , name (text) , time (text) , service (text) | train_station : train_id (number) , station_id (number)

station : name (text) , station_id (number) | train_station : station_id (number) , train_id (number)


Question: What are the names of the stations which serve both "Ananthapuri Express" and "Guruvayur Express" trains?

station : station_id (number) , name (text) , annual_entry_exit (number) , annual_interchanges (number) , total_passengers (number) , location (text) , main_services (text) , number_of_platforms (number) | train : train_id (number) , name (text) , time (text) , service (text) | train_station : train_id (number) , station_id (number)

station : name (text) , station_id (number) | train : name (text) , train_id (number) | train_station : station_id (number) , train_id (number)


Question: Find the names of the trains that do not pass any station located in London.

station : station_id (number) , name (text) , annual_entry_exit (number) , annual_interchanges (number) , total_passengers (number) , location (text) , main_services (text) , number_of_platforms (number) | train : train_id (number) , name (text) , time (text) , service (text) | train_station : train_id (number) , station_id (number)

station : name (text) , station_id (number) , location (text) | train : name (text) , train_id (number) | train_station : train_id (number) , station_id (number)


Question: List the names and locations of all stations ordered by their yearly entry exit and interchange amounts.

station : station_id (number) , name (text) , annual_entry_exit (number) , annual_interchanges (number) , total_passengers (number) , location (text) , main_services (text) , number_of_platforms (number) | train : train_id (number) , name (text) , time (text) , service (text) | train_station : train_id (number) , station_id (number)

station : name (text) , location (text) , annual_entry_exit (number) , annual_interchanges (number) , station_id (number)


Question: List all vehicle id

addresses : address_id (number) , line_1_number_building (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | staff : staff_id (number) , staff_address_id (number) , nickname (text) , first_name (text) , middle_name (text) , last_name (text) , date_of_birth (time) , date_joined_staff (time) , date_left_staff (time) | vehicles : vehicle_id (number) , vehicle_details (text) | customers : customer_id (number) , customer_address_id (number) , customer_status_code (text) , date_became_customer (time) , date_of_birth (time) , first_name (text) , last_name (text) , amount_outstanding (number) , email_address (text) , phone_number (text) , cell_mobile_phone_number (text) | customer_payments : customer_id (number) , datetime_payment (time) , payment_method_code (text) , amount_payment (number) | lessons : lesson_id (number) , customer_id (number) , lesson_status_code (text) , staff_id (number) , vehicle_id (number) , lesson_date (time) , lesson_time (text) , price (number)


Question: What are the ids of all vehicles?

addresses : address_id (number) , line_1_number_building (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | staff : staff_id (number) , staff_address_id (number) , nickname (text) , first_name (text) , middle_name (text) , last_name (text) , date_of_birth (time) , date_joined_staff (time) , date_left_staff (time) | vehicles : vehicle_id (number) , vehicle_details (text) | customers : customer_id (number) , customer_address_id (number) , customer_status_code (text) , date_became_customer (time) , date_of_birth (time) , first_name (text) , last_name (text) , amount_outstanding (number) , email_address (text) , phone_number (text) , cell_mobile_phone_number (text) | customer_payments : customer_id (number) , datetime_payment (time) , payment_method_code (text) , amount_payment (number) | lessons : lesson_id (number) , customer_id (number) , lesson_status_code (text) , staff_id (number) , vehicle_id (number) , lesson_date (time) , lesson_time (text) , price (number)


Question: How many vehicle in total?

addresses : address_id (number) , line_1_number_building (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | staff : staff_id (number) , staff_address_id (number) , nickname (text) , first_name (text) , middle_name (text) , last_name (text) , date_of_birth (time) , date_joined_staff (time) , date_left_staff (time) | vehicles : vehicle_id (number) , vehicle_details (text) | customers : customer_id (number) , customer_address_id (number) , customer_status_code (text) , date_became_customer (time) , date_of_birth (time) , first_name (text) , last_name (text) , amount_outstanding (number) , email_address (text) , phone_number (text) , cell_mobile_phone_number (text) | customer_payments : customer_id (number) , datetime_payment (time) , payment_method_code (text) , amount_payment (number) | lessons : lesson_id (number) , customer_id (number) , lesson_status_code (text) , staff_id (number) , vehicle_id (number) , lesson_date (time) , lesson_time (text) , price (number)


Question: How many vehicles exist?

addresses : address_id (number) , line_1_number_building (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | staff : staff_id (number) , staff_address_id (number) , nickname (text) , first_name (text) , middle_name (text) , last_name (text) , date_of_birth (time) , date_joined_staff (time) , date_left_staff (time) | vehicles : vehicle_id (number) , vehicle_details (text) | customers : customer_id (number) , customer_address_id (number) , customer_status_code (text) , date_became_customer (time) , date_of_birth (time) , first_name (text) , last_name (text) , amount_outstanding (number) , email_address (text) , phone_number (text) , cell_mobile_phone_number (text) | customer_payments : customer_id (number) , datetime_payment (time) , payment_method_code (text) , amount_payment (number) | lessons : lesson_id (number) , customer_id (number) , lesson_status_code (text) , staff_id (number) , vehicle_id (number) , lesson_date (time) , lesson_time (text) , price (number)


Question: Show the detail of vehicle with id 1.

addresses : address_id (number) , line_1_number_building (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | staff : staff_id (number) , staff_address_id (number) , nickname (text) , first_name (text) , middle_name (text) , last_name (text) , date_of_birth (time) , date_joined_staff (time) , date_left_staff (time) | vehicles : vehicle_id (number) , vehicle_details (text) | customers : customer_id (number) , customer_address_id (number) , customer_status_code (text) , date_became_customer (time) , date_of_birth (time) , first_name (text) , last_name (text) , amount_outstanding (number) , email_address (text) , phone_number (text) , cell_mobile_phone_number (text) | customer_payments : customer_id (number) , datetime_payment (time) , payment_method_code (text) , amount_payment (number) | lessons : lesson_id (number) , customer_id (number) , lesson_status_code (text) , staff_id (number) , vehicle_id (number) , lesson_date (time) , lesson_time (text) , price (number)

vehicles : vehicle_details (text) , vehicle_id (number)


Question: What are the details of the car with id 1?

addresses : address_id (number) , line_1_number_building (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | staff : staff_id (number) , staff_address_id (number) , nickname (text) , first_name (text) , middle_name (text) , last_name (text) , date_of_birth (time) , date_joined_staff (time) , date_left_staff (time) | vehicles : vehicle_id (number) , vehicle_details (text) | customers : customer_id (number) , customer_address_id (number) , customer_status_code (text) , date_became_customer (time) , date_of_birth (time) , first_name (text) , last_name (text) , amount_outstanding (number) , email_address (text) , phone_number (text) , cell_mobile_phone_number (text) | customer_payments : customer_id (number) , datetime_payment (time) , payment_method_code (text) , amount_payment (number) | lessons : lesson_id (number) , customer_id (number) , lesson_status_code (text) , staff_id (number) , vehicle_id (number) , lesson_date (time) , lesson_time (text) , price (number)

vehicles : vehicle_details (text) , vehicle_id (number)


Question: List the first name middle name and last name of all staff.

addresses : address_id (number) , line_1_number_building (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | staff : staff_id (number) , staff_address_id (number) , nickname (text) , first_name (text) , middle_name (text) , last_name (text) , date_of_birth (time) , date_joined_staff (time) , date_left_staff (time) | vehicles : vehicle_id (number) , vehicle_details (text) | customers : customer_id (number) , customer_address_id (number) , customer_status_code (text) , date_became_customer (time) , date_of_birth (time) , first_name (text) , last_name (text) , amount_outstanding (number) , email_address (text) , phone_number (text) , cell_mobile_phone_number (text) | customer_payments : customer_id (number) , datetime_payment (time) , payment_method_code (text) , amount_payment (number) | lessons : lesson_id (number) , customer_id (number) , lesson_status_code (text) , staff_id (number) , vehicle_id (number) , lesson_date (time) , lesson_time (text) , price (number)

staff : first_name (text) , middle_name (text) , last_name (text) , staff_id (number)


Question: What are the first, middle, and last names of all staff?

addresses : address_id (number) , line_1_number_building (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | staff : staff_id (number) , staff_address_id (number) , nickname (text) , first_name (text) , middle_name (text) , last_name (text) , date_of_birth (time) , date_joined_staff (time) , date_left_staff (time) | vehicles : vehicle_id (number) , vehicle_details (text) | customers : customer_id (number) , customer_address_id (number) , customer_status_code (text) , date_became_customer (time) , date_of_birth (time) , first_name (text) , last_name (text) , amount_outstanding (number) , email_address (text) , phone_number (text) , cell_mobile_phone_number (text) | customer_payments : customer_id (number) , datetime_payment (time) , payment_method_code (text) , amount_payment (number) | lessons : lesson_id (number) , customer_id (number) , lesson_status_code (text) , staff_id (number) , vehicle_id (number) , lesson_date (time) , lesson_time (text) , price (number)

staff : first_name (text) , middle_name (text) , last_name (text) , staff_id (number)


Question: What is the birthday of the staff member with first name as Janessa and last name as Sawayn?

addresses : address_id (number) , line_1_number_building (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | staff : staff_id (number) , staff_address_id (number) , nickname (text) , first_name (text) , middle_name (text) , last_name (text) , date_of_birth (time) , date_joined_staff (time) , date_left_staff (time) | vehicles : vehicle_id (number) , vehicle_details (text) | customers : customer_id (number) , customer_address_id (number) , customer_status_code (text) , date_became_customer (time) , date_of_birth (time) , first_name (text) , last_name (text) , amount_outstanding (number) , email_address (text) , phone_number (text) , cell_mobile_phone_number (text) | customer_payments : customer_id (number) , datetime_payment (time) , payment_method_code (text) , amount_payment (number) | lessons : lesson_id (number) , customer_id (number) , lesson_status_code (text) , staff_id (number) , vehicle_id (number) , lesson_date (time) , lesson_time (text) , price (number)

staff : date_of_birth (time) , first_name (text) , last_name (text) , staff_id (number)


Question: What is the date of birth for the staff member named Janessa Sawayn?

addresses : address_id (number) , line_1_number_building (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | staff : staff_id (number) , staff_address_id (number) , nickname (text) , first_name (text) , middle_name (text) , last_name (text) , date_of_birth (time) , date_joined_staff (time) , date_left_staff (time) | vehicles : vehicle_id (number) , vehicle_details (text) | customers : customer_id (number) , customer_address_id (number) , customer_status_code (text) , date_became_customer (time) , date_of_birth (time) , first_name (text) , last_name (text) , amount_outstanding (number) , email_address (text) , phone_number (text) , cell_mobile_phone_number (text) | customer_payments : customer_id (number) , datetime_payment (time) , payment_method_code (text) , amount_payment (number) | lessons : lesson_id (number) , customer_id (number) , lesson_status_code (text) , staff_id (number) , vehicle_id (number) , lesson_date (time) , lesson_time (text) , price (number)

staff : date_of_birth (time) , first_name (text) , last_name (text) , staff_id (number)


Question: When did the staff member with first name as Janessa and last name as Sawayn join the company?

addresses : address_id (number) , line_1_number_building (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | staff : staff_id (number) , staff_address_id (number) , nickname (text) , first_name (text) , middle_name (text) , last_name (text) , date_of_birth (time) , date_joined_staff (time) , date_left_staff (time) | vehicles : vehicle_id (number) , vehicle_details (text) | customers : customer_id (number) , customer_address_id (number) , customer_status_code (text) , date_became_customer (time) , date_of_birth (time) , first_name (text) , last_name (text) , amount_outstanding (number) , email_address (text) , phone_number (text) , cell_mobile_phone_number (text) | customer_payments : customer_id (number) , datetime_payment (time) , payment_method_code (text) , amount_payment (number) | lessons : lesson_id (number) , customer_id (number) , lesson_status_code (text) , staff_id (number) , vehicle_id (number) , lesson_date (time) , lesson_time (text) , price (number)

staff : date_joined_staff (time) , first_name (text) , last_name (text) , staff_id (number)


Question: When did the staff member named Janessa Sawayn join the company?

addresses : address_id (number) , line_1_number_building (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | staff : staff_id (number) , staff_address_id (number) , nickname (text) , first_name (text) , middle_name (text) , last_name (text) , date_of_birth (time) , date_joined_staff (time) , date_left_staff (time) | vehicles : vehicle_id (number) , vehicle_details (text) | customers : customer_id (number) , customer_address_id (number) , customer_status_code (text) , date_became_customer (time) , date_of_birth (time) , first_name (text) , last_name (text) , amount_outstanding (number) , email_address (text) , phone_number (text) , cell_mobile_phone_number (text) | customer_payments : customer_id (number) , datetime_payment (time) , payment_method_code (text) , amount_payment (number) | lessons : lesson_id (number) , customer_id (number) , lesson_status_code (text) , staff_id (number) , vehicle_id (number) , lesson_date (time) , lesson_time (text) , price (number)

staff : date_joined_staff (time) , first_name (text) , last_name (text) , staff_id (number)


Question: When did the staff member with first name as Janessa and last name as Sawayn leave the company?

addresses : address_id (number) , line_1_number_building (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | staff : staff_id (number) , staff_address_id (number) , nickname (text) , first_name (text) , middle_name (text) , last_name (text) , date_of_birth (time) , date_joined_staff (time) , date_left_staff (time) | vehicles : vehicle_id (number) , vehicle_details (text) | customers : customer_id (number) , customer_address_id (number) , customer_status_code (text) , date_became_customer (time) , date_of_birth (time) , first_name (text) , last_name (text) , amount_outstanding (number) , email_address (text) , phone_number (text) , cell_mobile_phone_number (text) | customer_payments : customer_id (number) , datetime_payment (time) , payment_method_code (text) , amount_payment (number) | lessons : lesson_id (number) , customer_id (number) , lesson_status_code (text) , staff_id (number) , vehicle_id (number) , lesson_date (time) , lesson_time (text) , price (number)

staff : date_left_staff (time) , first_name (text) , last_name (text) , staff_id (number)


Question: When did the staff member Janessa Sawayn leave the company?

addresses : address_id (number) , line_1_number_building (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | staff : staff_id (number) , staff_address_id (number) , nickname (text) , first_name (text) , middle_name (text) , last_name (text) , date_of_birth (time) , date_joined_staff (time) , date_left_staff (time) | vehicles : vehicle_id (number) , vehicle_details (text) | customers : customer_id (number) , customer_address_id (number) , customer_status_code (text) , date_became_customer (time) , date_of_birth (time) , first_name (text) , last_name (text) , amount_outstanding (number) , email_address (text) , phone_number (text) , cell_mobile_phone_number (text) | customer_payments : customer_id (number) , datetime_payment (time) , payment_method_code (text) , amount_payment (number) | lessons : lesson_id (number) , customer_id (number) , lesson_status_code (text) , staff_id (number) , vehicle_id (number) , lesson_date (time) , lesson_time (text) , price (number)

staff : date_left_staff (time) , first_name (text) , last_name (text) , staff_id (number)


Question: How many staff have the first name Ludie?

addresses : address_id (number) , line_1_number_building (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | staff : staff_id (number) , staff_address_id (number) , nickname (text) , first_name (text) , middle_name (text) , last_name (text) , date_of_birth (time) , date_joined_staff (time) , date_left_staff (time) | vehicles : vehicle_id (number) , vehicle_details (text) | customers : customer_id (number) , customer_address_id (number) , customer_status_code (text) , date_became_customer (time) , date_of_birth (time) , first_name (text) , last_name (text) , amount_outstanding (number) , email_address (text) , phone_number (text) , cell_mobile_phone_number (text) | customer_payments : customer_id (number) , datetime_payment (time) , payment_method_code (text) , amount_payment (number) | lessons : lesson_id (number) , customer_id (number) , lesson_status_code (text) , staff_id (number) , vehicle_id (number) , lesson_date (time) , lesson_time (text) , price (number)

staff : first_name (text) , staff_id (number)


Question: How many employees have a first name of Ludie?

addresses : address_id (number) , line_1_number_building (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | staff : staff_id (number) , staff_address_id (number) , nickname (text) , first_name (text) , middle_name (text) , last_name (text) , date_of_birth (time) , date_joined_staff (time) , date_left_staff (time) | vehicles : vehicle_id (number) , vehicle_details (text) | customers : customer_id (number) , customer_address_id (number) , customer_status_code (text) , date_became_customer (time) , date_of_birth (time) , first_name (text) , last_name (text) , amount_outstanding (number) , email_address (text) , phone_number (text) , cell_mobile_phone_number (text) | customer_payments : customer_id (number) , datetime_payment (time) , payment_method_code (text) , amount_payment (number) | lessons : lesson_id (number) , customer_id (number) , lesson_status_code (text) , staff_id (number) , vehicle_id (number) , lesson_date (time) , lesson_time (text) , price (number)

staff : first_name (text) , staff_id (number)


Question: What is the nickname of staff with first name as Janessa and last name as Sawayn?

addresses : address_id (number) , line_1_number_building (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | staff : staff_id (number) , staff_address_id (number) , nickname (text) , first_name (text) , middle_name (text) , last_name (text) , date_of_birth (time) , date_joined_staff (time) , date_left_staff (time) | vehicles : vehicle_id (number) , vehicle_details (text) | customers : customer_id (number) , customer_address_id (number) , customer_status_code (text) , date_became_customer (time) , date_of_birth (time) , first_name (text) , last_name (text) , amount_outstanding (number) , email_address (text) , phone_number (text) , cell_mobile_phone_number (text) | customer_payments : customer_id (number) , datetime_payment (time) , payment_method_code (text) , amount_payment (number) | lessons : lesson_id (number) , customer_id (number) , lesson_status_code (text) , staff_id (number) , vehicle_id (number) , lesson_date (time) , lesson_time (text) , price (number)

staff : nickname (text) , first_name (text) , last_name (text) , staff_id (number)


Question: What is the nickname of the employee named Janessa Sawayn?

addresses : address_id (number) , line_1_number_building (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | staff : staff_id (number) , staff_address_id (number) , nickname (text) , first_name (text) , middle_name (text) , last_name (text) , date_of_birth (time) , date_joined_staff (time) , date_left_staff (time) | vehicles : vehicle_id (number) , vehicle_details (text) | customers : customer_id (number) , customer_address_id (number) , customer_status_code (text) , date_became_customer (time) , date_of_birth (time) , first_name (text) , last_name (text) , amount_outstanding (number) , email_address (text) , phone_number (text) , cell_mobile_phone_number (text) | customer_payments : customer_id (number) , datetime_payment (time) , payment_method_code (text) , amount_payment (number) | lessons : lesson_id (number) , customer_id (number) , lesson_status_code (text) , staff_id (number) , vehicle_id (number) , lesson_date (time) , lesson_time (text) , price (number)

staff : nickname (text) , first_name (text) , last_name (text) , staff_id (number)


Question: How many staff in total?

addresses : address_id (number) , line_1_number_building (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | staff : staff_id (number) , staff_address_id (number) , nickname (text) , first_name (text) , middle_name (text) , last_name (text) , date_of_birth (time) , date_joined_staff (time) , date_left_staff (time) | vehicles : vehicle_id (number) , vehicle_details (text) | customers : customer_id (number) , customer_address_id (number) , customer_status_code (text) , date_became_customer (time) , date_of_birth (time) , first_name (text) , last_name (text) , amount_outstanding (number) , email_address (text) , phone_number (text) , cell_mobile_phone_number (text) | customer_payments : customer_id (number) , datetime_payment (time) , payment_method_code (text) , amount_payment (number) | lessons : lesson_id (number) , customer_id (number) , lesson_status_code (text) , staff_id (number) , vehicle_id (number) , lesson_date (time) , lesson_time (text) , price (number)


Question: How many employees are there?

addresses : address_id (number) , line_1_number_building (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | staff : staff_id (number) , staff_address_id (number) , nickname (text) , first_name (text) , middle_name (text) , last_name (text) , date_of_birth (time) , date_joined_staff (time) , date_left_staff (time) | vehicles : vehicle_id (number) , vehicle_details (text) | customers : customer_id (number) , customer_address_id (number) , customer_status_code (text) , date_became_customer (time) , date_of_birth (time) , first_name (text) , last_name (text) , amount_outstanding (number) , email_address (text) , phone_number (text) , cell_mobile_phone_number (text) | customer_payments : customer_id (number) , datetime_payment (time) , payment_method_code (text) , amount_payment (number) | lessons : lesson_id (number) , customer_id (number) , lesson_status_code (text) , staff_id (number) , vehicle_id (number) , lesson_date (time) , lesson_time (text) , price (number)


Question: Which city does staff with first name as Janessa and last name as Sawayn live?

addresses : address_id (number) , line_1_number_building (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | staff : staff_id (number) , staff_address_id (number) , nickname (text) , first_name (text) , middle_name (text) , last_name (text) , date_of_birth (time) , date_joined_staff (time) , date_left_staff (time) | vehicles : vehicle_id (number) , vehicle_details (text) | customers : customer_id (number) , customer_address_id (number) , customer_status_code (text) , date_became_customer (time) , date_of_birth (time) , first_name (text) , last_name (text) , amount_outstanding (number) , email_address (text) , phone_number (text) , cell_mobile_phone_number (text) | customer_payments : customer_id (number) , datetime_payment (time) , payment_method_code (text) , amount_payment (number) | lessons : lesson_id (number) , customer_id (number) , lesson_status_code (text) , staff_id (number) , vehicle_id (number) , lesson_date (time) , lesson_time (text) , price (number)

addresses : city (text) , address_id (number) | staff : staff_address_id (number) , first_name (text) , last_name (text) , staff_id (number)


Question: In what city does Janessa Sawayn live?

addresses : address_id (number) , line_1_number_building (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | staff : staff_id (number) , staff_address_id (number) , nickname (text) , first_name (text) , middle_name (text) , last_name (text) , date_of_birth (time) , date_joined_staff (time) , date_left_staff (time) | vehicles : vehicle_id (number) , vehicle_details (text) | customers : customer_id (number) , customer_address_id (number) , customer_status_code (text) , date_became_customer (time) , date_of_birth (time) , first_name (text) , last_name (text) , amount_outstanding (number) , email_address (text) , phone_number (text) , cell_mobile_phone_number (text) | customer_payments : customer_id (number) , datetime_payment (time) , payment_method_code (text) , amount_payment (number) | lessons : lesson_id (number) , customer_id (number) , lesson_status_code (text) , staff_id (number) , vehicle_id (number) , lesson_date (time) , lesson_time (text) , price (number)

addresses : city (text) , address_id (number) | staff : staff_address_id (number) , first_name (text) , last_name (text) , staff_id (number)


Question: Which country and state does staff with first name as Janessa and last name as Sawayn lived?

addresses : address_id (number) , line_1_number_building (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | staff : staff_id (number) , staff_address_id (number) , nickname (text) , first_name (text) , middle_name (text) , last_name (text) , date_of_birth (time) , date_joined_staff (time) , date_left_staff (time) | vehicles : vehicle_id (number) , vehicle_details (text) | customers : customer_id (number) , customer_address_id (number) , customer_status_code (text) , date_became_customer (time) , date_of_birth (time) , first_name (text) , last_name (text) , amount_outstanding (number) , email_address (text) , phone_number (text) , cell_mobile_phone_number (text) | customer_payments : customer_id (number) , datetime_payment (time) , payment_method_code (text) , amount_payment (number) | lessons : lesson_id (number) , customer_id (number) , lesson_status_code (text) , staff_id (number) , vehicle_id (number) , lesson_date (time) , lesson_time (text) , price (number)

addresses : country (text) , state_province_county (text) , address_id (number) | staff : staff_address_id (number) , first_name (text) , last_name (text) , staff_id (number)


Question: In which country and state does Janessa Sawayn live?

addresses : address_id (number) , line_1_number_building (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | staff : staff_id (number) , staff_address_id (number) , nickname (text) , first_name (text) , middle_name (text) , last_name (text) , date_of_birth (time) , date_joined_staff (time) , date_left_staff (time) | vehicles : vehicle_id (number) , vehicle_details (text) | customers : customer_id (number) , customer_address_id (number) , customer_status_code (text) , date_became_customer (time) , date_of_birth (time) , first_name (text) , last_name (text) , amount_outstanding (number) , email_address (text) , phone_number (text) , cell_mobile_phone_number (text) | customer_payments : customer_id (number) , datetime_payment (time) , payment_method_code (text) , amount_payment (number) | lessons : lesson_id (number) , customer_id (number) , lesson_status_code (text) , staff_id (number) , vehicle_id (number) , lesson_date (time) , lesson_time (text) , price (number)

addresses : country (text) , state_province_county (text) , address_id (number) | staff : staff_address_id (number) , first_name (text) , last_name (text) , staff_id (number)


Question: How long is the total lesson time took by customer with first name as Rylan and last name as Goodwin?

addresses : address_id (number) , line_1_number_building (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | staff : staff_id (number) , staff_address_id (number) , nickname (text) , first_name (text) , middle_name (text) , last_name (text) , date_of_birth (time) , date_joined_staff (time) , date_left_staff (time) | vehicles : vehicle_id (number) , vehicle_details (text) | customers : customer_id (number) , customer_address_id (number) , customer_status_code (text) , date_became_customer (time) , date_of_birth (time) , first_name (text) , last_name (text) , amount_outstanding (number) , email_address (text) , phone_number (text) , cell_mobile_phone_number (text) | customer_payments : customer_id (number) , datetime_payment (time) , payment_method_code (text) , amount_payment (number) | lessons : lesson_id (number) , customer_id (number) , lesson_status_code (text) , staff_id (number) , vehicle_id (number) , lesson_date (time) , lesson_time (text) , price (number)

lessons : lesson_time (text) , customer_id (number) , lesson_id (number) | customers : customer_id (number) , first_name (text) , last_name (text)


Question: How long is the total lesson time took by the customer named Rylan Goodwin?

addresses : address_id (number) , line_1_number_building (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | staff : staff_id (number) , staff_address_id (number) , nickname (text) , first_name (text) , middle_name (text) , last_name (text) , date_of_birth (time) , date_joined_staff (time) , date_left_staff (time) | vehicles : vehicle_id (number) , vehicle_details (text) | customers : customer_id (number) , customer_address_id (number) , customer_status_code (text) , date_became_customer (time) , date_of_birth (time) , first_name (text) , last_name (text) , amount_outstanding (number) , email_address (text) , phone_number (text) , cell_mobile_phone_number (text) | customer_payments : customer_id (number) , datetime_payment (time) , payment_method_code (text) , amount_payment (number) | lessons : lesson_id (number) , customer_id (number) , lesson_status_code (text) , staff_id (number) , vehicle_id (number) , lesson_date (time) , lesson_time (text) , price (number)

lessons : lesson_time (text) , customer_id (number) , lesson_id (number) | customers : customer_id (number) , first_name (text) , last_name (text)


Question: What is the zip code of staff with first name as Janessa and last name as Sawayn lived?

addresses : address_id (number) , line_1_number_building (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | staff : staff_id (number) , staff_address_id (number) , nickname (text) , first_name (text) , middle_name (text) , last_name (text) , date_of_birth (time) , date_joined_staff (time) , date_left_staff (time) | vehicles : vehicle_id (number) , vehicle_details (text) | customers : customer_id (number) , customer_address_id (number) , customer_status_code (text) , date_became_customer (time) , date_of_birth (time) , first_name (text) , last_name (text) , amount_outstanding (number) , email_address (text) , phone_number (text) , cell_mobile_phone_number (text) | customer_payments : customer_id (number) , datetime_payment (time) , payment_method_code (text) , amount_payment (number) | lessons : lesson_id (number) , customer_id (number) , lesson_status_code (text) , staff_id (number) , vehicle_id (number) , lesson_date (time) , lesson_time (text) , price (number)

addresses : zip_postcode (text) , address_id (number) | staff : staff_address_id (number) , first_name (text) , last_name (text) , staff_id (number)