Question: How many singers do we have?

stadium : stadium_id (number) , location (text) , name (text) , capacity (number) , highest (number) , lowest (number) , average (number) | singer : singer_id (number) , name (text) , country (text) , song_name (text) , song_release_year (text) , age (number) , is_male (others) | concert : concert_id (number) , concert_name (text) , theme (text) , stadium_id (text) , year (text) | singer_in_concert : concert_id (number) , singer_id (text)


Question: What is the total number of singers?

stadium : stadium_id (number) , location (text) , name (text) , capacity (number) , highest (number) , lowest (number) , average (number) | singer : singer_id (number) , name (text) , country (text) , song_name (text) , song_release_year (text) , age (number) , is_male (others) | concert : concert_id (number) , concert_name (text) , theme (text) , stadium_id (text) , year (text) | singer_in_concert : concert_id (number) , singer_id (text)


Question: Show name, country, age for all singers ordered by age from the oldest to the youngest.

stadium : stadium_id (number) , location (text) , name (text) , capacity (number) , highest (number) , lowest (number) , average (number) | singer : singer_id (number) , name (text) , country (text) , song_name (text) , song_release_year (text) , age (number) , is_male (others) | concert : concert_id (number) , concert_name (text) , theme (text) , stadium_id (text) , year (text) | singer_in_concert : concert_id (number) , singer_id (text)

singer : name (text) , country (text) , age (number) , singer_id (number)


Question: What are the names, countries, and ages for every singer in descending order of age?

stadium : stadium_id (number) , location (text) , name (text) , capacity (number) , highest (number) , lowest (number) , average (number) | singer : singer_id (number) , name (text) , country (text) , song_name (text) , song_release_year (text) , age (number) , is_male (others) | concert : concert_id (number) , concert_name (text) , theme (text) , stadium_id (text) , year (text) | singer_in_concert : concert_id (number) , singer_id (text)

singer : name (text) , country (text) , age (number) , singer_id (number)


Question: What is the average, minimum, and maximum age of all singers from France?

stadium : stadium_id (number) , location (text) , name (text) , capacity (number) , highest (number) , lowest (number) , average (number) | singer : singer_id (number) , name (text) , country (text) , song_name (text) , song_release_year (text) , age (number) , is_male (others) | concert : concert_id (number) , concert_name (text) , theme (text) , stadium_id (text) , year (text) | singer_in_concert : concert_id (number) , singer_id (text)

singer : age (number) , country (text) , singer_id (number)


Question: What is the average, minimum, and maximum age for all French singers?

stadium : stadium_id (number) , location (text) , name (text) , capacity (number) , highest (number) , lowest (number) , average (number) | singer : singer_id (number) , name (text) , country (text) , song_name (text) , song_release_year (text) , age (number) , is_male (others) | concert : concert_id (number) , concert_name (text) , theme (text) , stadium_id (text) , year (text) | singer_in_concert : concert_id (number) , singer_id (text)

singer : age (number) , country (text) , singer_id (number)


Question: Show the name and the release year of the song by the youngest singer.

stadium : stadium_id (number) , location (text) , name (text) , capacity (number) , highest (number) , lowest (number) , average (number) | singer : singer_id (number) , name (text) , country (text) , song_name (text) , song_release_year (text) , age (number) , is_male (others) | concert : concert_id (number) , concert_name (text) , theme (text) , stadium_id (text) , year (text) | singer_in_concert : concert_id (number) , singer_id (text)

singer : song_name (text) , song_release_year (text) , age (number) , singer_id (number)


Question: What are the names and release years for all the songs of the youngest singer?

stadium : stadium_id (number) , location (text) , name (text) , capacity (number) , highest (number) , lowest (number) , average (number) | singer : singer_id (number) , name (text) , country (text) , song_name (text) , song_release_year (text) , age (number) , is_male (others) | concert : concert_id (number) , concert_name (text) , theme (text) , stadium_id (text) , year (text) | singer_in_concert : concert_id (number) , singer_id (text)

singer : song_name (text) , song_release_year (text) , age (number) , singer_id (number)


Question: What are all distinct countries where singers above age 20 are from?

stadium : stadium_id (number) , location (text) , name (text) , capacity (number) , highest (number) , lowest (number) , average (number) | singer : singer_id (number) , name (text) , country (text) , song_name (text) , song_release_year (text) , age (number) , is_male (others) | concert : concert_id (number) , concert_name (text) , theme (text) , stadium_id (text) , year (text) | singer_in_concert : concert_id (number) , singer_id (text)

singer : country (text) , age (number) , singer_id (number)


Question: What are  the different countries with singers above age 20?

stadium : stadium_id (number) , location (text) , name (text) , capacity (number) , highest (number) , lowest (number) , average (number) | singer : singer_id (number) , name (text) , country (text) , song_name (text) , song_release_year (text) , age (number) , is_male (others) | concert : concert_id (number) , concert_name (text) , theme (text) , stadium_id (text) , year (text) | singer_in_concert : concert_id (number) , singer_id (text)

singer : country (text) , age (number) , singer_id (number)


Question: Show all countries and the number of singers in each country.

stadium : stadium_id (number) , location (text) , name (text) , capacity (number) , highest (number) , lowest (number) , average (number) | singer : singer_id (number) , name (text) , country (text) , song_name (text) , song_release_year (text) , age (number) , is_male (others) | concert : concert_id (number) , concert_name (text) , theme (text) , stadium_id (text) , year (text) | singer_in_concert : concert_id (number) , singer_id (text)

singer : country (text) , singer_id (number)


Question: How many singers are from each country?

stadium : stadium_id (number) , location (text) , name (text) , capacity (number) , highest (number) , lowest (number) , average (number) | singer : singer_id (number) , name (text) , country (text) , song_name (text) , song_release_year (text) , age (number) , is_male (others) | concert : concert_id (number) , concert_name (text) , theme (text) , stadium_id (text) , year (text) | singer_in_concert : concert_id (number) , singer_id (text)

singer : country (text) , singer_id (number)


Question: List all song names by singers above the average age.

stadium : stadium_id (number) , location (text) , name (text) , capacity (number) , highest (number) , lowest (number) , average (number) | singer : singer_id (number) , name (text) , country (text) , song_name (text) , song_release_year (text) , age (number) , is_male (others) | concert : concert_id (number) , concert_name (text) , theme (text) , stadium_id (text) , year (text) | singer_in_concert : concert_id (number) , singer_id (text)

singer : song_name (text) , age (number) , singer_id (number)


Question: What are all the song names by singers who are older than average?

stadium : stadium_id (number) , location (text) , name (text) , capacity (number) , highest (number) , lowest (number) , average (number) | singer : singer_id (number) , name (text) , country (text) , song_name (text) , song_release_year (text) , age (number) , is_male (others) | concert : concert_id (number) , concert_name (text) , theme (text) , stadium_id (text) , year (text) | singer_in_concert : concert_id (number) , singer_id (text)

singer : song_name (text) , age (number) , singer_id (number)


Question: Show location and name for all stadiums with a capacity between 5000 and 10000.

stadium : stadium_id (number) , location (text) , name (text) , capacity (number) , highest (number) , lowest (number) , average (number) | singer : singer_id (number) , name (text) , country (text) , song_name (text) , song_release_year (text) , age (number) , is_male (others) | concert : concert_id (number) , concert_name (text) , theme (text) , stadium_id (text) , year (text) | singer_in_concert : concert_id (number) , singer_id (text)

stadium : location (text) , name (text) , capacity (number) , stadium_id (number)


Question: What are the locations and names of all stations with capacity between 5000 and 10000?

stadium : stadium_id (number) , location (text) , name (text) , capacity (number) , highest (number) , lowest (number) , average (number) | singer : singer_id (number) , name (text) , country (text) , song_name (text) , song_release_year (text) , age (number) , is_male (others) | concert : concert_id (number) , concert_name (text) , theme (text) , stadium_id (text) , year (text) | singer_in_concert : concert_id (number) , singer_id (text)

stadium : location (text) , name (text) , capacity (number) , stadium_id (number)


Question: What is the maximum capacity and the average of all stadiums ?

stadium : stadium_id (number) , location (text) , name (text) , capacity (number) , highest (number) , lowest (number) , average (number) | singer : singer_id (number) , name (text) , country (text) , song_name (text) , song_release_year (text) , age (number) , is_male (others) | concert : concert_id (number) , concert_name (text) , theme (text) , stadium_id (text) , year (text) | singer_in_concert : concert_id (number) , singer_id (text)

stadium : capacity (number) , average (number) , stadium_id (number)


Question: What is the average and maximum capacities for all stadiums ?

stadium : stadium_id (number) , location (text) , name (text) , capacity (number) , highest (number) , lowest (number) , average (number) | singer : singer_id (number) , name (text) , country (text) , song_name (text) , song_release_year (text) , age (number) , is_male (others) | concert : concert_id (number) , concert_name (text) , theme (text) , stadium_id (text) , year (text) | singer_in_concert : concert_id (number) , singer_id (text)

stadium : capacity (number) , stadium_id (number)


Question: What is the name and capacity for the stadium with highest average attendance?

stadium : stadium_id (number) , location (text) , name (text) , capacity (number) , highest (number) , lowest (number) , average (number) | singer : singer_id (number) , name (text) , country (text) , song_name (text) , song_release_year (text) , age (number) , is_male (others) | concert : concert_id (number) , concert_name (text) , theme (text) , stadium_id (text) , year (text) | singer_in_concert : concert_id (number) , singer_id (text)

stadium : name (text) , capacity (number) , average (number) , stadium_id (number)


Question: What is the name and capacity for the stadium with the highest average attendance?

stadium : stadium_id (number) , location (text) , name (text) , capacity (number) , highest (number) , lowest (number) , average (number) | singer : singer_id (number) , name (text) , country (text) , song_name (text) , song_release_year (text) , age (number) , is_male (others) | concert : concert_id (number) , concert_name (text) , theme (text) , stadium_id (text) , year (text) | singer_in_concert : concert_id (number) , singer_id (text)

stadium : name (text) , capacity (number) , average (number) , stadium_id (number)


Question: How many concerts are there in year 2014 or 2015?

stadium : stadium_id (number) , location (text) , name (text) , capacity (number) , highest (number) , lowest (number) , average (number) | singer : singer_id (number) , name (text) , country (text) , song_name (text) , song_release_year (text) , age (number) , is_male (others) | concert : concert_id (number) , concert_name (text) , theme (text) , stadium_id (text) , year (text) | singer_in_concert : concert_id (number) , singer_id (text)

concert : year (text) , concert_id (number)


Question: How many concerts occurred in 2014 or 2015?

stadium : stadium_id (number) , location (text) , name (text) , capacity (number) , highest (number) , lowest (number) , average (number) | singer : singer_id (number) , name (text) , country (text) , song_name (text) , song_release_year (text) , age (number) , is_male (others) | concert : concert_id (number) , concert_name (text) , theme (text) , stadium_id (text) , year (text) | singer_in_concert : concert_id (number) , singer_id (text)

concert : year (text) , concert_id (number)


Question: Show the stadium name and the number of concerts in each stadium.

stadium : stadium_id (number) , location (text) , name (text) , capacity (number) , highest (number) , lowest (number) , average (number) | singer : singer_id (number) , name (text) , country (text) , song_name (text) , song_release_year (text) , age (number) , is_male (others) | concert : concert_id (number) , concert_name (text) , theme (text) , stadium_id (text) , year (text) | singer_in_concert : concert_id (number) , singer_id (text)

stadium : name (text) , stadium_id (number) | concert : stadium_id (text) , concert_id (number)


Question: For each stadium, how many concerts play there?

stadium : stadium_id (number) , location (text) , name (text) , capacity (number) , highest (number) , lowest (number) , average (number) | singer : singer_id (number) , name (text) , country (text) , song_name (text) , song_release_year (text) , age (number) , is_male (others) | concert : concert_id (number) , concert_name (text) , theme (text) , stadium_id (text) , year (text) | singer_in_concert : concert_id (number) , singer_id (text)

stadium : name (text) , stadium_id (number) | concert : stadium_id (text) , concert_id (number)


Question: Show the stadium name and capacity with most number of concerts in year 2014 or after.

stadium : stadium_id (number) , location (text) , name (text) , capacity (number) , highest (number) , lowest (number) , average (number) | singer : singer_id (number) , name (text) , country (text) , song_name (text) , song_release_year (text) , age (number) , is_male (others) | concert : concert_id (number) , concert_name (text) , theme (text) , stadium_id (text) , year (text) | singer_in_concert : concert_id (number) , singer_id (text)

stadium : name (text) , capacity (number) , stadium_id (number) | concert : stadium_id (text) , year (text) , concert_id (number)


Question: What is the name and capacity of the stadium with the most concerts after 2013 ?

stadium : stadium_id (number) , location (text) , name (text) , capacity (number) , highest (number) , lowest (number) , average (number) | singer : singer_id (number) , name (text) , country (text) , song_name (text) , song_release_year (text) , age (number) , is_male (others) | concert : concert_id (number) , concert_name (text) , theme (text) , stadium_id (text) , year (text) | singer_in_concert : concert_id (number) , singer_id (text)

stadium : name (text) , capacity (number) , stadium_id (number) | concert : stadium_id (text) , year (text) , concert_id (number)


Question: Which year has most number of concerts?

stadium : stadium_id (number) , location (text) , name (text) , capacity (number) , highest (number) , lowest (number) , average (number) | singer : singer_id (number) , name (text) , country (text) , song_name (text) , song_release_year (text) , age (number) , is_male (others) | concert : concert_id (number) , concert_name (text) , theme (text) , stadium_id (text) , year (text) | singer_in_concert : concert_id (number) , singer_id (text)

concert : year (text) , concert_id (number)


Question: What is the year that had the most concerts?

stadium : stadium_id (number) , location (text) , name (text) , capacity (number) , highest (number) , lowest (number) , average (number) | singer : singer_id (number) , name (text) , country (text) , song_name (text) , song_release_year (text) , age (number) , is_male (others) | concert : concert_id (number) , concert_name (text) , theme (text) , stadium_id (text) , year (text) | singer_in_concert : concert_id (number) , singer_id (text)

concert : year (text) , concert_id (number)


Question: Show the stadium names without any concert.

stadium : stadium_id (number) , location (text) , name (text) , capacity (number) , highest (number) , lowest (number) , average (number) | singer : singer_id (number) , name (text) , country (text) , song_name (text) , song_release_year (text) , age (number) , is_male (others) | concert : concert_id (number) , concert_name (text) , theme (text) , stadium_id (text) , year (text) | singer_in_concert : concert_id (number) , singer_id (text)

stadium : name (text) , stadium_id (number) | concert : stadium_id (text) , concert_id (number)


Question: What are the names of the stadiums without any concerts?

stadium : stadium_id (number) , location (text) , name (text) , capacity (number) , highest (number) , lowest (number) , average (number) | singer : singer_id (number) , name (text) , country (text) , song_name (text) , song_release_year (text) , age (number) , is_male (others) | concert : concert_id (number) , concert_name (text) , theme (text) , stadium_id (text) , year (text) | singer_in_concert : concert_id (number) , singer_id (text)

stadium : name (text) , stadium_id (number) | concert : stadium_id (text) , concert_id (number)


Question: Show countries where a singer above age 40 and a singer below 30 are from.

stadium : stadium_id (number) , location (text) , name (text) , capacity (number) , highest (number) , lowest (number) , average (number) | singer : singer_id (number) , name (text) , country (text) , song_name (text) , song_release_year (text) , age (number) , is_male (others) | concert : concert_id (number) , concert_name (text) , theme (text) , stadium_id (text) , year (text) | singer_in_concert : concert_id (number) , singer_id (text)

singer : country (text) , age (number) , singer_id (number)


Question: Show names for all stadiums except for stadiums having a concert in year 2014.

stadium : stadium_id (number) , location (text) , name (text) , capacity (number) , highest (number) , lowest (number) , average (number) | singer : singer_id (number) , name (text) , country (text) , song_name (text) , song_release_year (text) , age (number) , is_male (others) | concert : concert_id (number) , concert_name (text) , theme (text) , stadium_id (text) , year (text) | singer_in_concert : concert_id (number) , singer_id (text)

stadium : name (text) , stadium_id (number) | concert : stadium_id (text) , year (text) , concert_id (number)


Question: What are the names of all stadiums that did not have a concert in 2014?

stadium : stadium_id (number) , location (text) , name (text) , capacity (number) , highest (number) , lowest (number) , average (number) | singer : singer_id (number) , name (text) , country (text) , song_name (text) , song_release_year (text) , age (number) , is_male (others) | concert : concert_id (number) , concert_name (text) , theme (text) , stadium_id (text) , year (text) | singer_in_concert : concert_id (number) , singer_id (text)

stadium : name (text) , stadium_id (number) | concert : stadium_id (text) , year (text) , concert_id (number)


Question: Show the name and theme for all concerts and the number of singers in each concert.

stadium : stadium_id (number) , location (text) , name (text) , capacity (number) , highest (number) , lowest (number) , average (number) | singer : singer_id (number) , name (text) , country (text) , song_name (text) , song_release_year (text) , age (number) , is_male (others) | concert : concert_id (number) , concert_name (text) , theme (text) , stadium_id (text) , year (text) | singer_in_concert : concert_id (number) , singer_id (text)

concert : concert_name (text) , theme (text) , concert_id (number) | singer_in_concert : concert_id (number)


Question: What are the names , themes , and number of singers for every concert ?

stadium : stadium_id (number) , location (text) , name (text) , capacity (number) , highest (number) , lowest (number) , average (number) | singer : singer_id (number) , name (text) , country (text) , song_name (text) , song_release_year (text) , age (number) , is_male (others) | concert : concert_id (number) , concert_name (text) , theme (text) , stadium_id (text) , year (text) | singer_in_concert : concert_id (number) , singer_id (text)

concert : concert_name (text) , theme (text) , concert_id (number) | singer_in_concert : concert_id (number)


Question: List singer names and number of concerts for each singer.

stadium : stadium_id (number) , location (text) , name (text) , capacity (number) , highest (number) , lowest (number) , average (number) | singer : singer_id (number) , name (text) , country (text) , song_name (text) , song_release_year (text) , age (number) , is_male (others) | concert : concert_id (number) , concert_name (text) , theme (text) , stadium_id (text) , year (text) | singer_in_concert : concert_id (number) , singer_id (text)

singer : name (text) , singer_id (number) | singer_in_concert : singer_id (text) , concert_id (number)


Question: What are the names of the singers and number of concerts for each person?

stadium : stadium_id (number) , location (text) , name (text) , capacity (number) , highest (number) , lowest (number) , average (number) | singer : singer_id (number) , name (text) , country (text) , song_name (text) , song_release_year (text) , age (number) , is_male (others) | concert : concert_id (number) , concert_name (text) , theme (text) , stadium_id (text) , year (text) | singer_in_concert : concert_id (number) , singer_id (text)

singer : name (text) , singer_id (number) | singer_in_concert : singer_id (text) , concert_id (number)


Question: List all singer names in concerts in year 2014.

stadium : stadium_id (number) , location (text) , name (text) , capacity (number) , highest (number) , lowest (number) , average (number) | singer : singer_id (number) , name (text) , country (text) , song_name (text) , song_release_year (text) , age (number) , is_male (others) | concert : concert_id (number) , concert_name (text) , theme (text) , stadium_id (text) , year (text) | singer_in_concert : concert_id (number) , singer_id (text)

singer : name (text) , singer_id (number) | singer_in_concert : singer_id (text) , concert_id (number) | concert : concert_id (number) , year (text)


Question: What are the names of the singers who performed in a concert in 2014?

stadium : stadium_id (number) , location (text) , name (text) , capacity (number) , highest (number) , lowest (number) , average (number) | singer : singer_id (number) , name (text) , country (text) , song_name (text) , song_release_year (text) , age (number) , is_male (others) | concert : concert_id (number) , concert_name (text) , theme (text) , stadium_id (text) , year (text) | singer_in_concert : concert_id (number) , singer_id (text)

singer : name (text) , singer_id (number) | singer_in_concert : singer_id (text) , concert_id (number) | concert : concert_id (number) , year (text)


Question: what is the name and nation of the singer who have a song having 'Hey' in its name?

stadium : stadium_id (number) , location (text) , name (text) , capacity (number) , highest (number) , lowest (number) , average (number) | singer : singer_id (number) , name (text) , country (text) , song_name (text) , song_release_year (text) , age (number) , is_male (others) | concert : concert_id (number) , concert_name (text) , theme (text) , stadium_id (text) , year (text) | singer_in_concert : concert_id (number) , singer_id (text)

singer : name (text) , country (text) , song_name (text) , singer_id (number)


Question: What is the name and country of origin of every singer who has a song with the word 'Hey' in its title?

stadium : stadium_id (number) , location (text) , name (text) , capacity (number) , highest (number) , lowest (number) , average (number) | singer : singer_id (number) , name (text) , country (text) , song_name (text) , song_release_year (text) , age (number) , is_male (others) | concert : concert_id (number) , concert_name (text) , theme (text) , stadium_id (text) , year (text) | singer_in_concert : concert_id (number) , singer_id (text)

singer : name (text) , country (text) , song_name (text) , singer_id (number)


Question: Find the name and location of the stadiums which some concerts happened in the years of both 2014 and 2015.

stadium : stadium_id (number) , location (text) , name (text) , capacity (number) , highest (number) , lowest (number) , average (number) | singer : singer_id (number) , name (text) , country (text) , song_name (text) , song_release_year (text) , age (number) , is_male (others) | concert : concert_id (number) , concert_name (text) , theme (text) , stadium_id (text) , year (text) | singer_in_concert : concert_id (number) , singer_id (text)

stadium : name (text) , location (text) , stadium_id (number) | concert : stadium_id (text) , year (text) , concert_id (number)


Question: What are the names and locations of the stadiums that had concerts that occurred in both 2014 and 2015?

stadium : stadium_id (number) , location (text) , name (text) , capacity (number) , highest (number) , lowest (number) , average (number) | singer : singer_id (number) , name (text) , country (text) , song_name (text) , song_release_year (text) , age (number) , is_male (others) | concert : concert_id (number) , concert_name (text) , theme (text) , stadium_id (text) , year (text) | singer_in_concert : concert_id (number) , singer_id (text)

stadium : name (text) , location (text) , stadium_id (number) | concert : stadium_id (text) , year (text) , concert_id (number)


Question: Find the number of concerts happened in the stadium with the highest capacity .

stadium : stadium_id (number) , location (text) , name (text) , capacity (number) , highest (number) , lowest (number) , average (number) | singer : singer_id (number) , name (text) , country (text) , song_name (text) , song_release_year (text) , age (number) , is_male (others) | concert : concert_id (number) , concert_name (text) , theme (text) , stadium_id (text) , year (text) | singer_in_concert : concert_id (number) , singer_id (text)

stadium : stadium_id (number) , capacity (number) | concert : stadium_id (text) , concert_id (number)


Question: What are the number of concerts that occurred in the stadium with the largest capacity ?

stadium : stadium_id (number) , location (text) , name (text) , capacity (number) , highest (number) , lowest (number) , average (number) | singer : singer_id (number) , name (text) , country (text) , song_name (text) , song_release_year (text) , age (number) , is_male (others) | concert : concert_id (number) , concert_name (text) , theme (text) , stadium_id (text) , year (text) | singer_in_concert : concert_id (number) , singer_id (text)

stadium : stadium_id (number) , capacity (number) | concert : stadium_id (text) , concert_id (number)


Question: Find the number of pets whose weight is heavier than 10.

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | has_pet : stuid (number) , petid (number) | pets : petid (number) , pettype (text) , pet_age (number) , weight (number)


Question: How many pets have a greater weight than 10?

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | has_pet : stuid (number) , petid (number) | pets : petid (number) , pettype (text) , pet_age (number) , weight (number)


Question: Find the weight of the youngest dog.

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | has_pet : stuid (number) , petid (number) | pets : petid (number) , pettype (text) , pet_age (number) , weight (number)

pets : weight (number) , pet_age (number) , petid (number)


Question: How much does the youngest dog weigh?

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | has_pet : stuid (number) , petid (number) | pets : petid (number) , pettype (text) , pet_age (number) , weight (number)

pets : weight (number) , pet_age (number) , petid (number)


Question: Find the maximum weight for each type of pet. List the maximum weight and pet type.

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | has_pet : stuid (number) , petid (number) | pets : petid (number) , pettype (text) , pet_age (number) , weight (number)

pets : weight (number) , pettype (text) , petid (number)


Question: List the maximum weight and type for each type of pet.

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | has_pet : stuid (number) , petid (number) | pets : petid (number) , pettype (text) , pet_age (number) , weight (number)

pets : weight (number) , pettype (text) , petid (number)


Question: Find number of pets owned by students who are older than 20.

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | has_pet : stuid (number) , petid (number) | pets : petid (number) , pettype (text) , pet_age (number) , weight (number)

student : stuid (number) , age (number) | has_pet : stuid (number)


Question: How many pets are owned by students that have an age greater than 20?

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | has_pet : stuid (number) , petid (number) | pets : petid (number) , pettype (text) , pet_age (number) , weight (number)

student : stuid (number) , age (number) | has_pet : stuid (number)


Question: Find the number of dog pets that are raised by female students (with sex F).

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | has_pet : stuid (number) , petid (number) | pets : petid (number) , pettype (text) , pet_age (number) , weight (number)

student : stuid (number) , sex (text) | has_pet : stuid (number) , petid (number) | pets : petid (number) , pettype (text)


Question: How many dog pets are raised by female students?

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | has_pet : stuid (number) , petid (number) | pets : petid (number) , pettype (text) , pet_age (number) , weight (number)

student : stuid (number) , sex (text) | has_pet : stuid (number) , petid (number) | pets : petid (number) , pettype (text)


Question: Find the number of distinct type of pets.

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | has_pet : stuid (number) , petid (number) | pets : petid (number) , pettype (text) , pet_age (number) , weight (number)


Question: How many different types of pet are there?

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | has_pet : stuid (number) , petid (number) | pets : petid (number) , pettype (text) , pet_age (number) , weight (number)


Question: Find the first name of students who have cat or dog pet.

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | has_pet : stuid (number) , petid (number) | pets : petid (number) , pettype (text) , pet_age (number) , weight (number)

student : fname (text) , stuid (number) | has_pet : stuid (number) , petid (number) | pets : petid (number) , pettype (text)


Question: What are the first names of every student who has a cat or dog as a pet?

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | has_pet : stuid (number) , petid (number) | pets : petid (number) , pettype (text) , pet_age (number) , weight (number)

student : fname (text) , stuid (number) | has_pet : stuid (number) , petid (number) | pets : petid (number) , pettype (text)


Question: Find the first name of students who have both cat and dog pets .

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | has_pet : stuid (number) , petid (number) | pets : petid (number) , pettype (text) , pet_age (number) , weight (number)

student : fname (text) , stuid (number) | has_pet : stuid (number) , petid (number) | pets : petid (number) , pettype (text)


Question: What are the students' first names who have both cats and dogs as pets?

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | has_pet : stuid (number) , petid (number) | pets : petid (number) , pettype (text) , pet_age (number) , weight (number)

student : fname (text) , stuid (number) | has_pet : stuid (number) , petid (number) | pets : petid (number) , pettype (text)


Question: Find the major and age of students who do not have a cat pet.

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | has_pet : stuid (number) , petid (number) | pets : petid (number) , pettype (text) , pet_age (number) , weight (number)

student : major (number) , age (number) , stuid (number) | has_pet : stuid (number) , petid (number) | pets : petid (number) , pettype (text)


Question: What major is every student who does not own a cat as a pet, and also how old are they?

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | has_pet : stuid (number) , petid (number) | pets : petid (number) , pettype (text) , pet_age (number) , weight (number)

student : major (number) , age (number) , stuid (number) | has_pet : stuid (number) , petid (number) | pets : petid (number) , pettype (text)


Question: Find the id of students who do not have a cat pet.

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | has_pet : stuid (number) , petid (number) | pets : petid (number) , pettype (text) , pet_age (number) , weight (number)

student : stuid (number) | has_pet : stuid (number) , petid (number) | pets : petid (number) , pettype (text)


Question: What are the ids of the students who do not own cats as pets?

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | has_pet : stuid (number) , petid (number) | pets : petid (number) , pettype (text) , pet_age (number) , weight (number)

student : stuid (number) | has_pet : stuid (number) , petid (number) | pets : petid (number) , pettype (text)


Question: Find the first name and age of students who have a dog but do not have a cat as a pet.

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | has_pet : stuid (number) , petid (number) | pets : petid (number) , pettype (text) , pet_age (number) , weight (number)

student : fname (text) , age (number) , stuid (number) | has_pet : stuid (number) , petid (number) | pets : petid (number) , pettype (text)


Question: What is the first name of every student who has a dog but does not have a cat?

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | has_pet : stuid (number) , petid (number) | pets : petid (number) , pettype (text) , pet_age (number) , weight (number)

student : fname (text) , age (number) , stuid (number) | has_pet : stuid (number) , petid (number) | pets : petid (number) , pettype (text)


Question: Find the type and weight of the youngest pet.

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | has_pet : stuid (number) , petid (number) | pets : petid (number) , pettype (text) , pet_age (number) , weight (number)

pets : pettype (text) , weight (number) , pet_age (number) , petid (number)


Question: What type of pet is the youngest animal, and how much does it weigh?

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | has_pet : stuid (number) , petid (number) | pets : petid (number) , pettype (text) , pet_age (number) , weight (number)

pets : pettype (text) , weight (number) , pet_age (number) , petid (number)


Question: Find the id and weight of all pets whose age is older than 1.

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | has_pet : stuid (number) , petid (number) | pets : petid (number) , pettype (text) , pet_age (number) , weight (number)

pets : petid (number) , weight (number) , pet_age (number)


Question: What is the id and weight of every pet who is older than 1?

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | has_pet : stuid (number) , petid (number) | pets : petid (number) , pettype (text) , pet_age (number) , weight (number)

pets : petid (number) , weight (number) , pet_age (number)


Question: Find the average and maximum age for each type of pet.

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | has_pet : stuid (number) , petid (number) | pets : petid (number) , pettype (text) , pet_age (number) , weight (number)

pets : pet_age (number) , pettype (text) , petid (number)


Question: What is the average and maximum age for each pet type?

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | has_pet : stuid (number) , petid (number) | pets : petid (number) , pettype (text) , pet_age (number) , weight (number)

pets : pet_age (number) , pettype (text) , petid (number)


Question: Find the average weight for each pet type.

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | has_pet : stuid (number) , petid (number) | pets : petid (number) , pettype (text) , pet_age (number) , weight (number)

pets : weight (number) , pettype (text) , petid (number)


Question: What is the average weight for each type of pet?

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | has_pet : stuid (number) , petid (number) | pets : petid (number) , pettype (text) , pet_age (number) , weight (number)

pets : weight (number) , pettype (text) , petid (number)


Question: Find the first name and age of students who have a pet.

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | has_pet : stuid (number) , petid (number) | pets : petid (number) , pettype (text) , pet_age (number) , weight (number)

student : fname (text) , age (number) , stuid (number) | has_pet : stuid (number)


Question: What are the different first names and ages of the students who do have pets?

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | has_pet : stuid (number) , petid (number) | pets : petid (number) , pettype (text) , pet_age (number) , weight (number)

student : fname (text) , age (number) , stuid (number) | has_pet : stuid (number)


Question: Find the id of the pet owned by student whose last name is ‘Smith’.

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | has_pet : stuid (number) , petid (number) | pets : petid (number) , pettype (text) , pet_age (number) , weight (number)

has_pet : petid (number) , stuid (number) | student : stuid (number) , lname (text)


Question: What is the id of the pet owned by the student whose last name is 'Smith'?

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | has_pet : stuid (number) , petid (number) | pets : petid (number) , pettype (text) , pet_age (number) , weight (number)

has_pet : petid (number) , stuid (number) | student : stuid (number) , lname (text)


Question: Find the number of pets for each student who has any pet and student id.

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | has_pet : stuid (number) , petid (number) | pets : petid (number) , pettype (text) , pet_age (number) , weight (number)

student : stuid (number) | has_pet : stuid (number)


Question: For students who have pets , how many pets does each student have ? list their ids instead of names .

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | has_pet : stuid (number) , petid (number) | pets : petid (number) , pettype (text) , pet_age (number) , weight (number)

student : stuid (number) | has_pet : stuid (number)


Question: Find the first name and gender of student who have more than one pet.

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | has_pet : stuid (number) , petid (number) | pets : petid (number) , pettype (text) , pet_age (number) , weight (number)

student : fname (text) , sex (text) , stuid (number) | has_pet : stuid (number)


Question: What is the first name and gender of the all the students who have more than one pet?

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | has_pet : stuid (number) , petid (number) | pets : petid (number) , pettype (text) , pet_age (number) , weight (number)

student : fname (text) , sex (text) , stuid (number) | has_pet : stuid (number)


Question: Find the last name of the student who has a cat that is age 3.

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | has_pet : stuid (number) , petid (number) | pets : petid (number) , pettype (text) , pet_age (number) , weight (number)

student : lname (text) , stuid (number) | has_pet : stuid (number) , petid (number) | pets : petid (number) , pet_age (number) , pettype (text)


Question: What is the last name of the student who has a cat that is 3 years old?

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | has_pet : stuid (number) , petid (number) | pets : petid (number) , pettype (text) , pet_age (number) , weight (number)

student : lname (text) , stuid (number) | has_pet : stuid (number) , petid (number) | pets : petid (number) , pet_age (number) , pettype (text)


Question: Find the average age of students who do not have any pet .

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | has_pet : stuid (number) , petid (number) | pets : petid (number) , pettype (text) , pet_age (number) , weight (number)

student : age (number) , stuid (number) | has_pet : stuid (number)


Question: What is the average age for all students who do not own any pets ?

student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | has_pet : stuid (number) , petid (number) | pets : petid (number) , pettype (text) , pet_age (number) , weight (number)

student : age (number) , stuid (number) | has_pet : stuid (number)


Question: How many continents are there?

continents : contid (number) , continent (text) | countries : countryid (number) , countryname (text) , continent (number) | car_makers : id (number) , maker (text) , fullname (text) , country (text) | model_list : modelid (number) , maker (number) , model (text) | car_names : makeid (number) , model (text) , make (text) | cars_data : id (number) , mpg (text) , cylinders (number) , edispl (number) , horsepower (text) , weight (number) , accelerate (number) , year (number)


Question: What is the number of continents?

continents : contid (number) , continent (text) | countries : countryid (number) , countryname (text) , continent (number) | car_makers : id (number) , maker (text) , fullname (text) , country (text) | model_list : modelid (number) , maker (number) , model (text) | car_names : makeid (number) , model (text) , make (text) | cars_data : id (number) , mpg (text) , cylinders (number) , edispl (number) , horsepower (text) , weight (number) , accelerate (number) , year (number)


Question: How many countries does each continent have? List the continent id, continent name and the number of countries.

continents : contid (number) , continent (text) | countries : countryid (number) , countryname (text) , continent (number) | car_makers : id (number) , maker (text) , fullname (text) , country (text) | model_list : modelid (number) , maker (number) , model (text) | car_names : makeid (number) , model (text) , make (text) | cars_data : id (number) , mpg (text) , cylinders (number) , edispl (number) , horsepower (text) , weight (number) , accelerate (number) , year (number)

continents : contid (number) , continent (text) | countries : continent (number) , countryid (number)


Question: For each continent, list its id, name, and how many countries it has?

continents : contid (number) , continent (text) | countries : countryid (number) , countryname (text) , continent (number) | car_makers : id (number) , maker (text) , fullname (text) , country (text) | model_list : modelid (number) , maker (number) , model (text) | car_names : makeid (number) , model (text) , make (text) | cars_data : id (number) , mpg (text) , cylinders (number) , edispl (number) , horsepower (text) , weight (number) , accelerate (number) , year (number)

continents : contid (number) , continent (text) | countries : continent (number) , countryid (number)


Question: How many countries are listed?

continents : contid (number) , continent (text) | countries : countryid (number) , countryname (text) , continent (number) | car_makers : id (number) , maker (text) , fullname (text) , country (text) | model_list : modelid (number) , maker (number) , model (text) | car_names : makeid (number) , model (text) , make (text) | cars_data : id (number) , mpg (text) , cylinders (number) , edispl (number) , horsepower (text) , weight (number) , accelerate (number) , year (number)


Question: How many countries exist?

continents : contid (number) , continent (text) | countries : countryid (number) , countryname (text) , continent (number) | car_makers : id (number) , maker (text) , fullname (text) , country (text) | model_list : modelid (number) , maker (number) , model (text) | car_names : makeid (number) , model (text) , make (text) | cars_data : id (number) , mpg (text) , cylinders (number) , edispl (number) , horsepower (text) , weight (number) , accelerate (number) , year (number)


Question: How many models does each car maker produce? List maker full name, id and the number.

continents : contid (number) , continent (text) | countries : countryid (number) , countryname (text) , continent (number) | car_makers : id (number) , maker (text) , fullname (text) , country (text) | model_list : modelid (number) , maker (number) , model (text) | car_names : makeid (number) , model (text) , make (text) | cars_data : id (number) , mpg (text) , cylinders (number) , edispl (number) , horsepower (text) , weight (number) , accelerate (number) , year (number)

car_makers : fullname (text) , id (number) , maker (text) | model_list : maker (number) , modelid (number)


Question: What is the full name of each car maker, along with its id and how many models it produces?

continents : contid (number) , continent (text) | countries : countryid (number) , countryname (text) , continent (number) | car_makers : id (number) , maker (text) , fullname (text) , country (text) | model_list : modelid (number) , maker (number) , model (text) | car_names : makeid (number) , model (text) , make (text) | cars_data : id (number) , mpg (text) , cylinders (number) , edispl (number) , horsepower (text) , weight (number) , accelerate (number) , year (number)

car_makers : fullname (text) , id (number) , maker (text) | model_list : maker (number) , modelid (number)


Question: Which model of the car has the minimum horsepower?

continents : contid (number) , continent (text) | countries : countryid (number) , countryname (text) , continent (number) | car_makers : id (number) , maker (text) , fullname (text) , country (text) | model_list : modelid (number) , maker (number) , model (text) | car_names : makeid (number) , model (text) , make (text) | cars_data : id (number) , mpg (text) , cylinders (number) , edispl (number) , horsepower (text) , weight (number) , accelerate (number) , year (number)

car_names : model (text) , makeid (number) | cars_data : id (number) , horsepower (text)


Question: What is the model of the car with the smallest amount of horsepower?

continents : contid (number) , continent (text) | countries : countryid (number) , countryname (text) , continent (number) | car_makers : id (number) , maker (text) , fullname (text) , country (text) | model_list : modelid (number) , maker (number) , model (text) | car_names : makeid (number) , model (text) , make (text) | cars_data : id (number) , mpg (text) , cylinders (number) , edispl (number) , horsepower (text) , weight (number) , accelerate (number) , year (number)

car_names : model (text) , makeid (number) | cars_data : id (number) , horsepower (text)


Question: Find the model of the car whose weight is below the average weight.

continents : contid (number) , continent (text) | countries : countryid (number) , countryname (text) , continent (number) | car_makers : id (number) , maker (text) , fullname (text) , country (text) | model_list : modelid (number) , maker (number) , model (text) | car_names : makeid (number) , model (text) , make (text) | cars_data : id (number) , mpg (text) , cylinders (number) , edispl (number) , horsepower (text) , weight (number) , accelerate (number) , year (number)

car_names : model (text) , makeid (number) | cars_data : id (number) , weight (number)


Question: What is the model for the car with a weight smaller than the average?

continents : contid (number) , continent (text) | countries : countryid (number) , countryname (text) , continent (number) | car_makers : id (number) , maker (text) , fullname (text) , country (text) | model_list : modelid (number) , maker (number) , model (text) | car_names : makeid (number) , model (text) , make (text) | cars_data : id (number) , mpg (text) , cylinders (number) , edispl (number) , horsepower (text) , weight (number) , accelerate (number) , year (number)

car_names : model (text) , makeid (number) | cars_data : id (number) , weight (number)


Question: Find the name of the makers that produced some cars in the year of 1970?

continents : contid (number) , continent (text) | countries : countryid (number) , countryname (text) , continent (number) | car_makers : id (number) , maker (text) , fullname (text) , country (text) | model_list : modelid (number) , maker (number) , model (text) | car_names : makeid (number) , model (text) , make (text) | cars_data : id (number) , mpg (text) , cylinders (number) , edispl (number) , horsepower (text) , weight (number) , accelerate (number) , year (number)

car_makers : maker (text) , id (number) | model_list : maker (number) , model (text) , modelid (number) | cars_data : id (number) , year (number) | car_names : model (text) , makeid (number)


Question: What is the name of the different car makers who produced a car in 1970?

continents : contid (number) , continent (text) | countries : countryid (number) , countryname (text) , continent (number) | car_makers : id (number) , maker (text) , fullname (text) , country (text) | model_list : modelid (number) , maker (number) , model (text) | car_names : makeid (number) , model (text) , make (text) | cars_data : id (number) , mpg (text) , cylinders (number) , edispl (number) , horsepower (text) , weight (number) , accelerate (number) , year (number)

car_makers : maker (text) , id (number) | model_list : maker (number) , model (text) , modelid (number) | cars_data : id (number) , year (number) | car_names : model (text) , makeid (number)


Question: Find the make and production time of the cars that were produced in the earliest year?

continents : contid (number) , continent (text) | countries : countryid (number) , countryname (text) , continent (number) | car_makers : id (number) , maker (text) , fullname (text) , country (text) | model_list : modelid (number) , maker (number) , model (text) | car_names : makeid (number) , model (text) , make (text) | cars_data : id (number) , mpg (text) , cylinders (number) , edispl (number) , horsepower (text) , weight (number) , accelerate (number) , year (number)

car_names : make (text) , makeid (number) | cars_data : year (number) , id (number)


Question: What is the maker of the carr produced in the earliest year and what year was it?

continents : contid (number) , continent (text) | countries : countryid (number) , countryname (text) , continent (number) | car_makers : id (number) , maker (text) , fullname (text) , country (text) | model_list : modelid (number) , maker (number) , model (text) | car_names : makeid (number) , model (text) , make (text) | cars_data : id (number) , mpg (text) , cylinders (number) , edispl (number) , horsepower (text) , weight (number) , accelerate (number) , year (number)

car_names : make (text) , makeid (number) | cars_data : year (number) , id (number)


Question: Which distinct car models are the produced after 1980?

continents : contid (number) , continent (text) | countries : countryid (number) , countryname (text) , continent (number) | car_makers : id (number) , maker (text) , fullname (text) , country (text) | model_list : modelid (number) , maker (number) , model (text) | car_names : makeid (number) , model (text) , make (text) | cars_data : id (number) , mpg (text) , cylinders (number) , edispl (number) , horsepower (text) , weight (number) , accelerate (number) , year (number)

model_list : model (text) , modelid (number) | car_names : model (text) , makeid (number) | cars_data : id (number) , year (number)


Question: What are the different models for the cards produced after 1980?

continents : contid (number) , continent (text) | countries : countryid (number) , countryname (text) , continent (number) | car_makers : id (number) , maker (text) , fullname (text) , country (text) | model_list : modelid (number) , maker (number) , model (text) | car_names : makeid (number) , model (text) , make (text) | cars_data : id (number) , mpg (text) , cylinders (number) , edispl (number) , horsepower (text) , weight (number) , accelerate (number) , year (number)

model_list : model (text) , modelid (number) | car_names : model (text) , makeid (number) | cars_data : id (number) , year (number)


Question: How many car makers are there in each continents? List the continent name and the count.

continents : contid (number) , continent (text) | countries : countryid (number) , countryname (text) , continent (number) | car_makers : id (number) , maker (text) , fullname (text) , country (text) | model_list : modelid (number) , maker (number) , model (text) | car_names : makeid (number) , model (text) , make (text) | cars_data : id (number) , mpg (text) , cylinders (number) , edispl (number) , horsepower (text) , weight (number) , accelerate (number) , year (number)

continents : continent (text) , contid (number) | countries : continent (number) , countryid (number) | car_makers : country (text) , id (number)


Question: What is the name of each continent and how many car makers are there in each one?

continents : contid (number) , continent (text) | countries : countryid (number) , countryname (text) , continent (number) | car_makers : id (number) , maker (text) , fullname (text) , country (text) | model_list : modelid (number) , maker (number) , model (text) | car_names : makeid (number) , model (text) , make (text) | cars_data : id (number) , mpg (text) , cylinders (number) , edispl (number) , horsepower (text) , weight (number) , accelerate (number) , year (number)

continents : continent (text) , contid (number) | countries : continent (number) , countryid (number) | car_makers : country (text) , id (number)


Question: Which of the countries has the most car makers? List the country name.

continents : contid (number) , continent (text) | countries : countryid (number) , countryname (text) , continent (number) | car_makers : id (number) , maker (text) , fullname (text) , country (text) | model_list : modelid (number) , maker (number) , model (text) | car_names : makeid (number) , model (text) , make (text) | cars_data : id (number) , mpg (text) , cylinders (number) , edispl (number) , horsepower (text) , weight (number) , accelerate (number) , year (number)

countries : countryname (text) , countryid (number) | car_makers : country (text) , id (number)


Question: What is the name of the country with the most car makers?

continents : contid (number) , continent (text) | countries : countryid (number) , countryname (text) , continent (number) | car_makers : id (number) , maker (text) , fullname (text) , country (text) | model_list : modelid (number) , maker (number) , model (text) | car_names : makeid (number) , model (text) , make (text) | cars_data : id (number) , mpg (text) , cylinders (number) , edispl (number) , horsepower (text) , weight (number) , accelerate (number) , year (number)

countries : countryname (text) , countryid (number) | car_makers : country (text) , id (number)


Question: How many car models are produced by each maker ? Only list the count and the maker full name .

continents : contid (number) , continent (text) | countries : countryid (number) , countryname (text) , continent (number) | car_makers : id (number) , maker (text) , fullname (text) , country (text) | model_list : modelid (number) , maker (number) , model (text) | car_names : makeid (number) , model (text) , make (text) | cars_data : id (number) , mpg (text) , cylinders (number) , edispl (number) , horsepower (text) , weight (number) , accelerate (number) , year (number)

car_makers : fullname (text) , maker (text) , id (number) | model_list : maker (number) , modelid (number)


Question: What is the number of car models that are produced by each maker and what is the id and full name of each maker?

continents : contid (number) , continent (text) | countries : countryid (number) , countryname (text) , continent (number) | car_makers : id (number) , maker (text) , fullname (text) , country (text) | model_list : modelid (number) , maker (number) , model (text) | car_names : makeid (number) , model (text) , make (text) | cars_data : id (number) , mpg (text) , cylinders (number) , edispl (number) , horsepower (text) , weight (number) , accelerate (number) , year (number)

car_makers : fullname (text) , id (number) , maker (text) | model_list : maker (number) , modelid (number)


Question: What is the accelerate of the car make amc hornet sportabout (sw)?

continents : contid (number) , continent (text) | countries : countryid (number) , countryname (text) , continent (number) | car_makers : id (number) , maker (text) , fullname (text) , country (text) | model_list : modelid (number) , maker (number) , model (text) | car_names : makeid (number) , model (text) , make (text) | cars_data : id (number) , mpg (text) , cylinders (number) , edispl (number) , horsepower (text) , weight (number) , accelerate (number) , year (number)

cars_data : accelerate (number) , id (number) | car_names : makeid (number) , make (text)


Question: How much does the car accelerate that makes amc hornet sportabout (sw)?

continents : contid (number) , continent (text) | countries : countryid (number) , countryname (text) , continent (number) | car_makers : id (number) , maker (text) , fullname (text) , country (text) | model_list : modelid (number) , maker (number) , model (text) | car_names : makeid (number) , model (text) , make (text) | cars_data : id (number) , mpg (text) , cylinders (number) , edispl (number) , horsepower (text) , weight (number) , accelerate (number) , year (number)

cars_data : accelerate (number) , id (number) | car_names : makeid (number) , make (text)


Question: How many car makers are there in france?

continents : contid (number) , continent (text) | countries : countryid (number) , countryname (text) , continent (number) | car_makers : id (number) , maker (text) , fullname (text) , country (text) | model_list : modelid (number) , maker (number) , model (text) | car_names : makeid (number) , model (text) , make (text) | cars_data : id (number) , mpg (text) , cylinders (number) , edispl (number) , horsepower (text) , weight (number) , accelerate (number) , year (number)

car_makers : country (text) , id (number) | countries : countryid (number) , countryname (text)


Question: What is the number of makers of care in France?

continents : contid (number) , continent (text) | countries : countryid (number) , countryname (text) , continent (number) | car_makers : id (number) , maker (text) , fullname (text) , country (text) | model_list : modelid (number) , maker (number) , model (text) | car_names : makeid (number) , model (text) , make (text) | cars_data : id (number) , mpg (text) , cylinders (number) , edispl (number) , horsepower (text) , weight (number) , accelerate (number) , year (number)

car_makers : country (text) , id (number) | countries : countryid (number) , countryname (text)


Question: How many car models are produced in the usa?

continents : contid (number) , continent (text) | countries : countryid (number) , countryname (text) , continent (number) | car_makers : id (number) , maker (text) , fullname (text) , country (text) | model_list : modelid (number) , maker (number) , model (text) | car_names : makeid (number) , model (text) , make (text) | cars_data : id (number) , mpg (text) , cylinders (number) , edispl (number) , horsepower (text) , weight (number) , accelerate (number) , year (number)

car_makers : maker (text) , id (number) , country (text) | model_list : maker (number) , modelid (number) | countries : countryid (number) , countryname (text)


Question: What is the count of the car models produced in the United States?

continents : contid (number) , continent (text) | countries : countryid (number) , countryname (text) , continent (number) | car_makers : id (number) , maker (text) , fullname (text) , country (text) | model_list : modelid (number) , maker (number) , model (text) | car_names : makeid (number) , model (text) , make (text) | cars_data : id (number) , mpg (text) , cylinders (number) , edispl (number) , horsepower (text) , weight (number) , accelerate (number) , year (number)

car_makers : maker (text) , id (number) , country (text) | model_list : maker (number) , modelid (number) | countries : countryid (number) , countryname (text)


Question: What is the average miles per gallon(mpg) of the cars with 4 cylinders?

continents : contid (number) , continent (text) | countries : countryid (number) , countryname (text) , continent (number) | car_makers : id (number) , maker (text) , fullname (text) , country (text) | model_list : modelid (number) , maker (number) , model (text) | car_names : makeid (number) , model (text) , make (text) | cars_data : id (number) , mpg (text) , cylinders (number) , edispl (number) , horsepower (text) , weight (number) , accelerate (number) , year (number)

cars_data : mpg (text) , cylinders (number) , id (number)


Question: What is the average miles per gallon of all the cards with 4 cylinders?

continents : contid (number) , continent (text) | countries : countryid (number) , countryname (text) , continent (number) | car_makers : id (number) , maker (text) , fullname (text) , country (text) | model_list : modelid (number) , maker (number) , model (text) | car_names : makeid (number) , model (text) , make (text) | cars_data : id (number) , mpg (text) , cylinders (number) , edispl (number) , horsepower (text) , weight (number) , accelerate (number) , year (number)

cars_data : mpg (text) , cylinders (number) , id (number)


Question: What is the smallest weight of the car produced with 8 cylinders on 1974 ?

continents : contid (number) , continent (text) | countries : countryid (number) , countryname (text) , continent (number) | car_makers : id (number) , maker (text) , fullname (text) , country (text) | model_list : modelid (number) , maker (number) , model (text) | car_names : makeid (number) , model (text) , make (text) | cars_data : id (number) , mpg (text) , cylinders (number) , edispl (number) , horsepower (text) , weight (number) , accelerate (number) , year (number)

cars_data : weight (number) , cylinders (number) , year (number) , id (number)


Question: What is the minimum weight of the car with 8 cylinders produced in 1974 ?

continents : contid (number) , continent (text) | countries : countryid (number) , countryname (text) , continent (number) | car_makers : id (number) , maker (text) , fullname (text) , country (text) | model_list : modelid (number) , maker (number) , model (text) | car_names : makeid (number) , model (text) , make (text) | cars_data : id (number) , mpg (text) , cylinders (number) , edispl (number) , horsepower (text) , weight (number) , accelerate (number) , year (number)

cars_data : weight (number) , cylinders (number) , year (number) , id (number)


Question: What are all the makers and models?

continents : contid (number) , continent (text) | countries : countryid (number) , countryname (text) , continent (number) | car_makers : id (number) , maker (text) , fullname (text) , country (text) | model_list : modelid (number) , maker (number) , model (text) | car_names : makeid (number) , model (text) , make (text) | cars_data : id (number) , mpg (text) , cylinders (number) , edispl (number) , horsepower (text) , weight (number) , accelerate (number) , year (number)

model_list : maker (number) , model (text) , modelid (number)


Question: What are the makers and models?

continents : contid (number) , continent (text) | countries : countryid (number) , countryname (text) , continent (number) | car_makers : id (number) , maker (text) , fullname (text) , country (text) | model_list : modelid (number) , maker (number) , model (text) | car_names : makeid (number) , model (text) , make (text) | cars_data : id (number) , mpg (text) , cylinders (number) , edispl (number) , horsepower (text) , weight (number) , accelerate (number) , year (number)

model_list : maker (number) , model (text) , modelid (number)


Question: What are the countries having at least one car maker? List name and id.

continents : contid (number) , continent (text) | countries : countryid (number) , countryname (text) , continent (number) | car_makers : id (number) , maker (text) , fullname (text) , country (text) | model_list : modelid (number) , maker (number) , model (text) | car_names : makeid (number) , model (text) , make (text) | cars_data : id (number) , mpg (text) , cylinders (number) , edispl (number) , horsepower (text) , weight (number) , accelerate (number) , year (number)

countries : countryname (text) , countryid (number) | car_makers : country (text) , id (number)


Question: What are the names and ids of all countries with at least one car maker?

continents : contid (number) , continent (text) | countries : countryid (number) , countryname (text) , continent (number) | car_makers : id (number) , maker (text) , fullname (text) , country (text) | model_list : modelid (number) , maker (number) , model (text) | car_names : makeid (number) , model (text) , make (text) | cars_data : id (number) , mpg (text) , cylinders (number) , edispl (number) , horsepower (text) , weight (number) , accelerate (number) , year (number)

countries : countryname (text) , countryid (number) | car_makers : country (text) , id (number)


Question: What is the number of the cars with horsepower more than 150?

continents : contid (number) , continent (text) | countries : countryid (number) , countryname (text) , continent (number) | car_makers : id (number) , maker (text) , fullname (text) , country (text) | model_list : modelid (number) , maker (number) , model (text) | car_names : makeid (number) , model (text) , make (text) | cars_data : id (number) , mpg (text) , cylinders (number) , edispl (number) , horsepower (text) , weight (number) , accelerate (number) , year (number)

cars_data : horsepower (text) , id (number)


Question: What is the number of cars with a horsepower greater than 150?

continents : contid (number) , continent (text) | countries : countryid (number) , countryname (text) , continent (number) | car_makers : id (number) , maker (text) , fullname (text) , country (text) | model_list : modelid (number) , maker (number) , model (text) | car_names : makeid (number) , model (text) , make (text) | cars_data : id (number) , mpg (text) , cylinders (number) , edispl (number) , horsepower (text) , weight (number) , accelerate (number) , year (number)

cars_data : horsepower (text) , id (number)


Question: What is the average weight of cars each year?

continents : contid (number) , continent (text) | countries : countryid (number) , countryname (text) , continent (number) | car_makers : id (number) , maker (text) , fullname (text) , country (text) | model_list : modelid (number) , maker (number) , model (text) | car_names : makeid (number) , model (text) , make (text) | cars_data : id (number) , mpg (text) , cylinders (number) , edispl (number) , horsepower (text) , weight (number) , accelerate (number) , year (number)

cars_data : weight (number) , year (number) , id (number)


Question: What is the average weight and year for each year?

continents : contid (number) , continent (text) | countries : countryid (number) , countryname (text) , continent (number) | car_makers : id (number) , maker (text) , fullname (text) , country (text) | model_list : modelid (number) , maker (number) , model (text) | car_names : makeid (number) , model (text) , make (text) | cars_data : id (number) , mpg (text) , cylinders (number) , edispl (number) , horsepower (text) , weight (number) , accelerate (number) , year (number)

cars_data : weight (number) , year (number) , id (number)


Question: Which countries in europe have at least 3 car manufacturers?

continents : contid (number) , continent (text) | countries : countryid (number) , countryname (text) , continent (number) | car_makers : id (number) , maker (text) , fullname (text) , country (text) | model_list : modelid (number) , maker (number) , model (text) | car_names : makeid (number) , model (text) , make (text) | cars_data : id (number) , mpg (text) , cylinders (number) , edispl (number) , horsepower (text) , weight (number) , accelerate (number) , year (number)

countries : countryname (text) , continent (number) , countryid (number) | continents : continent (text) , contid (number) | car_makers : country (text) , id (number)


Question: What are the names of all European countries with at least 3 manufacturers?

continents : contid (number) , continent (text) | countries : countryid (number) , countryname (text) , continent (number) | car_makers : id (number) , maker (text) , fullname (text) , country (text) | model_list : modelid (number) , maker (number) , model (text) | car_names : makeid (number) , model (text) , make (text) | cars_data : id (number) , mpg (text) , cylinders (number) , edispl (number) , horsepower (text) , weight (number) , accelerate (number) , year (number)

countries : countryname (text) , continent (number) , countryid (number) | continents : continent (text) , contid (number) | car_makers : country (text) , id (number)


Question: What is the maximum horsepower and the make of the car models with 3 cylinders?

continents : contid (number) , continent (text) | countries : countryid (number) , countryname (text) , continent (number) | car_makers : id (number) , maker (text) , fullname (text) , country (text) | model_list : modelid (number) , maker (number) , model (text) | car_names : makeid (number) , model (text) , make (text) | cars_data : id (number) , mpg (text) , cylinders (number) , edispl (number) , horsepower (text) , weight (number) , accelerate (number) , year (number)

cars_data : horsepower (text) , id (number) , cylinders (number) | car_names : make (text) , makeid (number)


Question: What is the largest amount of horsepower for the models with 3 cylinders and what make is it?

continents : contid (number) , continent (text) | countries : countryid (number) , countryname (text) , continent (number) | car_makers : id (number) , maker (text) , fullname (text) , country (text) | model_list : modelid (number) , maker (number) , model (text) | car_names : makeid (number) , model (text) , make (text) | cars_data : id (number) , mpg (text) , cylinders (number) , edispl (number) , horsepower (text) , weight (number) , accelerate (number) , year (number)

cars_data : horsepower (text) , id (number) , cylinders (number) | car_names : make (text) , makeid (number)


Question: Which model saves the most gasoline? That is to say, have the maximum miles per gallon.

continents : contid (number) , continent (text) | countries : countryid (number) , countryname (text) , continent (number) | car_makers : id (number) , maker (text) , fullname (text) , country (text) | model_list : modelid (number) , maker (number) , model (text) | car_names : makeid (number) , model (text) , make (text) | cars_data : id (number) , mpg (text) , cylinders (number) , edispl (number) , horsepower (text) , weight (number) , accelerate (number) , year (number)

car_names : model (text) , makeid (number) | cars_data : id (number) , mpg (text)


Question: What is the car model with the highest mpg ?

continents : contid (number) , continent (text) | countries : countryid (number) , countryname (text) , continent (number) | car_makers : id (number) , maker (text) , fullname (text) , country (text) | model_list : modelid (number) , maker (number) , model (text) | car_names : makeid (number) , model (text) , make (text) | cars_data : id (number) , mpg (text) , cylinders (number) , edispl (number) , horsepower (text) , weight (number) , accelerate (number) , year (number)

car_names : model (text) , makeid (number) | cars_data : id (number) , mpg (text)


Question: What is the average horsepower of the cars before 1980?

continents : contid (number) , continent (text) | countries : countryid (number) , countryname (text) , continent (number) | car_makers : id (number) , maker (text) , fullname (text) , country (text) | model_list : modelid (number) , maker (number) , model (text) | car_names : makeid (number) , model (text) , make (text) | cars_data : id (number) , mpg (text) , cylinders (number) , edispl (number) , horsepower (text) , weight (number) , accelerate (number) , year (number)

cars_data : horsepower (text) , year (number) , id (number)


Question: What is the average horsepower for all cars produced before 1980 ?

continents : contid (number) , continent (text) | countries : countryid (number) , countryname (text) , continent (number) | car_makers : id (number) , maker (text) , fullname (text) , country (text) | model_list : modelid (number) , maker (number) , model (text) | car_names : makeid (number) , model (text) , make (text) | cars_data : id (number) , mpg (text) , cylinders (number) , edispl (number) , horsepower (text) , weight (number) , accelerate (number) , year (number)

cars_data : horsepower (text) , year (number) , id (number)


Question: What is the average edispl of the cars of model volvo?

continents : contid (number) , continent (text) | countries : countryid (number) , countryname (text) , continent (number) | car_makers : id (number) , maker (text) , fullname (text) , country (text) | model_list : modelid (number) , maker (number) , model (text) | car_names : makeid (number) , model (text) , make (text) | cars_data : id (number) , mpg (text) , cylinders (number) , edispl (number) , horsepower (text) , weight (number) , accelerate (number) , year (number)

cars_data : edispl (number) , id (number) | car_names : makeid (number) , model (text)


Question: What is the average edispl for all volvos?

continents : contid (number) , continent (text) | countries : countryid (number) , countryname (text) , continent (number) | car_makers : id (number) , maker (text) , fullname (text) , country (text) | model_list : modelid (number) , maker (number) , model (text) | car_names : makeid (number) , model (text) , make (text) | cars_data : id (number) , mpg (text) , cylinders (number) , edispl (number) , horsepower (text) , weight (number) , accelerate (number) , year (number)

cars_data : edispl (number) , id (number) | car_names : makeid (number) , model (text)


Question: What is the maximum accelerate for different number of cylinders?

continents : contid (number) , continent (text) | countries : countryid (number) , countryname (text) , continent (number) | car_makers : id (number) , maker (text) , fullname (text) , country (text) | model_list : modelid (number) , maker (number) , model (text) | car_names : makeid (number) , model (text) , make (text) | cars_data : id (number) , mpg (text) , cylinders (number) , edispl (number) , horsepower (text) , weight (number) , accelerate (number) , year (number)

cars_data : accelerate (number) , cylinders (number) , id (number)


Question: What is the maximum accelerate for all the different cylinders?

continents : contid (number) , continent (text) | countries : countryid (number) , countryname (text) , continent (number) | car_makers : id (number) , maker (text) , fullname (text) , country (text) | model_list : modelid (number) , maker (number) , model (text) | car_names : makeid (number) , model (text) , make (text) | cars_data : id (number) , mpg (text) , cylinders (number) , edispl (number) , horsepower (text) , weight (number) , accelerate (number) , year (number)

cars_data : accelerate (number) , cylinders (number) , id (number)


Question: Which model has the most version(make) of cars?

continents : contid (number) , continent (text) | countries : countryid (number) , countryname (text) , continent (number) | car_makers : id (number) , maker (text) , fullname (text) , country (text) | model_list : modelid (number) , maker (number) , model (text) | car_names : makeid (number) , model (text) , make (text) | cars_data : id (number) , mpg (text) , cylinders (number) , edispl (number) , horsepower (text) , weight (number) , accelerate (number) , year (number)

car_names : model (text) , makeid (number)


Question: What model has the most different versions?

continents : contid (number) , continent (text) | countries : countryid (number) , countryname (text) , continent (number) | car_makers : id (number) , maker (text) , fullname (text) , country (text) | model_list : modelid (number) , maker (number) , model (text) | car_names : makeid (number) , model (text) , make (text) | cars_data : id (number) , mpg (text) , cylinders (number) , edispl (number) , horsepower (text) , weight (number) , accelerate (number) , year (number)

car_names : model (text) , makeid (number)


Question: How many cars have more than 4 cylinders?

continents : contid (number) , continent (text) | countries : countryid (number) , countryname (text) , continent (number) | car_makers : id (number) , maker (text) , fullname (text) , country (text) | model_list : modelid (number) , maker (number) , model (text) | car_names : makeid (number) , model (text) , make (text) | cars_data : id (number) , mpg (text) , cylinders (number) , edispl (number) , horsepower (text) , weight (number) , accelerate (number) , year (number)

cars_data : cylinders (number) , id (number)


Question: What is the number of cars with more than 4 cylinders?

continents : contid (number) , continent (text) | countries : countryid (number) , countryname (text) , continent (number) | car_makers : id (number) , maker (text) , fullname (text) , country (text) | model_list : modelid (number) , maker (number) , model (text) | car_names : makeid (number) , model (text) , make (text) | cars_data : id (number) , mpg (text) , cylinders (number) , edispl (number) , horsepower (text) , weight (number) , accelerate (number) , year (number)

cars_data : cylinders (number) , id (number)


Question: how many cars were produced in 1980?

continents : contid (number) , continent (text) | countries : countryid (number) , countryname (text) , continent (number) | car_makers : id (number) , maker (text) , fullname (text) , country (text) | model_list : modelid (number) , maker (number) , model (text) | car_names : makeid (number) , model (text) , make (text) | cars_data : id (number) , mpg (text) , cylinders (number) , edispl (number) , horsepower (text) , weight (number) , accelerate (number) , year (number)


Question: In 1980, how many cars were made?

continents : contid (number) , continent (text) | countries : countryid (number) , countryname (text) , continent (number) | car_makers : id (number) , maker (text) , fullname (text) , country (text) | model_list : modelid (number) , maker (number) , model (text) | car_names : makeid (number) , model (text) , make (text) | cars_data : id (number) , mpg (text) , cylinders (number) , edispl (number) , horsepower (text) , weight (number) , accelerate (number) , year (number)


Question: How many car models were produced by the maker with full name American Motor Company?

continents : contid (number) , continent (text) | countries : countryid (number) , countryname (text) , continent (number) | car_makers : id (number) , maker (text) , fullname (text) , country (text) | model_list : modelid (number) , maker (number) , model (text) | car_names : makeid (number) , model (text) , make (text) | cars_data : id (number) , mpg (text) , cylinders (number) , edispl (number) , horsepower (text) , weight (number) , accelerate (number) , year (number)

car_makers : id (number) , maker (text) , fullname (text) | model_list : maker (number) , modelid (number)


Question: What is the number of car models created by the car maker American Motor Company?

continents : contid (number) , continent (text) | countries : countryid (number) , countryname (text) , continent (number) | car_makers : id (number) , maker (text) , fullname (text) , country (text) | model_list : modelid (number) , maker (number) , model (text) | car_names : makeid (number) , model (text) , make (text) | cars_data : id (number) , mpg (text) , cylinders (number) , edispl (number) , horsepower (text) , weight (number) , accelerate (number) , year (number)

car_makers : id (number) , maker (text) , fullname (text) | model_list : maker (number) , modelid (number)


Question: Which makers designed more than 3 car models? List full name and the id.

continents : contid (number) , continent (text) | countries : countryid (number) , countryname (text) , continent (number) | car_makers : id (number) , maker (text) , fullname (text) , country (text) | model_list : modelid (number) , maker (number) , model (text) | car_names : makeid (number) , model (text) , make (text) | cars_data : id (number) , mpg (text) , cylinders (number) , edispl (number) , horsepower (text) , weight (number) , accelerate (number) , year (number)

car_makers : fullname (text) , id (number) , maker (text) | model_list : maker (number) , modelid (number)


Question: What are the names and ids of all makers with more than 3 models?

continents : contid (number) , continent (text) | countries : countryid (number) , countryname (text) , continent (number) | car_makers : id (number) , maker (text) , fullname (text) , country (text) | model_list : modelid (number) , maker (number) , model (text) | car_names : makeid (number) , model (text) , make (text) | cars_data : id (number) , mpg (text) , cylinders (number) , edispl (number) , horsepower (text) , weight (number) , accelerate (number) , year (number)

car_makers : fullname (text) , id (number) , maker (text) | model_list : maker (number) , modelid (number)


Question: Which distinctive models are produced by maker with the full name General Motors or weighing more than 3500?

continents : contid (number) , continent (text) | countries : countryid (number) , countryname (text) , continent (number) | car_makers : id (number) , maker (text) , fullname (text) , country (text) | model_list : modelid (number) , maker (number) , model (text) | car_names : makeid (number) , model (text) , make (text) | cars_data : id (number) , mpg (text) , cylinders (number) , edispl (number) , horsepower (text) , weight (number) , accelerate (number) , year (number)

model_list : model (text) , maker (number) , modelid (number) | car_names : model (text) , makeid (number) | car_makers : maker (text) , id (number) , fullname (text) | cars_data : id (number) , weight (number)


Question: What are the different models created by either the car maker General Motors or weighed more than 3500?

continents : contid (number) , continent (text) | countries : countryid (number) , countryname (text) , continent (number) | car_makers : id (number) , maker (text) , fullname (text) , country (text) | model_list : modelid (number) , maker (number) , model (text) | car_names : makeid (number) , model (text) , make (text) | cars_data : id (number) , mpg (text) , cylinders (number) , edispl (number) , horsepower (text) , weight (number) , accelerate (number) , year (number)

model_list : model (text) , maker (number) , modelid (number) | car_names : model (text) , makeid (number) | car_makers : maker (text) , id (number) , fullname (text) | cars_data : id (number) , weight (number)


Question: In which years cars were produced weighing no less than 3000 and no more than 4000 ?

continents : contid (number) , continent (text) | countries : countryid (number) , countryname (text) , continent (number) | car_makers : id (number) , maker (text) , fullname (text) , country (text) | model_list : modelid (number) , maker (number) , model (text) | car_names : makeid (number) , model (text) , make (text) | cars_data : id (number) , mpg (text) , cylinders (number) , edispl (number) , horsepower (text) , weight (number) , accelerate (number) , year (number)

cars_data : year (number) , weight (number) , id (number)


Question: What are the different years in which there were cars produced that weighed less than 4000 and also cars that weighted more than 3000 ?

continents : contid (number) , continent (text) | countries : countryid (number) , countryname (text) , continent (number) | car_makers : id (number) , maker (text) , fullname (text) , country (text) | model_list : modelid (number) , maker (number) , model (text) | car_names : makeid (number) , model (text) , make (text) | cars_data : id (number) , mpg (text) , cylinders (number) , edispl (number) , horsepower (text) , weight (number) , accelerate (number) , year (number)

cars_data : year (number) , weight (number) , id (number)


Question: What is the horsepower of the car with the largest accelerate?

continents : contid (number) , continent (text) | countries : countryid (number) , countryname (text) , continent (number) | car_makers : id (number) , maker (text) , fullname (text) , country (text) | model_list : modelid (number) , maker (number) , model (text) | car_names : makeid (number) , model (text) , make (text) | cars_data : id (number) , mpg (text) , cylinders (number) , edispl (number) , horsepower (text) , weight (number) , accelerate (number) , year (number)

cars_data : horsepower (text) , accelerate (number) , id (number)


Question: What is the horsepower of the car with the greatest accelerate?

continents : contid (number) , continent (text) | countries : countryid (number) , countryname (text) , continent (number) | car_makers : id (number) , maker (text) , fullname (text) , country (text) | model_list : modelid (number) , maker (number) , model (text) | car_names : makeid (number) , model (text) , make (text) | cars_data : id (number) , mpg (text) , cylinders (number) , edispl (number) , horsepower (text) , weight (number) , accelerate (number) , year (number)

cars_data : horsepower (text) , accelerate (number) , id (number)


Question: For model volvo, how many cylinders does the car with the least accelerate have?

continents : contid (number) , continent (text) | countries : countryid (number) , countryname (text) , continent (number) | car_makers : id (number) , maker (text) , fullname (text) , country (text) | model_list : modelid (number) , maker (number) , model (text) | car_names : makeid (number) , model (text) , make (text) | cars_data : id (number) , mpg (text) , cylinders (number) , edispl (number) , horsepower (text) , weight (number) , accelerate (number) , year (number)

cars_data : cylinders (number) , id (number) , accelerate (number) | car_names : makeid (number) , model (text)


Question: For a volvo model, how many cylinders does the version with least accelerate have?

continents : contid (number) , continent (text) | countries : countryid (number) , countryname (text) , continent (number) | car_makers : id (number) , maker (text) , fullname (text) , country (text) | model_list : modelid (number) , maker (number) , model (text) | car_names : makeid (number) , model (text) , make (text) | cars_data : id (number) , mpg (text) , cylinders (number) , edispl (number) , horsepower (text) , weight (number) , accelerate (number) , year (number)

cars_data : cylinders (number) , id (number) , accelerate (number) | car_names : makeid (number) , model (text)


Question: How many cars have a larger accelerate than the car with the largest horsepower?

continents : contid (number) , continent (text) | countries : countryid (number) , countryname (text) , continent (number) | car_makers : id (number) , maker (text) , fullname (text) , country (text) | model_list : modelid (number) , maker (number) , model (text) | car_names : makeid (number) , model (text) , make (text) | cars_data : id (number) , mpg (text) , cylinders (number) , edispl (number) , horsepower (text) , weight (number) , accelerate (number) , year (number)

cars_data : accelerate (number) , horsepower (text) , id (number)


Question: What is the number of cars with a greater accelerate than the one with the most horsepower?

continents : contid (number) , continent (text) | countries : countryid (number) , countryname (text) , continent (number) | car_makers : id (number) , maker (text) , fullname (text) , country (text) | model_list : modelid (number) , maker (number) , model (text) | car_names : makeid (number) , model (text) , make (text) | cars_data : id (number) , mpg (text) , cylinders (number) , edispl (number) , horsepower (text) , weight (number) , accelerate (number) , year (number)

cars_data : accelerate (number) , horsepower (text) , id (number)


Question: How many countries has more than 2 car makers ?

continents : contid (number) , continent (text) | countries : countryid (number) , countryname (text) , continent (number) | car_makers : id (number) , maker (text) , fullname (text) , country (text) | model_list : modelid (number) , maker (number) , model (text) | car_names : makeid (number) , model (text) , make (text) | cars_data : id (number) , mpg (text) , cylinders (number) , edispl (number) , horsepower (text) , weight (number) , accelerate (number) , year (number)

countries : countryid (number) | car_makers : country (text) , id (number)


Question: What is the number of countries with more than 2 car makers ?

continents : contid (number) , continent (text) | countries : countryid (number) , countryname (text) , continent (number) | car_makers : id (number) , maker (text) , fullname (text) , country (text) | model_list : modelid (number) , maker (number) , model (text) | car_names : makeid (number) , model (text) , make (text) | cars_data : id (number) , mpg (text) , cylinders (number) , edispl (number) , horsepower (text) , weight (number) , accelerate (number) , year (number)

countries : countryid (number) | car_makers : country (text) , id (number)


Question: How many cars has over 6 cylinders?

continents : contid (number) , continent (text) | countries : countryid (number) , countryname (text) , continent (number) | car_makers : id (number) , maker (text) , fullname (text) , country (text) | model_list : modelid (number) , maker (number) , model (text) | car_names : makeid (number) , model (text) , make (text) | cars_data : id (number) , mpg (text) , cylinders (number) , edispl (number) , horsepower (text) , weight (number) , accelerate (number) , year (number)

cars_data : cylinders (number) , id (number)


Question: What is the number of carsw ith over 6 cylinders?

continents : contid (number) , continent (text) | countries : countryid (number) , countryname (text) , continent (number) | car_makers : id (number) , maker (text) , fullname (text) , country (text) | model_list : modelid (number) , maker (number) , model (text) | car_names : makeid (number) , model (text) , make (text) | cars_data : id (number) , mpg (text) , cylinders (number) , edispl (number) , horsepower (text) , weight (number) , accelerate (number) , year (number)

cars_data : cylinders (number) , id (number)


Question: For the cars with 4 cylinders, which model has the largest horsepower?

continents : contid (number) , continent (text) | countries : countryid (number) , countryname (text) , continent (number) | car_makers : id (number) , maker (text) , fullname (text) , country (text) | model_list : modelid (number) , maker (number) , model (text) | car_names : makeid (number) , model (text) , make (text) | cars_data : id (number) , mpg (text) , cylinders (number) , edispl (number) , horsepower (text) , weight (number) , accelerate (number) , year (number)

car_names : model (text) , makeid (number) | cars_data : id (number) , cylinders (number) , horsepower (text)


Question: For all of the 4 cylinder cars, which model has the most horsepower?

continents : contid (number) , continent (text) | countries : countryid (number) , countryname (text) , continent (number) | car_makers : id (number) , maker (text) , fullname (text) , country (text) | model_list : modelid (number) , maker (number) , model (text) | car_names : makeid (number) , model (text) , make (text) | cars_data : id (number) , mpg (text) , cylinders (number) , edispl (number) , horsepower (text) , weight (number) , accelerate (number) , year (number)

car_names : model (text) , makeid (number) | cars_data : id (number) , cylinders (number) , horsepower (text)


Question: Among the cars with more than lowest horsepower, which ones do not have more than 3 cylinders? List the car makeid and make name.

continents : contid (number) , continent (text) | countries : countryid (number) , countryname (text) , continent (number) | car_makers : id (number) , maker (text) , fullname (text) , country (text) | model_list : modelid (number) , maker (number) , model (text) | car_names : makeid (number) , model (text) , make (text) | cars_data : id (number) , mpg (text) , cylinders (number) , edispl (number) , horsepower (text) , weight (number) , accelerate (number) , year (number)

car_names : makeid (number) , make (text) | cars_data : id (number) , horsepower (text) , cylinders (number)


Question: Among the cars that do not have the minimum horsepower , what are the make ids and names of all those with less than 4 cylinders ?

continents : contid (number) , continent (text) | countries : countryid (number) , countryname (text) , continent (number) | car_makers : id (number) , maker (text) , fullname (text) , country (text) | model_list : modelid (number) , maker (number) , model (text) | car_names : makeid (number) , model (text) , make (text) | cars_data : id (number) , mpg (text) , cylinders (number) , edispl (number) , horsepower (text) , weight (number) , accelerate (number) , year (number)

car_names : makeid (number) , make (text) | cars_data : id (number) , horsepower (text) , cylinders (number)


Question: What is the maximum miles per gallon of the car with 8 cylinders or produced before 1980 ?

continents : contid (number) , continent (text) | countries : countryid (number) , countryname (text) , continent (number) | car_makers : id (number) , maker (text) , fullname (text) , country (text) | model_list : modelid (number) , maker (number) , model (text) | car_names : makeid (number) , model (text) , make (text) | cars_data : id (number) , mpg (text) , cylinders (number) , edispl (number) , horsepower (text) , weight (number) , accelerate (number) , year (number)

cars_data : mpg (text) , cylinders (number) , year (number) , id (number)


Question: What is the maximum mpg of the cars that had 8 cylinders or that were produced before 1980 ?

continents : contid (number) , continent (text) | countries : countryid (number) , countryname (text) , continent (number) | car_makers : id (number) , maker (text) , fullname (text) , country (text) | model_list : modelid (number) , maker (number) , model (text) | car_names : makeid (number) , model (text) , make (text) | cars_data : id (number) , mpg (text) , cylinders (number) , edispl (number) , horsepower (text) , weight (number) , accelerate (number) , year (number)

cars_data : mpg (text) , cylinders (number) , year (number) , id (number)