Database: singer
# singer ( singer_id , name , birth_year , net_worth_millions , citizenship )
# song ( song_id , title , singer_id , sales , highest_position )
# song.singer_id = singer.singer_id

Question: How many singers are there?
SQL: select count ( * ) from singer

Question: What is the count of singers?
SQL: select count ( * ) from singer

Question: List the name of singers in ascending order of net worth.
SQL: select name from singer order by net_worth_millions asc

Question: What are the names of singers ordered by ascending net worth?
SQL: select name from singer order by net_worth_millions asc

Question: What are the birth year and citizenship of singers?
SQL: select birth_year , citizenship from singer

Question: What are the birth years and citizenships of the singers?
SQL: select birth_year , citizenship from singer

Question: List the name of singers whose citizenship is not "France".
SQL: select name from singer where citizenship != 'France'

Question: What are the names of the singers who are not French citizens?
SQL: select name from singer where citizenship != 'France'

Question: Show the name of singers whose birth year is either 1948 or 1949?
SQL: select name from singer where birth_year = 1948 or birth_year = 1949

Question: What are the names of the singers whose birth years are either 1948 or 1949?
SQL: select name from singer where birth_year = 1948 or birth_year = 1949

Question: What is the name of the singer with the largest net worth?
SQL: select name from singer order by net_worth_millions desc limit 1

Question: What is the name of the singer who is worth the most?
SQL: select name from singer order by net_worth_millions desc limit 1

Question: Show different citizenship of singers and the number of singers of each citizenship.
SQL: select citizenship , count ( * ) from singer group by citizenship

Question: For each citizenship, how many singers are from that country?
SQL: select citizenship , count ( * ) from singer group by citizenship

Question: Please show the most common citizenship of singers.
SQL: select citizenship from singer group by citizenship order by count ( * ) desc limit 1

Question: What is the most common singer citizenship ?
SQL: select citizenship from singer group by citizenship order by count ( * ) desc limit 1

Question: Show different citizenships and the maximum net worth of singers of each citizenship.
SQL: select citizenship , max ( net_worth_millions ) from singer group by citizenship

Question: For each citizenship, what is the maximum net worth?
SQL: select citizenship , max ( net_worth_millions ) from singer group by citizenship

Question: Show titles of songs and names of singers.
SQL: select song.title , singer.name from singer join song on singer.singer_id = song.singer_id

Question: What are the song titles and singer names?
SQL: select song.title , singer.name from singer join song on singer.singer_id = song.singer_id

Question: Show distinct names of singers that have songs with sales more than 300000.
SQL: select distinct singer.name from singer join song on singer.singer_id = song.singer_id where song.sales > 300000

Question: what are the different names of the singers that have sales more than 300000?
SQL: select distinct singer.name from singer join song on singer.singer_id = song.singer_id where song.sales > 300000

Question: Show the names of singers that have more than one song.
SQL: select singer.name from singer join song on singer.singer_id = song.singer_id group by singer.name having count ( * ) > 1

Question: What are the names of the singers that have more than one songs?
SQL: select singer.name from singer join song on singer.singer_id = song.singer_id group by singer.name having count ( * ) > 1

Question: Show the names of singers and the total sales of their songs.
SQL: select singer.name , sum ( song.sales ) from singer join song on singer.singer_id = song.singer_id group by singer.name

Question: For each singer name, what is the total sales for their songs?
SQL: select singer.name , sum ( song.sales ) from singer join song on singer.singer_id = song.singer_id group by singer.name

Question: List the name of singers that do not have any song.
SQL: select name from singer where singer_id not in ( select singer_id from song )

Question: What is the sname of every sing that does not have any song?
SQL: select name from singer where singer_id not in ( select singer_id from song )

Question: Show the citizenship shared by singers with birth year before 1945 and after 1955.
SQL: select citizenship from singer where birth_year < 1945 intersect select citizenship from singer where birth_year > 1955

Question: What are the citizenships that are shared by singers with a birth year before 1945 and after 1955?
SQL: select citizenship from singer where birth_year < 1945 intersect select citizenship from singer where birth_year > 1955