Database: poker_player
# poker_player ( poker_player_id , people_id , final_table_made , best_finish , money_rank , earnings )
# people ( people_id , nationality , name , birth_date , height )
# poker_player.people_id = people.people_id

Question: How many poker players are there?
SQL: select count ( * ) from poker_player

Question: Count the number of poker players.
SQL: select count ( * ) from poker_player

Question: List the earnings of poker players in descending order.
SQL: select earnings from poker_player order by earnings desc

Question: What are the earnings of poker players, ordered descending by value?
SQL: select earnings from poker_player order by earnings desc

Question: List the final tables made and the best finishes of poker players.
SQL: select final_table_made , best_finish from poker_player

Question: What are the final tables made and best finishes for all poker players?
SQL: select final_table_made , best_finish from poker_player

Question: What is the average earnings of poker players?
SQL: select avg ( earnings ) from poker_player

Question: Return the average earnings across all poker players.
SQL: select avg ( earnings ) from poker_player

Question: What is the money rank of the poker player with the highest earnings?
SQL: select money_rank from poker_player order by earnings desc limit 1

Question: Return the money rank of the player with the greatest earnings.
SQL: select money_rank from poker_player order by earnings desc limit 1

Question: What is the maximum number of final tables made among poker players with earnings less than 200000?
SQL: select max ( final_table_made ) from poker_player where earnings < 200000

Question: Return the maximum final tables made across all poker players who have earnings below 200000.
SQL: select max ( final_table_made ) from poker_player where earnings < 200000

Question: What are the names of poker players?
SQL: select people.name from people join poker_player on people.people_id = poker_player.people_id

Question: Return the names of all the poker players.
SQL: select people.name from people join poker_player on people.people_id = poker_player.people_id

Question: What are the names of poker players whose earnings is higher than 300000?
SQL: select people.name from people join poker_player on people.people_id = poker_player.people_id where poker_player.earnings > 300000

Question: Give the names of poker players who have earnings above 300000.
SQL: select people.name from people join poker_player on people.people_id = poker_player.people_id where poker_player.earnings > 300000

Question: List the names of poker players ordered by the final tables made in ascending order.
SQL: select people.name from people join poker_player on people.people_id = poker_player.people_id order by poker_player.final_table_made asc

Question: What are the names of poker players, ordered ascending by the number of final tables they have made?
SQL: select people.name from people join poker_player on people.people_id = poker_player.people_id order by poker_player.final_table_made asc

Question: What is the birth date of the poker player with the lowest earnings?
SQL: select people.birth_date from people join poker_player on people.people_id = poker_player.people_id order by poker_player.earnings asc limit 1

Question: Return the birth date of the poker player with the lowest earnings.
SQL: select people.birth_date from people join poker_player on people.people_id = poker_player.people_id order by poker_player.earnings asc limit 1

Question: What is the money rank of the tallest poker player?
SQL: select poker_player.money_rank from people join poker_player on people.people_id = poker_player.people_id order by people.height desc limit 1

Question: Return the money rank of the poker player with the greatest height.
SQL: select poker_player.money_rank from people join poker_player on people.people_id = poker_player.people_id order by people.height desc limit 1

Question: What is the average earnings of poker players with height higher than 200?
SQL: select avg ( poker_player.earnings ) from people join poker_player on people.people_id = poker_player.people_id where people.height > 200

Question: Give average earnings of poker players who are taller than 200.
SQL: select avg ( poker_player.earnings ) from people join poker_player on people.people_id = poker_player.people_id where people.height > 200

Question: What are the names of poker players in descending order of earnings?
SQL: select people.name from people join poker_player on people.people_id = poker_player.people_id order by poker_player.earnings desc

Question: Return the names of poker players sorted by their earnings descending.
SQL: select people.name from people join poker_player on people.people_id = poker_player.people_id order by poker_player.earnings desc

Question: What are different nationalities of people and the corresponding number of people from each nation?
SQL: select nationality , count ( * ) from people group by nationality

Question: How many people are there of each nationality?
SQL: select nationality , count ( * ) from people group by nationality

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

Question: Give the nationality that is most common across all people.
SQL: select nationality from people group by nationality order by count ( * ) desc limit 1

Question: What are the nationalities that are shared by at least two people?
SQL: select nationality from people group by nationality having count ( * ) >= 2

Question: Return the nationalities for which there are two or more people.
SQL: select nationality from people group by nationality having count ( * ) >= 2

Question: List the names and birth dates of people in ascending alphabetical order of name.
SQL: select name , birth_date from people order by name asc

Question: What are the names and birth dates of people, ordered by their names in alphabetical order?
SQL: select name , birth_date from people order by name asc

Question: Show names of people whose nationality is not "Russia".
SQL: select name from people where nationality != 'Russia'

Question: What are the names of people who are not from Russia?
SQL: select name from people where nationality != 'Russia'

Question: List the names of people that are not poker players.
SQL: select name from people where people_id not in ( select people_id from poker_player )

Question: What are the names of people who do not play poker?
SQL: select name from people where people_id not in ( select people_id from poker_player )

Question: How many distinct nationalities are there?
SQL: select count ( distinct nationality ) from people

Question: Count the number of different nationalities.
SQL: select count ( distinct nationality ) from people