Question: Show all the distinct districts for elections.

county : county_id (number) , county_name (text) , population (number) , zip_code (text) | party : party_id (number) , year (number) , party (text) , governor (text) , lieutenant_governor (text) , comptroller (text) , attorney_general (text) , us_senate (text) | election : election_id (number) , counties_represented (text) , district (number) , delegate (text) , party (number) , first_elected (number) , committee (text)

election : district (number) , election_id (number)


Question: What are the distinct districts for elections?

county : county_id (number) , county_name (text) , population (number) , zip_code (text) | party : party_id (number) , year (number) , party (text) , governor (text) , lieutenant_governor (text) , comptroller (text) , attorney_general (text) , us_senate (text) | election : election_id (number) , counties_represented (text) , district (number) , delegate (text) , party (number) , first_elected (number) , committee (text)

election : district (number) , election_id (number)


Question: Show the zip code of the county with name "Howard".

county : county_id (number) , county_name (text) , population (number) , zip_code (text) | party : party_id (number) , year (number) , party (text) , governor (text) , lieutenant_governor (text) , comptroller (text) , attorney_general (text) , us_senate (text) | election : election_id (number) , counties_represented (text) , district (number) , delegate (text) , party (number) , first_elected (number) , committee (text)

county : zip_code (text) , county_name (text) , county_id (number)


Question: What is the zip code the county named "Howard" is located in?

county : county_id (number) , county_name (text) , population (number) , zip_code (text) | party : party_id (number) , year (number) , party (text) , governor (text) , lieutenant_governor (text) , comptroller (text) , attorney_general (text) , us_senate (text) | election : election_id (number) , counties_represented (text) , district (number) , delegate (text) , party (number) , first_elected (number) , committee (text)

county : zip_code (text) , county_name (text) , county_id (number)


Question: Show the delegate from district 1 in election.

county : county_id (number) , county_name (text) , population (number) , zip_code (text) | party : party_id (number) , year (number) , party (text) , governor (text) , lieutenant_governor (text) , comptroller (text) , attorney_general (text) , us_senate (text) | election : election_id (number) , counties_represented (text) , district (number) , delegate (text) , party (number) , first_elected (number) , committee (text)

election : delegate (text) , district (number) , election_id (number)


Question: Who is the delegate of district 1 in the elections?

county : county_id (number) , county_name (text) , population (number) , zip_code (text) | party : party_id (number) , year (number) , party (text) , governor (text) , lieutenant_governor (text) , comptroller (text) , attorney_general (text) , us_senate (text) | election : election_id (number) , counties_represented (text) , district (number) , delegate (text) , party (number) , first_elected (number) , committee (text)

election : delegate (text) , district (number) , election_id (number)


Question: Show the delegate and committee information of elections.

county : county_id (number) , county_name (text) , population (number) , zip_code (text) | party : party_id (number) , year (number) , party (text) , governor (text) , lieutenant_governor (text) , comptroller (text) , attorney_general (text) , us_senate (text) | election : election_id (number) , counties_represented (text) , district (number) , delegate (text) , party (number) , first_elected (number) , committee (text)

election : delegate (text) , committee (text) , election_id (number)


Question: What are the delegate and committee information for each election record?

county : county_id (number) , county_name (text) , population (number) , zip_code (text) | party : party_id (number) , year (number) , party (text) , governor (text) , lieutenant_governor (text) , comptroller (text) , attorney_general (text) , us_senate (text) | election : election_id (number) , counties_represented (text) , district (number) , delegate (text) , party (number) , first_elected (number) , committee (text)

election : delegate (text) , committee (text) , election_id (number)


Question: How many distinct governors are there?

county : county_id (number) , county_name (text) , population (number) , zip_code (text) | party : party_id (number) , year (number) , party (text) , governor (text) , lieutenant_governor (text) , comptroller (text) , attorney_general (text) , us_senate (text) | election : election_id (number) , counties_represented (text) , district (number) , delegate (text) , party (number) , first_elected (number) , committee (text)

party : governor (text) , party (text) , party_id (number) | election : party (number) , election_id (number)


Question: Count the number of distinct governors.

county : county_id (number) , county_name (text) , population (number) , zip_code (text) | party : party_id (number) , year (number) , party (text) , governor (text) , lieutenant_governor (text) , comptroller (text) , attorney_general (text) , us_senate (text) | election : election_id (number) , counties_represented (text) , district (number) , delegate (text) , party (number) , first_elected (number) , committee (text)

party : governor (text) , party (text) , party_id (number) | election : party (number) , election_id (number)


Question: Show the lieutenant governor and comptroller from the democratic party.

county : county_id (number) , county_name (text) , population (number) , zip_code (text) | party : party_id (number) , year (number) , party (text) , governor (text) , lieutenant_governor (text) , comptroller (text) , attorney_general (text) , us_senate (text) | election : election_id (number) , counties_represented (text) , district (number) , delegate (text) , party (number) , first_elected (number) , committee (text)

party : lieutenant_governor (text) , comptroller (text) , party (text) , party_id (number) | election : party (number) , election_id (number)


Question: Who are the lieutenant governor and comptroller from the democratic party?

county : county_id (number) , county_name (text) , population (number) , zip_code (text) | party : party_id (number) , year (number) , party (text) , governor (text) , lieutenant_governor (text) , comptroller (text) , attorney_general (text) , us_senate (text) | election : election_id (number) , counties_represented (text) , district (number) , delegate (text) , party (number) , first_elected (number) , committee (text)

party : lieutenant_governor (text) , comptroller (text) , party (text) , party_id (number) | election : party (number) , election_id (number)


Question: In which distinct years was the governor "Eliot Spitzer"?

county : county_id (number) , county_name (text) , population (number) , zip_code (text) | party : party_id (number) , year (number) , party (text) , governor (text) , lieutenant_governor (text) , comptroller (text) , attorney_general (text) , us_senate (text) | election : election_id (number) , counties_represented (text) , district (number) , delegate (text) , party (number) , first_elected (number) , committee (text)

party : year (number) , party (text) , governor (text) , party_id (number) | election : party (number) , election_id (number)


Question: Find the distinct years when the governor was named "Eliot Spitzer".

county : county_id (number) , county_name (text) , population (number) , zip_code (text) | party : party_id (number) , year (number) , party (text) , governor (text) , lieutenant_governor (text) , comptroller (text) , attorney_general (text) , us_senate (text) | election : election_id (number) , counties_represented (text) , district (number) , delegate (text) , party (number) , first_elected (number) , committee (text)

party : year (number) , party (text) , governor (text) , party_id (number) | election : party (number) , election_id (number)


Question: Show all the information about election.

county : county_id (number) , county_name (text) , population (number) , zip_code (text) | party : party_id (number) , year (number) , party (text) , governor (text) , lieutenant_governor (text) , comptroller (text) , attorney_general (text) , us_senate (text) | election : election_id (number) , counties_represented (text) , district (number) , delegate (text) , party (number) , first_elected (number) , committee (text)


Question: Return all the information for each election record.

county : county_id (number) , county_name (text) , population (number) , zip_code (text) | party : party_id (number) , year (number) , party (text) , governor (text) , lieutenant_governor (text) , comptroller (text) , attorney_general (text) , us_senate (text) | election : election_id (number) , counties_represented (text) , district (number) , delegate (text) , party (number) , first_elected (number) , committee (text)


Question: Show the delegates and the names of county they belong to.

county : county_id (number) , county_name (text) , population (number) , zip_code (text) | party : party_id (number) , year (number) , party (text) , governor (text) , lieutenant_governor (text) , comptroller (text) , attorney_general (text) , us_senate (text) | election : election_id (number) , counties_represented (text) , district (number) , delegate (text) , party (number) , first_elected (number) , committee (text)

election : delegate (text) , district (number) , election_id (number) | county : county_name (text) , county_id (number) , county_id (number)


Question: What are the delegate and name of the county they belong to, for each county?

county : county_id (number) , county_name (text) , population (number) , zip_code (text) | party : party_id (number) , year (number) , party (text) , governor (text) , lieutenant_governor (text) , comptroller (text) , attorney_general (text) , us_senate (text) | election : election_id (number) , counties_represented (text) , district (number) , delegate (text) , party (number) , first_elected (number) , committee (text)

election : delegate (text) , district (number) , election_id (number) | county : county_name (text) , county_id (number) , county_id (number)


Question: Which delegates are from counties with population smaller than 100000?

county : county_id (number) , county_name (text) , population (number) , zip_code (text) | party : party_id (number) , year (number) , party (text) , governor (text) , lieutenant_governor (text) , comptroller (text) , attorney_general (text) , us_senate (text) | election : election_id (number) , counties_represented (text) , district (number) , delegate (text) , party (number) , first_elected (number) , committee (text)

election : delegate (text) , district (number) , election_id (number) | county : county_id (number) , population (number) , county_id (number)


Question: Find the delegates who are from counties with population below 100000.

county : county_id (number) , county_name (text) , population (number) , zip_code (text) | party : party_id (number) , year (number) , party (text) , governor (text) , lieutenant_governor (text) , comptroller (text) , attorney_general (text) , us_senate (text) | election : election_id (number) , counties_represented (text) , district (number) , delegate (text) , party (number) , first_elected (number) , committee (text)

election : delegate (text) , district (number) , election_id (number) | county : county_id (number) , population (number) , county_id (number)


Question: How many distinct delegates are from counties with population larger than 50000?

county : county_id (number) , county_name (text) , population (number) , zip_code (text) | party : party_id (number) , year (number) , party (text) , governor (text) , lieutenant_governor (text) , comptroller (text) , attorney_general (text) , us_senate (text) | election : election_id (number) , counties_represented (text) , district (number) , delegate (text) , party (number) , first_elected (number) , committee (text)

election : delegate (text) , district (number) , election_id (number) | county : county_id (number) , population (number) , county_id (number)


Question: Count the number of distinct delegates who are from counties with population above 50000.

county : county_id (number) , county_name (text) , population (number) , zip_code (text) | party : party_id (number) , year (number) , party (text) , governor (text) , lieutenant_governor (text) , comptroller (text) , attorney_general (text) , us_senate (text) | election : election_id (number) , counties_represented (text) , district (number) , delegate (text) , party (number) , first_elected (number) , committee (text)

election : delegate (text) , district (number) , election_id (number) | county : county_id (number) , population (number) , county_id (number)


Question: What are the names of the county that the delegates on "Appropriations" committee belong to?

county : county_id (number) , county_name (text) , population (number) , zip_code (text) | party : party_id (number) , year (number) , party (text) , governor (text) , lieutenant_governor (text) , comptroller (text) , attorney_general (text) , us_senate (text) | election : election_id (number) , counties_represented (text) , district (number) , delegate (text) , party (number) , first_elected (number) , committee (text)

county : county_name (text) , county_id (number) , county_id (number) | election : district (number) , committee (text) , election_id (number)


Question: Which county do the delegates on "Appropriations" committee belong to? Give me the county names.

county : county_id (number) , county_name (text) , population (number) , zip_code (text) | party : party_id (number) , year (number) , party (text) , governor (text) , lieutenant_governor (text) , comptroller (text) , attorney_general (text) , us_senate (text) | election : election_id (number) , counties_represented (text) , district (number) , delegate (text) , party (number) , first_elected (number) , committee (text)

county : county_name (text) , county_id (number) , county_id (number) | election : district (number) , committee (text) , election_id (number)


Question: Show the delegates and the names of the party they belong to.

county : county_id (number) , county_name (text) , population (number) , zip_code (text) | party : party_id (number) , year (number) , party (text) , governor (text) , lieutenant_governor (text) , comptroller (text) , attorney_general (text) , us_senate (text) | election : election_id (number) , counties_represented (text) , district (number) , delegate (text) , party (number) , first_elected (number) , committee (text)

election : delegate (text) , party (number) , election_id (number) | party : party (text) , party_id (number) , party_id (number)


Question: For each delegate, find the names of the party they are part of.

county : county_id (number) , county_name (text) , population (number) , zip_code (text) | party : party_id (number) , year (number) , party (text) , governor (text) , lieutenant_governor (text) , comptroller (text) , attorney_general (text) , us_senate (text) | election : election_id (number) , counties_represented (text) , district (number) , delegate (text) , party (number) , first_elected (number) , committee (text)

election : delegate (text) , party (number) , election_id (number) | party : party (text) , party_id (number) , party_id (number)


Question: Who were the governors of the parties associated with delegates from district 1?

county : county_id (number) , county_name (text) , population (number) , zip_code (text) | party : party_id (number) , year (number) , party (text) , governor (text) , lieutenant_governor (text) , comptroller (text) , attorney_general (text) , us_senate (text) | election : election_id (number) , counties_represented (text) , district (number) , delegate (text) , party (number) , first_elected (number) , committee (text)

party : governor (text) , party (text) , party_id (number) , party_id (number) | election : party (number) , district (number) , election_id (number)


Question: Find the parties associated with the delegates from district 1. Who served as governors of the parties?

county : county_id (number) , county_name (text) , population (number) , zip_code (text) | party : party_id (number) , year (number) , party (text) , governor (text) , lieutenant_governor (text) , comptroller (text) , attorney_general (text) , us_senate (text) | election : election_id (number) , counties_represented (text) , district (number) , delegate (text) , party (number) , first_elected (number) , committee (text)

party : governor (text) , party (text) , party_id (number) , party_id (number) | election : party (number) , district (number) , election_id (number)


Question: Who were the comptrollers of the parties associated with the delegates from district 1 or district 2?

county : county_id (number) , county_name (text) , population (number) , zip_code (text) | party : party_id (number) , year (number) , party (text) , governor (text) , lieutenant_governor (text) , comptroller (text) , attorney_general (text) , us_senate (text) | election : election_id (number) , counties_represented (text) , district (number) , delegate (text) , party (number) , first_elected (number) , committee (text)

party : comptroller (text) , party (text) , party_id (number) , party_id (number) | election : party (number) , district (number) , election_id (number)


Question: Find the parties associated with the delegates from district 1 or 2. Who served as comptrollers of the parties?

county : county_id (number) , county_name (text) , population (number) , zip_code (text) | party : party_id (number) , year (number) , party (text) , governor (text) , lieutenant_governor (text) , comptroller (text) , attorney_general (text) , us_senate (text) | election : election_id (number) , counties_represented (text) , district (number) , delegate (text) , party (number) , first_elected (number) , committee (text)

party : comptroller (text) , party (text) , party_id (number) , party_id (number) | election : party (number) , district (number) , election_id (number)


Question: Return all the committees that have delegates from Democratic party.

county : county_id (number) , county_name (text) , population (number) , zip_code (text) | party : party_id (number) , year (number) , party (text) , governor (text) , lieutenant_governor (text) , comptroller (text) , attorney_general (text) , us_senate (text) | election : election_id (number) , counties_represented (text) , district (number) , delegate (text) , party (number) , first_elected (number) , committee (text)

election : committee (text) , party (number) , election_id (number) | party : party (text) , party_id (number) , party_id (number)


Question: Which committees have delegates from the Democratic party?

county : county_id (number) , county_name (text) , population (number) , zip_code (text) | party : party_id (number) , year (number) , party (text) , governor (text) , lieutenant_governor (text) , comptroller (text) , attorney_general (text) , us_senate (text) | election : election_id (number) , counties_represented (text) , district (number) , delegate (text) , party (number) , first_elected (number) , committee (text)

election : committee (text) , party (number) , election_id (number) | party : party (text) , party_id (number) , party_id (number)


Question: Show the name of each county along with the corresponding number of delegates from that county.

county : county_id (number) , county_name (text) , population (number) , zip_code (text) | party : party_id (number) , year (number) , party (text) , governor (text) , lieutenant_governor (text) , comptroller (text) , attorney_general (text) , us_senate (text) | election : election_id (number) , counties_represented (text) , district (number) , delegate (text) , party (number) , first_elected (number) , committee (text)

county : county_name (text) , county_id (number) , county_id (number) | election : district (number) , election_id (number)


Question: For each county, find the name of the county and the number of delegates from that county.

county : county_id (number) , county_name (text) , population (number) , zip_code (text) | party : party_id (number) , year (number) , party (text) , governor (text) , lieutenant_governor (text) , comptroller (text) , attorney_general (text) , us_senate (text) | election : election_id (number) , counties_represented (text) , district (number) , delegate (text) , party (number) , first_elected (number) , committee (text)

county : county_name (text) , county_id (number) , county_id (number) | election : district (number) , election_id (number)


Question: Show the name of each party and the corresponding number of delegates from that party.

county : county_id (number) , county_name (text) , population (number) , zip_code (text) | party : party_id (number) , year (number) , party (text) , governor (text) , lieutenant_governor (text) , comptroller (text) , attorney_general (text) , us_senate (text) | election : election_id (number) , counties_represented (text) , district (number) , delegate (text) , party (number) , first_elected (number) , committee (text)

party : party (text) , party_id (number) , party_id (number) | election : party (number) , election_id (number)


Question: For each party, return the name of the party and the number of delegates from that party.

county : county_id (number) , county_name (text) , population (number) , zip_code (text) | party : party_id (number) , year (number) , party (text) , governor (text) , lieutenant_governor (text) , comptroller (text) , attorney_general (text) , us_senate (text) | election : election_id (number) , counties_represented (text) , district (number) , delegate (text) , party (number) , first_elected (number) , committee (text)

party : party (text) , party_id (number) , party_id (number) | election : party (number) , election_id (number)


Question: Return the names of all counties sorted by population in ascending order.

county : county_id (number) , county_name (text) , population (number) , zip_code (text) | party : party_id (number) , year (number) , party (text) , governor (text) , lieutenant_governor (text) , comptroller (text) , attorney_general (text) , us_senate (text) | election : election_id (number) , counties_represented (text) , district (number) , delegate (text) , party (number) , first_elected (number) , committee (text)

county : county_name (text) , population (number) , county_id (number)


Question: Sort the names of all counties in ascending order of population.

county : county_id (number) , county_name (text) , population (number) , zip_code (text) | party : party_id (number) , year (number) , party (text) , governor (text) , lieutenant_governor (text) , comptroller (text) , attorney_general (text) , us_senate (text) | election : election_id (number) , counties_represented (text) , district (number) , delegate (text) , party (number) , first_elected (number) , committee (text)

county : county_name (text) , population (number) , county_id (number)


Question: Return the names of all counties sorted by county name in descending alphabetical order.

county : county_id (number) , county_name (text) , population (number) , zip_code (text) | party : party_id (number) , year (number) , party (text) , governor (text) , lieutenant_governor (text) , comptroller (text) , attorney_general (text) , us_senate (text) | election : election_id (number) , counties_represented (text) , district (number) , delegate (text) , party (number) , first_elected (number) , committee (text)

county : county_name (text) , county_id (number)


Question: Sort the names of all counties in descending alphabetical order.

county : county_id (number) , county_name (text) , population (number) , zip_code (text) | party : party_id (number) , year (number) , party (text) , governor (text) , lieutenant_governor (text) , comptroller (text) , attorney_general (text) , us_senate (text) | election : election_id (number) , counties_represented (text) , district (number) , delegate (text) , party (number) , first_elected (number) , committee (text)

county : county_name (text) , county_id (number)


Question: Show the name of the county with the biggest population.

county : county_id (number) , county_name (text) , population (number) , zip_code (text) | party : party_id (number) , year (number) , party (text) , governor (text) , lieutenant_governor (text) , comptroller (text) , attorney_general (text) , us_senate (text) | election : election_id (number) , counties_represented (text) , district (number) , delegate (text) , party (number) , first_elected (number) , committee (text)

county : county_name (text) , population (number) , county_id (number)


Question: Which county has the largest population? Give me the name of the county.

county : county_id (number) , county_name (text) , population (number) , zip_code (text) | party : party_id (number) , year (number) , party (text) , governor (text) , lieutenant_governor (text) , comptroller (text) , attorney_general (text) , us_senate (text) | election : election_id (number) , counties_represented (text) , district (number) , delegate (text) , party (number) , first_elected (number) , committee (text)

county : county_name (text) , population (number) , county_id (number)


Question: Show the 3 counties with the smallest population.

county : county_id (number) , county_name (text) , population (number) , zip_code (text) | party : party_id (number) , year (number) , party (text) , governor (text) , lieutenant_governor (text) , comptroller (text) , attorney_general (text) , us_senate (text) | election : election_id (number) , counties_represented (text) , district (number) , delegate (text) , party (number) , first_elected (number) , committee (text)

county : county_name (text) , population (number) , county_id (number)


Question: What are the 3 counties that have the smallest population? Give me the county names.

county : county_id (number) , county_name (text) , population (number) , zip_code (text) | party : party_id (number) , year (number) , party (text) , governor (text) , lieutenant_governor (text) , comptroller (text) , attorney_general (text) , us_senate (text) | election : election_id (number) , counties_represented (text) , district (number) , delegate (text) , party (number) , first_elected (number) , committee (text)

county : county_name (text) , population (number) , county_id (number)


Question: Show the names of counties that have at least two delegates.

county : county_id (number) , county_name (text) , population (number) , zip_code (text) | party : party_id (number) , year (number) , party (text) , governor (text) , lieutenant_governor (text) , comptroller (text) , attorney_general (text) , us_senate (text) | election : election_id (number) , counties_represented (text) , district (number) , delegate (text) , party (number) , first_elected (number) , committee (text)

county : county_name (text) , county_id (number) , county_id (number) | election : district (number) , election_id (number)


Question: Which counties have two or more delegates? Give me the county names.

county : county_id (number) , county_name (text) , population (number) , zip_code (text) | party : party_id (number) , year (number) , party (text) , governor (text) , lieutenant_governor (text) , comptroller (text) , attorney_general (text) , us_senate (text) | election : election_id (number) , counties_represented (text) , district (number) , delegate (text) , party (number) , first_elected (number) , committee (text)

county : county_name (text) , county_id (number) , county_id (number) | election : district (number) , election_id (number)


Question: Show the name of the party that has at least two records.

county : county_id (number) , county_name (text) , population (number) , zip_code (text) | party : party_id (number) , year (number) , party (text) , governor (text) , lieutenant_governor (text) , comptroller (text) , attorney_general (text) , us_senate (text) | election : election_id (number) , counties_represented (text) , district (number) , delegate (text) , party (number) , first_elected (number) , committee (text)

party : party (text) , party_id (number) | election : party (number) , election_id (number)


Question: Which party has two or more records?

county : county_id (number) , county_name (text) , population (number) , zip_code (text) | party : party_id (number) , year (number) , party (text) , governor (text) , lieutenant_governor (text) , comptroller (text) , attorney_general (text) , us_senate (text) | election : election_id (number) , counties_represented (text) , district (number) , delegate (text) , party (number) , first_elected (number) , committee (text)

party : party (text) , party_id (number) | election : party (number) , election_id (number)


Question: Show the name of the party that has the most delegates.

county : county_id (number) , county_name (text) , population (number) , zip_code (text) | party : party_id (number) , year (number) , party (text) , governor (text) , lieutenant_governor (text) , comptroller (text) , attorney_general (text) , us_senate (text) | election : election_id (number) , counties_represented (text) , district (number) , delegate (text) , party (number) , first_elected (number) , committee (text)

party : party (text) , party_id (number) , party_id (number) | election : party (number) , election_id (number)


Question: Which party has the largest number of delegates?

county : county_id (number) , county_name (text) , population (number) , zip_code (text) | party : party_id (number) , year (number) , party (text) , governor (text) , lieutenant_governor (text) , comptroller (text) , attorney_general (text) , us_senate (text) | election : election_id (number) , counties_represented (text) , district (number) , delegate (text) , party (number) , first_elected (number) , committee (text)

party : party (text) , party_id (number) , party_id (number) | election : party (number) , election_id (number)


Question: Show the people that have been governor the most times.

county : county_id (number) , county_name (text) , population (number) , zip_code (text) | party : party_id (number) , year (number) , party (text) , governor (text) , lieutenant_governor (text) , comptroller (text) , attorney_general (text) , us_senate (text) | election : election_id (number) , counties_represented (text) , district (number) , delegate (text) , party (number) , first_elected (number) , committee (text)

party : governor (text) , party (text) , party_id (number) | election : party (number) , election_id (number)


Question: Which people severed as governor most frequently?

county : county_id (number) , county_name (text) , population (number) , zip_code (text) | party : party_id (number) , year (number) , party (text) , governor (text) , lieutenant_governor (text) , comptroller (text) , attorney_general (text) , us_senate (text) | election : election_id (number) , counties_represented (text) , district (number) , delegate (text) , party (number) , first_elected (number) , committee (text)

party : governor (text) , party (text) , party_id (number) | election : party (number) , election_id (number)


Question: Show the people that have been comptroller the most times and the corresponding number of times.

county : county_id (number) , county_name (text) , population (number) , zip_code (text) | party : party_id (number) , year (number) , party (text) , governor (text) , lieutenant_governor (text) , comptroller (text) , attorney_general (text) , us_senate (text) | election : election_id (number) , counties_represented (text) , district (number) , delegate (text) , party (number) , first_elected (number) , committee (text)

party : comptroller (text) , party (text) , party_id (number) | election : party (number) , election_id (number)


Question: Which people severed as comptroller most frequently? Give me the name of the person and the frequency count.

county : county_id (number) , county_name (text) , population (number) , zip_code (text) | party : party_id (number) , year (number) , party (text) , governor (text) , lieutenant_governor (text) , comptroller (text) , attorney_general (text) , us_senate (text) | election : election_id (number) , counties_represented (text) , district (number) , delegate (text) , party (number) , first_elected (number) , committee (text)

party : comptroller (text) , party (text) , party_id (number) | election : party (number) , election_id (number)


Question: What are the names of parties that do not have delegates in election?

county : county_id (number) , county_name (text) , population (number) , zip_code (text) | party : party_id (number) , year (number) , party (text) , governor (text) , lieutenant_governor (text) , comptroller (text) , attorney_general (text) , us_senate (text) | election : election_id (number) , counties_represented (text) , district (number) , delegate (text) , party (number) , first_elected (number) , committee (text)

party : party (text) , party_id (number) , party_id (number) | election : party (number) , election_id (number)


Question: Which parties did not have any delegates in elections?

county : county_id (number) , county_name (text) , population (number) , zip_code (text) | party : party_id (number) , year (number) , party (text) , governor (text) , lieutenant_governor (text) , comptroller (text) , attorney_general (text) , us_senate (text) | election : election_id (number) , counties_represented (text) , district (number) , delegate (text) , party (number) , first_elected (number) , committee (text)

party : party (text) , party_id (number) , party_id (number) | election : party (number) , election_id (number)


Question: What are the names of parties that have both delegates on "Appropriations" committee and

county : county_id (number) , county_name (text) , population (number) , zip_code (text) | party : party_id (number) , year (number) , party (text) , governor (text) , lieutenant_governor (text) , comptroller (text) , attorney_general (text) , us_senate (text) | election : election_id (number) , counties_represented (text) , district (number) , delegate (text) , party (number) , first_elected (number) , committee (text)

party : party (text) , party_id (number) , party_id (number) | election : party (number) , committee (text) , election_id (number)


Question: Which parties have delegates in both the "Appropriations" committee and the "Economic Matters" committee?

county : county_id (number) , county_name (text) , population (number) , zip_code (text) | party : party_id (number) , year (number) , party (text) , governor (text) , lieutenant_governor (text) , comptroller (text) , attorney_general (text) , us_senate (text) | election : election_id (number) , counties_represented (text) , district (number) , delegate (text) , party (number) , first_elected (number) , committee (text)

party : party (text) , party_id (number) , party_id (number) | election : party (number) , committee (text) , election_id (number)


Question: Which committees have delegates from both democratic party and liberal party?

county : county_id (number) , county_name (text) , population (number) , zip_code (text) | party : party_id (number) , year (number) , party (text) , governor (text) , lieutenant_governor (text) , comptroller (text) , attorney_general (text) , us_senate (text) | election : election_id (number) , counties_represented (text) , district (number) , delegate (text) , party (number) , first_elected (number) , committee (text)

election : committee (text) , party (number) , election_id (number) | party : party (text) , party_id (number) , party_id (number)


Question: Find the committees that have delegates both from from the democratic party and the liberal party.

county : county_id (number) , county_name (text) , population (number) , zip_code (text) | party : party_id (number) , year (number) , party (text) , governor (text) , lieutenant_governor (text) , comptroller (text) , attorney_general (text) , us_senate (text) | election : election_id (number) , counties_represented (text) , district (number) , delegate (text) , party (number) , first_elected (number) , committee (text)

election : committee (text) , party (number) , election_id (number) | party : party (text) , party_id (number) , party_id (number)


Question: How many journalists are there?

event : event_id (number) , date (text) , venue (text) , name (text) , event_attendance (number) | journalist : journalist_id (number) , name (text) , nationality (text) , age (text) , years_working (number) | news_report : journalist_id (number) , event_id (number) , work_type (text)


Question: List the names of journalists in ascending order of years working.

event : event_id (number) , date (text) , venue (text) , name (text) , event_attendance (number) | journalist : journalist_id (number) , name (text) , nationality (text) , age (text) , years_working (number) | news_report : journalist_id (number) , event_id (number) , work_type (text)

event : name (text) , event_id (number) | journalist : name (text) , years_working (number) , journalist_id (number)


Question: What are the nationalities and ages of journalists?

event : event_id (number) , date (text) , venue (text) , name (text) , event_attendance (number) | journalist : journalist_id (number) , name (text) , nationality (text) , age (text) , years_working (number) | news_report : journalist_id (number) , event_id (number) , work_type (text)

journalist : nationality (text) , age (text) , journalist_id (number)


Question: Show the names of journalists from "England" or "Wales".

event : event_id (number) , date (text) , venue (text) , name (text) , event_attendance (number) | journalist : journalist_id (number) , name (text) , nationality (text) , age (text) , years_working (number) | news_report : journalist_id (number) , event_id (number) , work_type (text)

event : name (text) , event_id (number) | journalist : name (text) , nationality (text) , journalist_id (number)


Question: What is the average number of years spent working as a journalist?

event : event_id (number) , date (text) , venue (text) , name (text) , event_attendance (number) | journalist : journalist_id (number) , name (text) , nationality (text) , age (text) , years_working (number) | news_report : journalist_id (number) , event_id (number) , work_type (text)

journalist : years_working (number) , journalist_id (number)


Question: What is the nationality of the journalist with the largest number of years working?

event : event_id (number) , date (text) , venue (text) , name (text) , event_attendance (number) | journalist : journalist_id (number) , name (text) , nationality (text) , age (text) , years_working (number) | news_report : journalist_id (number) , event_id (number) , work_type (text)

journalist : nationality (text) , years_working (number) , journalist_id (number)


Question: Show the different nationalities and the number of journalists of each nationality.

event : event_id (number) , date (text) , venue (text) , name (text) , event_attendance (number) | journalist : journalist_id (number) , name (text) , nationality (text) , age (text) , years_working (number) | news_report : journalist_id (number) , event_id (number) , work_type (text)

journalist : nationality (text) , journalist_id (number)


Question: Show the most common nationality for journalists.

event : event_id (number) , date (text) , venue (text) , name (text) , event_attendance (number) | journalist : journalist_id (number) , name (text) , nationality (text) , age (text) , years_working (number) | news_report : journalist_id (number) , event_id (number) , work_type (text)

journalist : nationality (text) , journalist_id (number)


Question: Show the nations that have both journalists with more than 10 years of working and journalists with less than 3 years of working.

event : event_id (number) , date (text) , venue (text) , name (text) , event_attendance (number) | journalist : journalist_id (number) , name (text) , nationality (text) , age (text) , years_working (number) | news_report : journalist_id (number) , event_id (number) , work_type (text)

journalist : nationality (text) , years_working (number) , journalist_id (number)


Question: Show the dates, places, and names of events in descending order of the attendance.

event : event_id (number) , date (text) , venue (text) , name (text) , event_attendance (number) | journalist : journalist_id (number) , name (text) , nationality (text) , age (text) , years_working (number) | news_report : journalist_id (number) , event_id (number) , work_type (text)

event : date (text) , name (text) , venue (text) , event_attendance (number) , event_id (number) | journalist : name (text) , journalist_id (number)


Question: Show the names of journalists and the dates of the events they reported.

event : event_id (number) , date (text) , venue (text) , name (text) , event_attendance (number) | journalist : journalist_id (number) , name (text) , nationality (text) , age (text) , years_working (number) | news_report : journalist_id (number) , event_id (number) , work_type (text)

event : name (text) , date (text) , event_id (number) , event_id (number) | journalist : name (text) , journalist_id (number) , journalist_id (number) | news_report : event_id (number) , journalist_id (number) , journalist_id (number)


Question: Show the names of journalists and the names of the events they reported in ascending order

event : event_id (number) , date (text) , venue (text) , name (text) , event_attendance (number) | journalist : journalist_id (number) , name (text) , nationality (text) , age (text) , years_working (number) | news_report : journalist_id (number) , event_id (number) , work_type (text)

event : name (text) , event_id (number) , event_attendance (number) , event_id (number) | journalist : name (text) , journalist_id (number) , journalist_id (number) | news_report : event_id (number) , journalist_id (number) , journalist_id (number)


Question: Show the names of journalists and the number of events they reported.

event : event_id (number) , date (text) , venue (text) , name (text) , event_attendance (number) | journalist : journalist_id (number) , name (text) , nationality (text) , age (text) , years_working (number) | news_report : journalist_id (number) , event_id (number) , work_type (text)

event : name (text) , event_id (number) , event_id (number) | journalist : name (text) , journalist_id (number) , journalist_id (number) | news_report : event_id (number) , journalist_id (number) , journalist_id (number)


Question: Show the names of journalists that have reported more than one event.

event : event_id (number) , date (text) , venue (text) , name (text) , event_attendance (number) | journalist : journalist_id (number) , name (text) , nationality (text) , age (text) , years_working (number) | news_report : journalist_id (number) , event_id (number) , work_type (text)

event : name (text) , event_id (number) , event_id (number) | journalist : name (text) , journalist_id (number) , journalist_id (number) | news_report : event_id (number) , journalist_id (number) , journalist_id (number)


Question: List the names of journalists who have not reported any event.

event : event_id (number) , date (text) , venue (text) , name (text) , event_attendance (number) | journalist : journalist_id (number) , name (text) , nationality (text) , age (text) , years_working (number) | news_report : journalist_id (number) , event_id (number) , work_type (text)

event : name (text) , event_id (number) | journalist : name (text) , journalist_id (number) , journalist_id (number) | news_report : journalist_id (number) , journalist_id (number)


Question: what are the average and maximum attendances of all events?

event : event_id (number) , date (text) , venue (text) , name (text) , event_attendance (number) | journalist : journalist_id (number) , name (text) , nationality (text) , age (text) , years_working (number) | news_report : journalist_id (number) , event_id (number) , work_type (text)

event : event_attendance (number) , event_id (number)


Question: Find the average age and experience working length of journalists working on different role type.

event : event_id (number) , date (text) , venue (text) , name (text) , event_attendance (number) | journalist : journalist_id (number) , name (text) , nationality (text) , age (text) , years_working (number) | news_report : journalist_id (number) , event_id (number) , work_type (text)

journalist : age (text) , years_working (number) , journalist_id (number) , journalist_id (number) | news_report : work_type (text) , journalist_id (number) , journalist_id (number)


Question: List the event venues and names that have the top 2 most number of people attended.

event : event_id (number) , date (text) , venue (text) , name (text) , event_attendance (number) | journalist : journalist_id (number) , name (text) , nationality (text) , age (text) , years_working (number) | news_report : journalist_id (number) , event_id (number) , work_type (text)

event : venue (text) , name (text) , event_attendance (number) , event_id (number) | journalist : name (text) , journalist_id (number)


Question: Show me all the restaurants.

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | restaurant : resid (number) , resname (text) , address (text) , rating (number) | type_of_restaurant : resid (number) , restypeid (number) | restaurant_type : restypeid (number) , restypename (text) , restypedescription (text) | visits_restaurant : stuid (number) , resid (number) , time (time) , spent (number)

restaurant : resname (text) , resid (number)


Question: What is the address of the restaurant Subway?

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | restaurant : resid (number) , resname (text) , address (text) , rating (number) | type_of_restaurant : resid (number) , restypeid (number) | restaurant_type : restypeid (number) , restypename (text) , restypedescription (text) | visits_restaurant : stuid (number) , resid (number) , time (time) , spent (number)

restaurant : address (text) , resname (text) , resid (number)


Question: What is the rating of the restaurant Subway?

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | restaurant : resid (number) , resname (text) , address (text) , rating (number) | type_of_restaurant : resid (number) , restypeid (number) | restaurant_type : restypeid (number) , restypename (text) , restypedescription (text) | visits_restaurant : stuid (number) , resid (number) , time (time) , spent (number)

restaurant : rating (number) , resname (text) , resid (number)


Question: List all restaurant types.

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | restaurant : resid (number) , resname (text) , address (text) , rating (number) | type_of_restaurant : resid (number) , restypeid (number) | restaurant_type : restypeid (number) , restypename (text) , restypedescription (text) | visits_restaurant : stuid (number) , resid (number) , time (time) , spent (number)

restaurant_type : restypename (text) , restypeid (number)


Question: What is the description of the restaurant type Sandwich?

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | restaurant : resid (number) , resname (text) , address (text) , rating (number) | type_of_restaurant : resid (number) , restypeid (number) | restaurant_type : restypeid (number) , restypename (text) , restypedescription (text) | visits_restaurant : stuid (number) , resid (number) , time (time) , spent (number)

restaurant_type : restypedescription (text) , restypename (text) , restypeid (number)


Question: Which restaurants have highest rating? List the restaurant name and its rating.

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | restaurant : resid (number) , resname (text) , address (text) , rating (number) | type_of_restaurant : resid (number) , restypeid (number) | restaurant_type : restypeid (number) , restypename (text) , restypedescription (text) | visits_restaurant : stuid (number) , resid (number) , time (time) , spent (number)

restaurant : resname (text) , rating (number) , resid (number)


Question: What is the age of student Linda Smith?

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | restaurant : resid (number) , resname (text) , address (text) , rating (number) | type_of_restaurant : resid (number) , restypeid (number) | restaurant_type : restypeid (number) , restypename (text) , restypedescription (text) | visits_restaurant : stuid (number) , resid (number) , time (time) , spent (number)

student : age (number) , fname (text) , lname (text) , stuid (number)


Question: What is the gender of the student Linda Smith?

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | restaurant : resid (number) , resname (text) , address (text) , rating (number) | type_of_restaurant : resid (number) , restypeid (number) | restaurant_type : restypeid (number) , restypename (text) , restypedescription (text) | visits_restaurant : stuid (number) , resid (number) , time (time) , spent (number)

student : sex (text) , fname (text) , lname (text) , stuid (number)


Question: List all students' first names and last names who majored in 600.

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | restaurant : resid (number) , resname (text) , address (text) , rating (number) | type_of_restaurant : resid (number) , restypeid (number) | restaurant_type : restypeid (number) , restypename (text) , restypedescription (text) | visits_restaurant : stuid (number) , resid (number) , time (time) , spent (number)

student : fname (text) , lname (text) , major (number) , stuid (number)


Question: Which city does student Linda Smith live in?

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | restaurant : resid (number) , resname (text) , address (text) , rating (number) | type_of_restaurant : resid (number) , restypeid (number) | restaurant_type : restypeid (number) , restypename (text) , restypedescription (text) | visits_restaurant : stuid (number) , resid (number) , time (time) , spent (number)

student : city_code (text) , fname (text) , lname (text) , stuid (number)


Question: Advisor 1121 has how many students?

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | restaurant : resid (number) , resname (text) , address (text) , rating (number) | type_of_restaurant : resid (number) , restypeid (number) | restaurant_type : restypeid (number) , restypename (text) , restypedescription (text) | visits_restaurant : stuid (number) , resid (number) , time (time) , spent (number)

student : advisor (number) , stuid (number)


Question: Which Advisor has most of students? List advisor and the number of students.

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | restaurant : resid (number) , resname (text) , address (text) , rating (number) | type_of_restaurant : resid (number) , restypeid (number) | restaurant_type : restypeid (number) , restypename (text) , restypedescription (text) | visits_restaurant : stuid (number) , resid (number) , time (time) , spent (number)

student : advisor (number) , stuid (number)


Question: Which major has least number of students? List the major and the number of students.

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | restaurant : resid (number) , resname (text) , address (text) , rating (number) | type_of_restaurant : resid (number) , restypeid (number) | restaurant_type : restypeid (number) , restypename (text) , restypedescription (text) | visits_restaurant : stuid (number) , resid (number) , time (time) , spent (number)

student : major (number) , stuid (number)


Question: Which major has between 2 and 30 number of students? List major and the number of students.

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | restaurant : resid (number) , resname (text) , address (text) , rating (number) | type_of_restaurant : resid (number) , restypeid (number) | restaurant_type : restypeid (number) , restypename (text) , restypedescription (text) | visits_restaurant : stuid (number) , resid (number) , time (time) , spent (number)

student : major (number) , stuid (number)


Question: Which student's age is older than 18 and is majoring in 600? List each student's first and last name.

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | restaurant : resid (number) , resname (text) , address (text) , rating (number) | type_of_restaurant : resid (number) , restypeid (number) | restaurant_type : restypeid (number) , restypename (text) , restypedescription (text) | visits_restaurant : stuid (number) , resid (number) , time (time) , spent (number)

student : fname (text) , lname (text) , age (number) , major (number) , stuid (number)


Question: List all female students age is older than 18 who is not majoring in 600. List students' first name and last name.

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | restaurant : resid (number) , resname (text) , address (text) , rating (number) | type_of_restaurant : resid (number) , restypeid (number) | restaurant_type : restypeid (number) , restypename (text) , restypedescription (text) | visits_restaurant : stuid (number) , resid (number) , time (time) , spent (number)

student : fname (text) , lname (text) , age (number) , major (number) , sex (text) , stuid (number)


Question: How many restaurant is the Sandwich type restaurant?

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | restaurant : resid (number) , resname (text) , address (text) , rating (number) | type_of_restaurant : resid (number) , restypeid (number) | restaurant_type : restypeid (number) , restypename (text) , restypedescription (text) | visits_restaurant : stuid (number) , resid (number) , time (time) , spent (number)

restaurant : resid (number) | restaurant_type : restypeid (number)


Question: How long does student Linda Smith spend on the restaurant in total?

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | restaurant : resid (number) , resname (text) , address (text) , rating (number) | type_of_restaurant : resid (number) , restypeid (number) | restaurant_type : restypeid (number) , restypename (text) , restypedescription (text) | visits_restaurant : stuid (number) , resid (number) , time (time) , spent (number)

visits_restaurant : spent (number) | student : stuid (number)


Question: How many times has the student Linda Smith visited Subway?

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | restaurant : resid (number) , resname (text) , address (text) , rating (number) | type_of_restaurant : resid (number) , restypeid (number) | restaurant_type : restypeid (number) , restypename (text) , restypedescription (text) | visits_restaurant : stuid (number) , resid (number) , time (time) , spent (number)

student : stuid (number) | restaurant : resid (number)


Question: When did Linda Smith visit Subway?

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | restaurant : resid (number) , resname (text) , address (text) , rating (number) | type_of_restaurant : resid (number) , restypeid (number) | restaurant_type : restypeid (number) , restypename (text) , restypedescription (text) | visits_restaurant : stuid (number) , resid (number) , time (time) , spent (number)

visits_restaurant : time (time) | student : stuid (number) | restaurant : resid (number)


Question: At which restaurant did the students spend the least amount of time? List restaurant and the time students spent on in total.

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | restaurant : resid (number) , resname (text) , address (text) , rating (number) | type_of_restaurant : resid (number) , restypeid (number) | restaurant_type : restypeid (number) , restypename (text) , restypedescription (text) | visits_restaurant : stuid (number) , resid (number) , time (time) , spent (number)


Question: Which student visited restaurant most often? List student's first name and last name.

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | restaurant : resid (number) , resname (text) , address (text) , rating (number) | type_of_restaurant : resid (number) , restypeid (number) | restaurant_type : restypeid (number) , restypename (text) , restypedescription (text) | visits_restaurant : stuid (number) , resid (number) , time (time) , spent (number)


Question: Find the ids of orders whose status is 'Success'.

products : product_id (number) , product_name (text) , product_price (number) , product_description (text) | addresses : address_id (number) , address_details (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | customers : customer_id (number) , payment_method (text) , customer_name (text) , customer_phone (text) , customer_email (text) , date_became_customer (time) | regular_orders : regular_order_id (number) , distributer_id (number) | regular_order_products : regular_order_id (number) , product_id (number) | actual_orders : actual_order_id (number) , order_status_code (text) , regular_order_id (number) , actual_order_date (time) | actual_order_products : actual_order_id (number) , product_id (number) | customer_addresses : customer_id (number) , address_id (number) , date_from (time) , address_type (text) , date_to (time) | delivery_routes : route_id (number) , route_name (text) , other_route_details (text) | delivery_route_locations : location_code (text) , route_id (number) , location_address_id (number) , location_name (text) | trucks : truck_id (number) , truck_licence_number (text) , truck_details (text) | employees : employee_id (number) , employee_address_id (number) , employee_name (text) , employee_phone (text) | order_deliveries : location_code (text) , actual_order_id (number) , delivery_status_code (text) , driver_employee_id (number) , truck_id (number) , delivery_date (time)

actual_orders : actual_order_id (number) , order_status_code (text) , actual_order_id (number) | actual_order_products : actual_order_id (number) | order_deliveries : actual_order_id (number)


Question: Find the name and price of the product that has been ordered the greatest number of times.

products : product_id (number) , product_name (text) , product_price (number) , product_description (text) | addresses : address_id (number) , address_details (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | customers : customer_id (number) , payment_method (text) , customer_name (text) , customer_phone (text) , customer_email (text) , date_became_customer (time) | regular_orders : regular_order_id (number) , distributer_id (number) | regular_order_products : regular_order_id (number) , product_id (number) | actual_orders : actual_order_id (number) , order_status_code (text) , regular_order_id (number) , actual_order_date (time) | actual_order_products : actual_order_id (number) , product_id (number) | customer_addresses : customer_id (number) , address_id (number) , date_from (time) , address_type (text) , date_to (time) | delivery_routes : route_id (number) , route_name (text) , other_route_details (text) | delivery_route_locations : location_code (text) , route_id (number) , location_address_id (number) , location_name (text) | trucks : truck_id (number) , truck_licence_number (text) , truck_details (text) | employees : employee_id (number) , employee_address_id (number) , employee_name (text) , employee_phone (text) | order_deliveries : location_code (text) , actual_order_id (number) , delivery_status_code (text) , driver_employee_id (number) , truck_id (number) , delivery_date (time)

products : product_name (text) , product_price (number) , product_id (number) , product_id (number) | regular_order_products : product_id (number) | actual_order_products : product_id (number)


Question: Find the number of customers in total.

products : product_id (number) , product_name (text) , product_price (number) , product_description (text) | addresses : address_id (number) , address_details (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | customers : customer_id (number) , payment_method (text) , customer_name (text) , customer_phone (text) , customer_email (text) , date_became_customer (time) | regular_orders : regular_order_id (number) , distributer_id (number) | regular_order_products : regular_order_id (number) , product_id (number) | actual_orders : actual_order_id (number) , order_status_code (text) , regular_order_id (number) , actual_order_date (time) | actual_order_products : actual_order_id (number) , product_id (number) | customer_addresses : customer_id (number) , address_id (number) , date_from (time) , address_type (text) , date_to (time) | delivery_routes : route_id (number) , route_name (text) , other_route_details (text) | delivery_route_locations : location_code (text) , route_id (number) , location_address_id (number) , location_name (text) | trucks : truck_id (number) , truck_licence_number (text) , truck_details (text) | employees : employee_id (number) , employee_address_id (number) , employee_name (text) , employee_phone (text) | order_deliveries : location_code (text) , actual_order_id (number) , delivery_status_code (text) , driver_employee_id (number) , truck_id (number) , delivery_date (time)


Question: How many different payment methods are there?

products : product_id (number) , product_name (text) , product_price (number) , product_description (text) | addresses : address_id (number) , address_details (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | customers : customer_id (number) , payment_method (text) , customer_name (text) , customer_phone (text) , customer_email (text) , date_became_customer (time) | regular_orders : regular_order_id (number) , distributer_id (number) | regular_order_products : regular_order_id (number) , product_id (number) | actual_orders : actual_order_id (number) , order_status_code (text) , regular_order_id (number) , actual_order_date (time) | actual_order_products : actual_order_id (number) , product_id (number) | customer_addresses : customer_id (number) , address_id (number) , date_from (time) , address_type (text) , date_to (time) | delivery_routes : route_id (number) , route_name (text) , other_route_details (text) | delivery_route_locations : location_code (text) , route_id (number) , location_address_id (number) , location_name (text) | trucks : truck_id (number) , truck_licence_number (text) , truck_details (text) | employees : employee_id (number) , employee_address_id (number) , employee_name (text) , employee_phone (text) | order_deliveries : location_code (text) , actual_order_id (number) , delivery_status_code (text) , driver_employee_id (number) , truck_id (number) , delivery_date (time)

customers : payment_method (text) , customer_id (number)


Question: Show the details of all trucks in the order of their license number.

products : product_id (number) , product_name (text) , product_price (number) , product_description (text) | addresses : address_id (number) , address_details (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | customers : customer_id (number) , payment_method (text) , customer_name (text) , customer_phone (text) , customer_email (text) , date_became_customer (time) | regular_orders : regular_order_id (number) , distributer_id (number) | regular_order_products : regular_order_id (number) , product_id (number) | actual_orders : actual_order_id (number) , order_status_code (text) , regular_order_id (number) , actual_order_date (time) | actual_order_products : actual_order_id (number) , product_id (number) | customer_addresses : customer_id (number) , address_id (number) , date_from (time) , address_type (text) , date_to (time) | delivery_routes : route_id (number) , route_name (text) , other_route_details (text) | delivery_route_locations : location_code (text) , route_id (number) , location_address_id (number) , location_name (text) | trucks : truck_id (number) , truck_licence_number (text) , truck_details (text) | employees : employee_id (number) , employee_address_id (number) , employee_name (text) , employee_phone (text) | order_deliveries : location_code (text) , actual_order_id (number) , delivery_status_code (text) , driver_employee_id (number) , truck_id (number) , delivery_date (time)

trucks : truck_details (text) , truck_licence_number (text) , truck_id (number)


Question: Find the name of the most expensive product.

products : product_id (number) , product_name (text) , product_price (number) , product_description (text) | addresses : address_id (number) , address_details (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | customers : customer_id (number) , payment_method (text) , customer_name (text) , customer_phone (text) , customer_email (text) , date_became_customer (time) | regular_orders : regular_order_id (number) , distributer_id (number) | regular_order_products : regular_order_id (number) , product_id (number) | actual_orders : actual_order_id (number) , order_status_code (text) , regular_order_id (number) , actual_order_date (time) | actual_order_products : actual_order_id (number) , product_id (number) | customer_addresses : customer_id (number) , address_id (number) , date_from (time) , address_type (text) , date_to (time) | delivery_routes : route_id (number) , route_name (text) , other_route_details (text) | delivery_route_locations : location_code (text) , route_id (number) , location_address_id (number) , location_name (text) | trucks : truck_id (number) , truck_licence_number (text) , truck_details (text) | employees : employee_id (number) , employee_address_id (number) , employee_name (text) , employee_phone (text) | order_deliveries : location_code (text) , actual_order_id (number) , delivery_status_code (text) , driver_employee_id (number) , truck_id (number) , delivery_date (time)

products : product_name (text) , product_price (number) , product_id (number)


Question: Find the names of customers who are not living in the state of California.

products : product_id (number) , product_name (text) , product_price (number) , product_description (text) | addresses : address_id (number) , address_details (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | customers : customer_id (number) , payment_method (text) , customer_name (text) , customer_phone (text) , customer_email (text) , date_became_customer (time) | regular_orders : regular_order_id (number) , distributer_id (number) | regular_order_products : regular_order_id (number) , product_id (number) | actual_orders : actual_order_id (number) , order_status_code (text) , regular_order_id (number) , actual_order_date (time) | actual_order_products : actual_order_id (number) , product_id (number) | customer_addresses : customer_id (number) , address_id (number) , date_from (time) , address_type (text) , date_to (time) | delivery_routes : route_id (number) , route_name (text) , other_route_details (text) | delivery_route_locations : location_code (text) , route_id (number) , location_address_id (number) , location_name (text) | trucks : truck_id (number) , truck_licence_number (text) , truck_details (text) | employees : employee_id (number) , employee_address_id (number) , employee_name (text) , employee_phone (text) | order_deliveries : location_code (text) , actual_order_id (number) , delivery_status_code (text) , driver_employee_id (number) , truck_id (number) , delivery_date (time)

customers : customer_name (text) , customer_id (number) , customer_id (number) | customer_addresses : customer_id (number) , address_id (number) | addresses : address_id (number) , state_province_county (text) , address_id (number)


Question: List the names and emails of customers who payed by Visa card.

products : product_id (number) , product_name (text) , product_price (number) , product_description (text) | addresses : address_id (number) , address_details (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | customers : customer_id (number) , payment_method (text) , customer_name (text) , customer_phone (text) , customer_email (text) , date_became_customer (time) | regular_orders : regular_order_id (number) , distributer_id (number) | regular_order_products : regular_order_id (number) , product_id (number) | actual_orders : actual_order_id (number) , order_status_code (text) , regular_order_id (number) , actual_order_date (time) | actual_order_products : actual_order_id (number) , product_id (number) | customer_addresses : customer_id (number) , address_id (number) , date_from (time) , address_type (text) , date_to (time) | delivery_routes : route_id (number) , route_name (text) , other_route_details (text) | delivery_route_locations : location_code (text) , route_id (number) , location_address_id (number) , location_name (text) | trucks : truck_id (number) , truck_licence_number (text) , truck_details (text) | employees : employee_id (number) , employee_address_id (number) , employee_name (text) , employee_phone (text) | order_deliveries : location_code (text) , actual_order_id (number) , delivery_status_code (text) , driver_employee_id (number) , truck_id (number) , delivery_date (time)

customers : customer_email (text) , customer_name (text) , payment_method (text) , customer_id (number)


Question: Find the names and phone numbers of customers living in California state.

products : product_id (number) , product_name (text) , product_price (number) , product_description (text) | addresses : address_id (number) , address_details (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | customers : customer_id (number) , payment_method (text) , customer_name (text) , customer_phone (text) , customer_email (text) , date_became_customer (time) | regular_orders : regular_order_id (number) , distributer_id (number) | regular_order_products : regular_order_id (number) , product_id (number) | actual_orders : actual_order_id (number) , order_status_code (text) , regular_order_id (number) , actual_order_date (time) | actual_order_products : actual_order_id (number) , product_id (number) | customer_addresses : customer_id (number) , address_id (number) , date_from (time) , address_type (text) , date_to (time) | delivery_routes : route_id (number) , route_name (text) , other_route_details (text) | delivery_route_locations : location_code (text) , route_id (number) , location_address_id (number) , location_name (text) | trucks : truck_id (number) , truck_licence_number (text) , truck_details (text) | employees : employee_id (number) , employee_address_id (number) , employee_name (text) , employee_phone (text) | order_deliveries : location_code (text) , actual_order_id (number) , delivery_status_code (text) , driver_employee_id (number) , truck_id (number) , delivery_date (time)

customers : customer_name (text) , customer_phone (text) , customer_id (number) , customer_id (number) | customer_addresses : customer_id (number) , address_id (number) | addresses : address_id (number) , state_province_county (text) , address_id (number)


Question: Find the states which do not have any employee in their record.

products : product_id (number) , product_name (text) , product_price (number) , product_description (text) | addresses : address_id (number) , address_details (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | customers : customer_id (number) , payment_method (text) , customer_name (text) , customer_phone (text) , customer_email (text) , date_became_customer (time) | regular_orders : regular_order_id (number) , distributer_id (number) | regular_order_products : regular_order_id (number) , product_id (number) | actual_orders : actual_order_id (number) , order_status_code (text) , regular_order_id (number) , actual_order_date (time) | actual_order_products : actual_order_id (number) , product_id (number) | customer_addresses : customer_id (number) , address_id (number) , date_from (time) , address_type (text) , date_to (time) | delivery_routes : route_id (number) , route_name (text) , other_route_details (text) | delivery_route_locations : location_code (text) , route_id (number) , location_address_id (number) , location_name (text) | trucks : truck_id (number) , truck_licence_number (text) , truck_details (text) | employees : employee_id (number) , employee_address_id (number) , employee_name (text) , employee_phone (text) | order_deliveries : location_code (text) , actual_order_id (number) , delivery_status_code (text) , driver_employee_id (number) , truck_id (number) , delivery_date (time)

addresses : state_province_county (text) , address_id (number) , address_id (number) | customer_addresses : address_id (number) | employees : employee_address_id (number) , employee_id (number)


Question: List the names, phone numbers, and emails of all customers sorted by their dates of becoming customers.

products : product_id (number) , product_name (text) , product_price (number) , product_description (text) | addresses : address_id (number) , address_details (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | customers : customer_id (number) , payment_method (text) , customer_name (text) , customer_phone (text) , customer_email (text) , date_became_customer (time) | regular_orders : regular_order_id (number) , distributer_id (number) | regular_order_products : regular_order_id (number) , product_id (number) | actual_orders : actual_order_id (number) , order_status_code (text) , regular_order_id (number) , actual_order_date (time) | actual_order_products : actual_order_id (number) , product_id (number) | customer_addresses : customer_id (number) , address_id (number) , date_from (time) , address_type (text) , date_to (time) | delivery_routes : route_id (number) , route_name (text) , other_route_details (text) | delivery_route_locations : location_code (text) , route_id (number) , location_address_id (number) , location_name (text) | trucks : truck_id (number) , truck_licence_number (text) , truck_details (text) | employees : employee_id (number) , employee_address_id (number) , employee_name (text) , employee_phone (text) | order_deliveries : location_code (text) , actual_order_id (number) , delivery_status_code (text) , driver_employee_id (number) , truck_id (number) , delivery_date (time)

customers : customer_name (text) , customer_phone (text) , customer_email (text) , date_became_customer (time) , customer_id (number)


Question: Find the name of the first 5 customers.

products : product_id (number) , product_name (text) , product_price (number) , product_description (text) | addresses : address_id (number) , address_details (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | customers : customer_id (number) , payment_method (text) , customer_name (text) , customer_phone (text) , customer_email (text) , date_became_customer (time) | regular_orders : regular_order_id (number) , distributer_id (number) | regular_order_products : regular_order_id (number) , product_id (number) | actual_orders : actual_order_id (number) , order_status_code (text) , regular_order_id (number) , actual_order_date (time) | actual_order_products : actual_order_id (number) , product_id (number) | customer_addresses : customer_id (number) , address_id (number) , date_from (time) , address_type (text) , date_to (time) | delivery_routes : route_id (number) , route_name (text) , other_route_details (text) | delivery_route_locations : location_code (text) , route_id (number) , location_address_id (number) , location_name (text) | trucks : truck_id (number) , truck_licence_number (text) , truck_details (text) | employees : employee_id (number) , employee_address_id (number) , employee_name (text) , employee_phone (text) | order_deliveries : location_code (text) , actual_order_id (number) , delivery_status_code (text) , driver_employee_id (number) , truck_id (number) , delivery_date (time)

customers : customer_name (text) , date_became_customer (time) , customer_id (number)


Question: Find the payment method that is used most frequently.

products : product_id (number) , product_name (text) , product_price (number) , product_description (text) | addresses : address_id (number) , address_details (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | customers : customer_id (number) , payment_method (text) , customer_name (text) , customer_phone (text) , customer_email (text) , date_became_customer (time) | regular_orders : regular_order_id (number) , distributer_id (number) | regular_order_products : regular_order_id (number) , product_id (number) | actual_orders : actual_order_id (number) , order_status_code (text) , regular_order_id (number) , actual_order_date (time) | actual_order_products : actual_order_id (number) , product_id (number) | customer_addresses : customer_id (number) , address_id (number) , date_from (time) , address_type (text) , date_to (time) | delivery_routes : route_id (number) , route_name (text) , other_route_details (text) | delivery_route_locations : location_code (text) , route_id (number) , location_address_id (number) , location_name (text) | trucks : truck_id (number) , truck_licence_number (text) , truck_details (text) | employees : employee_id (number) , employee_address_id (number) , employee_name (text) , employee_phone (text) | order_deliveries : location_code (text) , actual_order_id (number) , delivery_status_code (text) , driver_employee_id (number) , truck_id (number) , delivery_date (time)

customers : payment_method (text) , customer_id (number)


Question: List the names of all routes in alphabetic order.

products : product_id (number) , product_name (text) , product_price (number) , product_description (text) | addresses : address_id (number) , address_details (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | customers : customer_id (number) , payment_method (text) , customer_name (text) , customer_phone (text) , customer_email (text) , date_became_customer (time) | regular_orders : regular_order_id (number) , distributer_id (number) | regular_order_products : regular_order_id (number) , product_id (number) | actual_orders : actual_order_id (number) , order_status_code (text) , regular_order_id (number) , actual_order_date (time) | actual_order_products : actual_order_id (number) , product_id (number) | customer_addresses : customer_id (number) , address_id (number) , date_from (time) , address_type (text) , date_to (time) | delivery_routes : route_id (number) , route_name (text) , other_route_details (text) | delivery_route_locations : location_code (text) , route_id (number) , location_address_id (number) , location_name (text) | trucks : truck_id (number) , truck_licence_number (text) , truck_details (text) | employees : employee_id (number) , employee_address_id (number) , employee_name (text) , employee_phone (text) | order_deliveries : location_code (text) , actual_order_id (number) , delivery_status_code (text) , driver_employee_id (number) , truck_id (number) , delivery_date (time)

delivery_routes : route_name (text) , route_id (number)


Question: Find the name of route that has the highest number of deliveries.

products : product_id (number) , product_name (text) , product_price (number) , product_description (text) | addresses : address_id (number) , address_details (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | customers : customer_id (number) , payment_method (text) , customer_name (text) , customer_phone (text) , customer_email (text) , date_became_customer (time) | regular_orders : regular_order_id (number) , distributer_id (number) | regular_order_products : regular_order_id (number) , product_id (number) | actual_orders : actual_order_id (number) , order_status_code (text) , regular_order_id (number) , actual_order_date (time) | actual_order_products : actual_order_id (number) , product_id (number) | customer_addresses : customer_id (number) , address_id (number) , date_from (time) , address_type (text) , date_to (time) | delivery_routes : route_id (number) , route_name (text) , other_route_details (text) | delivery_route_locations : location_code (text) , route_id (number) , location_address_id (number) , location_name (text) | trucks : truck_id (number) , truck_licence_number (text) , truck_details (text) | employees : employee_id (number) , employee_address_id (number) , employee_name (text) , employee_phone (text) | order_deliveries : location_code (text) , actual_order_id (number) , delivery_status_code (text) , driver_employee_id (number) , truck_id (number) , delivery_date (time)

delivery_routes : route_name (text) , route_id (number) , route_id (number) | delivery_route_locations : route_id (number) , location_code (number)


Question: List the state names and the number of customers living in each state.

products : product_id (number) , product_name (text) , product_price (number) , product_description (text) | addresses : address_id (number) , address_details (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | customers : customer_id (number) , payment_method (text) , customer_name (text) , customer_phone (text) , customer_email (text) , date_became_customer (time) | regular_orders : regular_order_id (number) , distributer_id (number) | regular_order_products : regular_order_id (number) , product_id (number) | actual_orders : actual_order_id (number) , order_status_code (text) , regular_order_id (number) , actual_order_date (time) | actual_order_products : actual_order_id (number) , product_id (number) | customer_addresses : customer_id (number) , address_id (number) , date_from (time) , address_type (text) , date_to (time) | delivery_routes : route_id (number) , route_name (text) , other_route_details (text) | delivery_route_locations : location_code (text) , route_id (number) , location_address_id (number) , location_name (text) | trucks : truck_id (number) , truck_licence_number (text) , truck_details (text) | employees : employee_id (number) , employee_address_id (number) , employee_name (text) , employee_phone (text) | order_deliveries : location_code (text) , actual_order_id (number) , delivery_status_code (text) , driver_employee_id (number) , truck_id (number) , delivery_date (time)

addresses : state_province_county (text) , address_id (number) , address_id (number) | customer_addresses : address_id (number)


Question: How many authors are there?

inst : instid (number) , name (text) , country (text) | authors : authid (number) , lname (text) , fname (text) | papers : paperid (number) , title (text) | authorship : authid (number) , instid (number) , paperid (number) , authorder (number)


Question: Count the number of authors.

inst : instid (number) , name (text) , country (text) | authors : authid (number) , lname (text) , fname (text) | papers : paperid (number) , title (text) | authorship : authid (number) , instid (number) , paperid (number) , authorder (number)


Question: How many institutions are there?

inst : instid (number) , name (text) , country (text) | authors : authid (number) , lname (text) , fname (text) | papers : paperid (number) , title (text) | authorship : authid (number) , instid (number) , paperid (number) , authorder (number)


Question: Count the number of institutions.

inst : instid (number) , name (text) , country (text) | authors : authid (number) , lname (text) , fname (text) | papers : paperid (number) , title (text) | authorship : authid (number) , instid (number) , paperid (number) , authorder (number)


Question: How many papers are published in total?

inst : instid (number) , name (text) , country (text) | authors : authid (number) , lname (text) , fname (text) | papers : paperid (number) , title (text) | authorship : authid (number) , instid (number) , paperid (number) , authorder (number)


Question: Count the number of total papers.

inst : instid (number) , name (text) , country (text) | authors : authid (number) , lname (text) , fname (text) | papers : paperid (number) , title (text) | authorship : authid (number) , instid (number) , paperid (number) , authorder (number)


Question: What are the titles of papers published by "Jeremy Gibbons"?

inst : instid (number) , name (text) , country (text) | authors : authid (number) , lname (text) , fname (text) | papers : paperid (number) , title (text) | authorship : authid (number) , instid (number) , paperid (number) , authorder (number)

papers : title (text) , paperid (number) , paperid (number) | authors : authid (number) , fname (text) , lname (text) , authid (number) | authorship : authid (number) , paperid (number) , authid (number)


Question: Find the titles of all the papers written by "Jeremy Gibbons"

inst : instid (number) , name (text) , country (text) | authors : authid (number) , lname (text) , fname (text) | papers : paperid (number) , title (text) | authorship : authid (number) , instid (number) , paperid (number) , authorder (number)

papers : title (text) , paperid (number) , paperid (number) | authors : authid (number) , fname (text) , lname (text) , authid (number) | authorship : authid (number) , paperid (number) , authid (number)


Question: Find all the papers published by "Aaron Turon".

inst : instid (number) , name (text) , country (text) | authors : authid (number) , lname (text) , fname (text) | papers : paperid (number) , title (text) | authorship : authid (number) , instid (number) , paperid (number) , authorder (number)

papers : title (text) , paperid (number) , paperid (number) | authors : authid (number) , fname (text) , lname (text) , authid (number) | authorship : authid (number) , paperid (number) , authid (number)


Question: Find the titles of all the papers written by "Aaron Turon".

inst : instid (number) , name (text) , country (text) | authors : authid (number) , lname (text) , fname (text) | papers : paperid (number) , title (text) | authorship : authid (number) , instid (number) , paperid (number) , authorder (number)

papers : title (text) , paperid (number) , paperid (number) | authors : authid (number) , fname (text) , lname (text) , authid (number) | authorship : authid (number) , paperid (number) , authid (number)


Question: How many papers have "Atsushi Ohori" published?

inst : instid (number) , name (text) , country (text) | authors : authid (number) , lname (text) , fname (text) | papers : paperid (number) , title (text) | authorship : authid (number) , instid (number) , paperid (number) , authorder (number)

authors : authid (number) , fname (text) , lname (text) , authid (number) | authorship : authid (number) , paperid (number) , authid (number) | papers : paperid (number) , paperid (number)


Question: How many papers are "Atsushi Ohori" the author of?

inst : instid (number) , name (text) , country (text) | authors : authid (number) , lname (text) , fname (text) | papers : paperid (number) , title (text) | authorship : authid (number) , instid (number) , paperid (number) , authorder (number)

authors : authid (number) , fname (text) , lname (text) , authid (number) | authorship : authid (number) , paperid (number) , authid (number) | papers : paperid (number) , paperid (number)


Question: What is the name of the institution that "Matthias Blume" belongs to?

inst : instid (number) , name (text) , country (text) | authors : authid (number) , lname (text) , fname (text) | papers : paperid (number) , title (text) | authorship : authid (number) , instid (number) , paperid (number) , authorder (number)

inst : name (text) , instid (number) , instid (number) | authors : authid (number) , fname (text) , lname (text) , authid (number) | authorship : authid (number) , instid (number) , authid (number)


Question: Which institution is the author "Matthias Blume" belong to? Give me the name of the institution.

inst : instid (number) , name (text) , country (text) | authors : authid (number) , lname (text) , fname (text) | papers : paperid (number) , title (text) | authorship : authid (number) , instid (number) , paperid (number) , authorder (number)

inst : name (text) , instid (number) , instid (number) | authors : authid (number) , fname (text) , lname (text) , authid (number) | authorship : authid (number) , instid (number) , authid (number)


Question: Which institution does "Katsuhiro Ueno" belong to?

inst : instid (number) , name (text) , country (text) | authors : authid (number) , lname (text) , fname (text) | papers : paperid (number) , title (text) | authorship : authid (number) , instid (number) , paperid (number) , authorder (number)

inst : name (text) , instid (number) , instid (number) | authors : authid (number) , fname (text) , lname (text) , authid (number) | authorship : authid (number) , instid (number) , authid (number)


Question: What is the name of the institution the author "Katsuhiro Ueno" belongs to?

inst : instid (number) , name (text) , country (text) | authors : authid (number) , lname (text) , fname (text) | papers : paperid (number) , title (text) | authorship : authid (number) , instid (number) , paperid (number) , authorder (number)

inst : name (text) , instid (number) , instid (number) | authors : authid (number) , fname (text) , lname (text) , authid (number) | authorship : authid (number) , instid (number) , authid (number)


Question: Who belong to the institution "University of Oxford"? Show the first names and last names.

inst : instid (number) , name (text) , country (text) | authors : authid (number) , lname (text) , fname (text) | papers : paperid (number) , title (text) | authorship : authid (number) , instid (number) , paperid (number) , authorder (number)

authors : fname (text) , lname (text) , authid (number) , authid (number) | authorship : authid (number) , instid (number) , authid (number) | inst : instid (number) , name (text) , instid (number)


Question: Find the first names and last names of the authors whose institution affiliation is "University of Oxford".

inst : instid (number) , name (text) , country (text) | authors : authid (number) , lname (text) , fname (text) | papers : paperid (number) , title (text) | authorship : authid (number) , instid (number) , paperid (number) , authorder (number)

authors : fname (text) , lname (text) , authid (number) , authid (number) | authorship : authid (number) , instid (number) , authid (number) | inst : instid (number) , name (text) , instid (number)


Question: Which authors belong to the institution "Google"? Show the first names and last names.

inst : instid (number) , name (text) , country (text) | authors : authid (number) , lname (text) , fname (text) | papers : paperid (number) , title (text) | authorship : authid (number) , instid (number) , paperid (number) , authorder (number)

authors : fname (text) , lname (text) , authid (number) , authid (number) | authorship : authid (number) , instid (number) , authid (number) | inst : instid (number) , name (text) , instid (number)


Question: Find the first names and last names of the authors whose institution affiliation is "Google".

inst : instid (number) , name (text) , country (text) | authors : authid (number) , lname (text) , fname (text) | papers : paperid (number) , title (text) | authorship : authid (number) , instid (number) , paperid (number) , authorder (number)

authors : fname (text) , lname (text) , authid (number) , authid (number) | authorship : authid (number) , instid (number) , authid (number) | inst : instid (number) , name (text) , instid (number)


Question: What are the last names of the author of the paper titled "Binders Unbound"?

inst : instid (number) , name (text) , country (text) | authors : authid (number) , lname (text) , fname (text) | papers : paperid (number) , title (text) | authorship : authid (number) , instid (number) , paperid (number) , authorder (number)

authors : lname (text) , authid (number) , authid (number) | authorship : authid (number) , paperid (number) , authid (number) | papers : paperid (number) , title (text) , paperid (number)


Question: Who is the author of the paper titled "Binders Unbound"? Give me the last name.

inst : instid (number) , name (text) , country (text) | authors : authid (number) , lname (text) , fname (text) | papers : paperid (number) , title (text) | authorship : authid (number) , instid (number) , paperid (number) , authorder (number)

authors : lname (text) , authid (number) , authid (number) | authorship : authid (number) , paperid (number) , authid (number) | papers : paperid (number) , title (text) , paperid (number)


Question: Find the first and last name of the author(s) who wrote the paper "Nameless, Painless".

inst : instid (number) , name (text) , country (text) | authors : authid (number) , lname (text) , fname (text) | papers : paperid (number) , title (text) | authorship : authid (number) , instid (number) , paperid (number) , authorder (number)

authors : fname (text) , lname (text) , authid (number) , authid (number) | authorship : authid (number) , paperid (number) , authid (number) | papers : paperid (number) , title (text) , paperid (number)


Question: What are the first and last name of the author who published the paper titled "Nameless, Painless"?

inst : instid (number) , name (text) , country (text) | authors : authid (number) , lname (text) , fname (text) | papers : paperid (number) , title (text) | authorship : authid (number) , instid (number) , paperid (number) , authorder (number)

authors : fname (text) , lname (text) , authid (number) , authid (number) | authorship : authid (number) , paperid (number) , authid (number) | papers : paperid (number) , title (text) , paperid (number)


Question: What are the papers published under the institution "Indiana University"?

inst : instid (number) , name (text) , country (text) | authors : authid (number) , lname (text) , fname (text) | papers : paperid (number) , title (text) | authorship : authid (number) , instid (number) , paperid (number) , authorder (number)

papers : title (text) , paperid (number) , paperid (number) | authorship : paperid (number) , instid (number) , authid (number) | inst : instid (number) , name (text) , instid (number)


Question: List the titles of the papers whose authors are from the institution "Indiana University".

inst : instid (number) , name (text) , country (text) | authors : authid (number) , lname (text) , fname (text) | papers : paperid (number) , title (text) | authorship : authid (number) , instid (number) , paperid (number) , authorder (number)

papers : title (text) , paperid (number) , paperid (number) | authorship : paperid (number) , instid (number) , authid (number) | inst : instid (number) , name (text) , instid (number)


Question: Find all the papers published by the institution "Google".

inst : instid (number) , name (text) , country (text) | authors : authid (number) , lname (text) , fname (text) | papers : paperid (number) , title (text) | authorship : authid (number) , instid (number) , paperid (number) , authorder (number)

papers : title (text) , paperid (number) , paperid (number) | authorship : paperid (number) , instid (number) , authid (number) | inst : instid (number) , name (text) , instid (number)


Question: Which papers were written by authors from the institution "Google"?

inst : instid (number) , name (text) , country (text) | authors : authid (number) , lname (text) , fname (text) | papers : paperid (number) , title (text) | authorship : authid (number) , instid (number) , paperid (number) , authorder (number)

papers : title (text) , paperid (number) , paperid (number) | authorship : paperid (number) , instid (number) , authid (number) | inst : instid (number) , name (text) , instid (number)


Question: How many papers are published by the institution "Tokohu University"?

inst : instid (number) , name (text) , country (text) | authors : authid (number) , lname (text) , fname (text) | papers : paperid (number) , title (text) | authorship : authid (number) , instid (number) , paperid (number) , authorder (number)

papers : title (text) , paperid (number) , paperid (number) | authorship : paperid (number) , instid (number) , authid (number) | inst : instid (number) , name (text) , instid (number)


Question: Find the number of papers published by authors from the institution "Tokohu University".

inst : instid (number) , name (text) , country (text) | authors : authid (number) , lname (text) , fname (text) | papers : paperid (number) , title (text) | authorship : authid (number) , instid (number) , paperid (number) , authorder (number)

papers : title (text) , paperid (number) , paperid (number) | authorship : paperid (number) , instid (number) , authid (number) | inst : instid (number) , name (text) , instid (number)