column_names: -1
*
0
poker player id
0
people id
0
final table made
0
best finish
0
money rank
0
earnings
1
people id
1
nationality
1
name
1
birth date
1
height
column_names_original: -1
*
0
Poker_Player_ID
0
People_ID
0
Final_Table_Made
0
Best_Finish
0
Money_Rank
0
Earnings
1
People_ID
1
Nationality
1
Name
1
Birth_Date
1
Height
column_types: text
number
number
number
number
number
number
number
text
text
text
number
db_id: poker_player
table_names: poker player
people
table_names_original: poker_player
people

How many poker players are there?
SELECT count(*) FROM poker_player

Count the number of poker players.
SELECT count(*) FROM poker_player

List the earnings of poker players in descending order.
SELECT Earnings FROM poker_player ORDER BY Earnings DESC

What are the earnings of poker players, ordered descending by value?
SELECT Earnings FROM poker_player ORDER BY Earnings DESC

List the final tables made and the best finishes of poker players.
SELECT Final_Table_Made ,  Best_Finish FROM poker_player

What are the final tables made and best finishes for all poker players?
SELECT Final_Table_Made ,  Best_Finish FROM poker_player

What is the average earnings of poker players?
SELECT avg(Earnings) FROM poker_player

Return the average earnings across all poker players.
SELECT avg(Earnings) FROM poker_player

What is the money rank of the poker player with the highest earnings?
SELECT Money_Rank FROM poker_player ORDER BY Earnings DESC LIMIT 1

Return the money rank of the player with the greatest earnings.
SELECT Money_Rank FROM poker_player ORDER BY Earnings DESC LIMIT 1

What is the maximum number of final tables made among poker players with earnings less than 200000?
SELECT max(Final_Table_Made) FROM poker_player WHERE Earnings  <  200000

Return the maximum final tables made across all poker players who have earnings below 200000.
SELECT max(Final_Table_Made) FROM poker_player WHERE Earnings  <  200000

What are the names of poker players?
SELECT T1.Name FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID  =  T2.People_ID

Return the names of all the poker players.
SELECT T1.Name FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID  =  T2.People_ID

What are the names of poker players whose earnings is higher than 300000?
SELECT T1.Name FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID  =  T2.People_ID WHERE T2.Earnings  >  300000

Give the names of poker players who have earnings above 300000.
SELECT T1.Name FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID  =  T2.People_ID WHERE T2.Earnings  >  300000

List the names of poker players ordered by the final tables made in ascending order.
SELECT T1.Name FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID  =  T2.People_ID ORDER BY T2.Final_Table_Made

What are the names of poker players, ordered ascending by the number of final tables they have made?
SELECT T1.Name FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID  =  T2.People_ID ORDER BY T2.Final_Table_Made

What is the birth date of the poker player with the lowest earnings?
SELECT T1.Birth_Date FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID  =  T2.People_ID ORDER BY T2.Earnings ASC LIMIT 1

Return the birth date of the poker player with the lowest earnings.
SELECT T1.Birth_Date FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID  =  T2.People_ID ORDER BY T2.Earnings ASC LIMIT 1

What is the money rank of the tallest poker player?
SELECT T2.Money_Rank FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID  =  T2.People_ID ORDER BY T1.Height DESC LIMIT 1

Return the money rank of the poker player with the greatest height.
SELECT T2.Money_Rank FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID  =  T2.People_ID ORDER BY T1.Height DESC LIMIT 1

What is the average earnings of poker players with height higher than 200?
SELECT avg(T2.Earnings) FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID  =  T2.People_ID WHERE T1.Height  >  200

Give average earnings of poker players who are taller than 200.
SELECT avg(T2.Earnings) FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID  =  T2.People_ID WHERE T1.Height  >  200

What are the names of poker players in descending order of earnings?
SELECT T1.Name FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID  =  T2.People_ID ORDER BY T2.Earnings DESC

Return the names of poker players sorted by their earnings descending.
SELECT T1.Name FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID  =  T2.People_ID ORDER BY T2.Earnings DESC

What are different nationalities of people and the corresponding number of people from each nation?
SELECT Nationality ,  COUNT(*) FROM people GROUP BY Nationality

How many people are there of each nationality?
SELECT Nationality ,  COUNT(*) FROM people GROUP BY Nationality

What is the most common nationality of people?
SELECT Nationality FROM people GROUP BY Nationality ORDER BY COUNT(*) DESC LIMIT 1

Give the nationality that is most common across all people.
SELECT Nationality FROM people GROUP BY Nationality ORDER BY COUNT(*) DESC LIMIT 1

What are the nationalities that are shared by at least two people?
SELECT Nationality FROM people GROUP BY Nationality HAVING COUNT(*)  >=  2

Return the nationalities for which there are two or more people.
SELECT Nationality FROM people GROUP BY Nationality HAVING COUNT(*)  >=  2

List the names and birth dates of people in ascending alphabetical order of name.
SELECT Name ,  Birth_Date FROM people ORDER BY Name ASC

What are the names and birth dates of people, ordered by their names in alphabetical order?
SELECT Name ,  Birth_Date FROM people ORDER BY Name ASC

Show names of people whose nationality is not "Russia".
SELECT Name FROM people WHERE Nationality != "Russia"

What are the names of people who are not from Russia?
SELECT Name FROM people WHERE Nationality != "Russia"

List the names of people that are not poker players.
SELECT Name FROM people WHERE People_ID NOT IN (SELECT People_ID FROM poker_player)

What are the names of people who do not play poker?
SELECT Name FROM people WHERE People_ID NOT IN (SELECT People_ID FROM poker_player)

How many distinct nationalities are there?
SELECT count(DISTINCT Nationality) FROM people

Count the number of different nationalities.
SELECT count(DISTINCT Nationality) FROM people