db_id
stringclasses 140
values | question
stringlengths 16
224
| schema
stringclasses 140
values | summarized-schema
stringlengths 18
304
| shrink-score
float64 0
1
|
---|---|---|---|---|
epinions_1
|
Find the titles of items that received both a rating higher than 8 and a rating below 5.
|
item : i_id (number) , title (text) | review : a_id (number) , u_id (number) , i_id (number) , rating (number) , rank (number) | useracct : u_id (number) , name (text) | trust : source_u_id (number) , target_u_id (number) , trust (number)
|
item : title (text) , i_id (number) | review : i_id (number) , rating (number)
| 0.666667 |
epinions_1
|
Find the names of items whose rank is higher than 3 and whose average rating is above 5.
|
item : i_id (number) , title (text) | review : a_id (number) , u_id (number) , i_id (number) , rating (number) , rank (number) | useracct : u_id (number) , name (text) | trust : source_u_id (number) , target_u_id (number) , trust (number)
|
item : title (text) , i_id (number) | review : i_id (number) , rank (number) , rating (number)
| 0.583333 |
epinions_1
|
Find the name of the item with the lowest average rating.
|
item : i_id (number) , title (text) | review : a_id (number) , u_id (number) , i_id (number) , rating (number) , rank (number) | useracct : u_id (number) , name (text) | trust : source_u_id (number) , target_u_id (number) , trust (number)
|
item : title (text) , i_id (number) | review : i_id (number) , rating (number)
| 0.666667 |
epinions_1
|
List the titles of all items in alphabetic order .
|
item : i_id (number) , title (text) | review : a_id (number) , u_id (number) , i_id (number) , rating (number) , rank (number) | useracct : u_id (number) , name (text) | trust : source_u_id (number) , target_u_id (number) , trust (number)
|
item : title (text)
| 0.916667 |
epinions_1
|
Find the name of the user who gives the most reviews.
|
item : i_id (number) , title (text) | review : a_id (number) , u_id (number) , i_id (number) , rating (number) , rank (number) | useracct : u_id (number) , name (text) | trust : source_u_id (number) , target_u_id (number) , trust (number)
|
useracct : name (text) , u_id (number) | review : u_id (number) , a_id (number)
| 0.666667 |
epinions_1
|
Find the name and id of the item with the highest average rating.
|
item : i_id (number) , title (text) | review : a_id (number) , u_id (number) , i_id (number) , rating (number) , rank (number) | useracct : u_id (number) , name (text) | trust : source_u_id (number) , target_u_id (number) , trust (number)
|
item : title (text) , i_id (number) | review : i_id (number) , rating (number)
| 0.666667 |
epinions_1
|
Find the name and id of the good with the highest average rank.
|
item : i_id (number) , title (text) | review : a_id (number) , u_id (number) , i_id (number) , rating (number) , rank (number) | useracct : u_id (number) , name (text) | trust : source_u_id (number) , target_u_id (number) , trust (number)
|
item : title (text) , i_id (number) | review : i_id (number) , rank (number)
| 0.666667 |
epinions_1
|
For each user, return the name and the average rating of reviews given by them.
|
item : i_id (number) , title (text) | review : a_id (number) , u_id (number) , i_id (number) , rating (number) , rank (number) | useracct : u_id (number) , name (text) | trust : source_u_id (number) , target_u_id (number) , trust (number)
|
useracct : name (text) , u_id (number) | review : rating (number) , u_id (number)
| 0.666667 |
epinions_1
|
For each user, find their name and the number of reviews written by them.
|
item : i_id (number) , title (text) | review : a_id (number) , u_id (number) , i_id (number) , rating (number) , rank (number) | useracct : u_id (number) , name (text) | trust : source_u_id (number) , target_u_id (number) , trust (number)
|
useracct : name (text) , u_id (number) | review : u_id (number) , a_id (number)
| 0.666667 |
epinions_1
|
Find the name of the user who gave the highest rating.
|
item : i_id (number) , title (text) | review : a_id (number) , u_id (number) , i_id (number) , rating (number) , rank (number) | useracct : u_id (number) , name (text) | trust : source_u_id (number) , target_u_id (number) , trust (number)
|
useracct : name (text) , u_id (number) | review : u_id (number) , rating (number)
| 0.666667 |
epinions_1
|
Find the name of the source user with the highest average trust score.
|
item : i_id (number) , title (text) | review : a_id (number) , u_id (number) , i_id (number) , rating (number) , rank (number) | useracct : u_id (number) , name (text) | trust : source_u_id (number) , target_u_id (number) , trust (number)
|
useracct : name (text) , u_id (number) | trust : trust (number) , source_u_id (number)
| 0.666667 |
epinions_1
|
Find each target user's name and average trust score.
|
item : i_id (number) , title (text) | review : a_id (number) , u_id (number) , i_id (number) , rating (number) , rank (number) | useracct : u_id (number) , name (text) | trust : source_u_id (number) , target_u_id (number) , trust (number)
|
useracct : name (text) , u_id (number) | trust : trust (number) , target_u_id (number)
| 0.666667 |
epinions_1
|
Find the name of the target user with the lowest trust score.
|
item : i_id (number) , title (text) | review : a_id (number) , u_id (number) , i_id (number) , rating (number) , rank (number) | useracct : u_id (number) , name (text) | trust : source_u_id (number) , target_u_id (number) , trust (number)
|
useracct : name (text) , u_id (number) | trust : trust (number) , target_u_id (number)
| 0.666667 |
epinions_1
|
Find the names of the items that did not receive any review.
|
item : i_id (number) , title (text) | review : a_id (number) , u_id (number) , i_id (number) , rating (number) , rank (number) | useracct : u_id (number) , name (text) | trust : source_u_id (number) , target_u_id (number) , trust (number)
|
item : title (text) , i_id (number) | review : i_id (number)
| 0.75 |
epinions_1
|
Find the names of users who did not leave any review.
|
item : i_id (number) , title (text) | review : a_id (number) , u_id (number) , i_id (number) , rating (number) , rank (number) | useracct : u_id (number) , name (text) | trust : source_u_id (number) , target_u_id (number) , trust (number)
|
useracct : name (text) , u_id (number) | review : u_id (number)
| 0.75 |
epinions_1
|
Find the number of users who did not write any review.
|
item : i_id (number) , title (text) | review : a_id (number) , u_id (number) , i_id (number) , rating (number) , rank (number) | useracct : u_id (number) , name (text) | trust : source_u_id (number) , target_u_id (number) , trust (number)
|
review : u_id (number) , a_id (number) | useracct : u_id (number)
| 0.75 |
epinions_1
|
Find the number of items without any review.
|
item : i_id (number) , title (text) | review : a_id (number) , u_id (number) , i_id (number) , rating (number) , rank (number) | useracct : u_id (number) , name (text) | trust : source_u_id (number) , target_u_id (number) , trust (number)
|
item : i_id (number) | review : i_id (number) , a_id (number)
| 0.75 |
riding_club
|
How many players are there?
|
player : player_id (number) , sponsor_name (text) , player_name (text) , gender (text) , residence (text) , occupation (text) , votes (number) , rank (text) | club : club_id (number) , club_name (text) , region (text) , start_year (number) | coach : coach_id (number) , coach_name (text) , gender (text) , club_id (number) , rank (number) | player_coach : player_id (number) , coach_id (number) , starting_year (number) | match_result : rank (number) , club_id (number) , gold (number) , big_silver (number) , small_silver (number) , bronze (number) , points (number)
|
player : player_id (number)
| 0.962963 |
riding_club
|
List the names of players in ascending order of votes.
|
player : player_id (number) , sponsor_name (text) , player_name (text) , gender (text) , residence (text) , occupation (text) , votes (number) , rank (text) | club : club_id (number) , club_name (text) , region (text) , start_year (number) | coach : coach_id (number) , coach_name (text) , gender (text) , club_id (number) , rank (number) | player_coach : player_id (number) , coach_id (number) , starting_year (number) | match_result : rank (number) , club_id (number) , gold (number) , big_silver (number) , small_silver (number) , bronze (number) , points (number)
|
player : player_name (text) , votes (number)
| 0.925926 |
riding_club
|
What are the gender and occupation of players?
|
player : player_id (number) , sponsor_name (text) , player_name (text) , gender (text) , residence (text) , occupation (text) , votes (number) , rank (text) | club : club_id (number) , club_name (text) , region (text) , start_year (number) | coach : coach_id (number) , coach_name (text) , gender (text) , club_id (number) , rank (number) | player_coach : player_id (number) , coach_id (number) , starting_year (number) | match_result : rank (number) , club_id (number) , gold (number) , big_silver (number) , small_silver (number) , bronze (number) , points (number)
|
player : gender (text) , occupation (text)
| 0.925926 |
riding_club
|
List the name and residence for players whose occupation is not "Researcher".
|
player : player_id (number) , sponsor_name (text) , player_name (text) , gender (text) , residence (text) , occupation (text) , votes (number) , rank (text) | club : club_id (number) , club_name (text) , region (text) , start_year (number) | coach : coach_id (number) , coach_name (text) , gender (text) , club_id (number) , rank (number) | player_coach : player_id (number) , coach_id (number) , starting_year (number) | match_result : rank (number) , club_id (number) , gold (number) , big_silver (number) , small_silver (number) , bronze (number) , points (number)
|
player : player_name (text) , residence (text) , occupation (text)
| 0.888889 |
riding_club
|
Show the names of sponsors of players whose residence is either "Brandon" or "Birtle".
|
player : player_id (number) , sponsor_name (text) , player_name (text) , gender (text) , residence (text) , occupation (text) , votes (number) , rank (text) | club : club_id (number) , club_name (text) , region (text) , start_year (number) | coach : coach_id (number) , coach_name (text) , gender (text) , club_id (number) , rank (number) | player_coach : player_id (number) , coach_id (number) , starting_year (number) | match_result : rank (number) , club_id (number) , gold (number) , big_silver (number) , small_silver (number) , bronze (number) , points (number)
|
player : sponsor_name (text) , residence (text)
| 0.925926 |
riding_club
|
What is the name of the player with the largest number of votes?
|
player : player_id (number) , sponsor_name (text) , player_name (text) , gender (text) , residence (text) , occupation (text) , votes (number) , rank (text) | club : club_id (number) , club_name (text) , region (text) , start_year (number) | coach : coach_id (number) , coach_name (text) , gender (text) , club_id (number) , rank (number) | player_coach : player_id (number) , coach_id (number) , starting_year (number) | match_result : rank (number) , club_id (number) , gold (number) , big_silver (number) , small_silver (number) , bronze (number) , points (number)
|
player : player_name (text) , votes (number)
| 0.925926 |
riding_club
|
Show different occupations along with the number of players in each occupation.
|
player : player_id (number) , sponsor_name (text) , player_name (text) , gender (text) , residence (text) , occupation (text) , votes (number) , rank (text) | club : club_id (number) , club_name (text) , region (text) , start_year (number) | coach : coach_id (number) , coach_name (text) , gender (text) , club_id (number) , rank (number) | player_coach : player_id (number) , coach_id (number) , starting_year (number) | match_result : rank (number) , club_id (number) , gold (number) , big_silver (number) , small_silver (number) , bronze (number) , points (number)
|
player : occupation (text) , player_id (number)
| 0.925926 |
riding_club
|
Please show the most common occupation of players.
|
player : player_id (number) , sponsor_name (text) , player_name (text) , gender (text) , residence (text) , occupation (text) , votes (number) , rank (text) | club : club_id (number) , club_name (text) , region (text) , start_year (number) | coach : coach_id (number) , coach_name (text) , gender (text) , club_id (number) , rank (number) | player_coach : player_id (number) , coach_id (number) , starting_year (number) | match_result : rank (number) , club_id (number) , gold (number) , big_silver (number) , small_silver (number) , bronze (number) , points (number)
|
player : occupation (text) , player_id (number)
| 0.925926 |
riding_club
|
Show the residences that have at least two players.
|
player : player_id (number) , sponsor_name (text) , player_name (text) , gender (text) , residence (text) , occupation (text) , votes (number) , rank (text) | club : club_id (number) , club_name (text) , region (text) , start_year (number) | coach : coach_id (number) , coach_name (text) , gender (text) , club_id (number) , rank (number) | player_coach : player_id (number) , coach_id (number) , starting_year (number) | match_result : rank (number) , club_id (number) , gold (number) , big_silver (number) , small_silver (number) , bronze (number) , points (number)
|
player : residence (text) , player_id (number)
| 0.925926 |
riding_club
|
Show the names of players and names of their coaches.
|
player : player_id (number) , sponsor_name (text) , player_name (text) , gender (text) , residence (text) , occupation (text) , votes (number) , rank (text) | club : club_id (number) , club_name (text) , region (text) , start_year (number) | coach : coach_id (number) , coach_name (text) , gender (text) , club_id (number) , rank (number) | player_coach : player_id (number) , coach_id (number) , starting_year (number) | match_result : rank (number) , club_id (number) , gold (number) , big_silver (number) , small_silver (number) , bronze (number) , points (number)
|
player : player_name (text) , player_id (number) | coach : coach_name (text) , coach_id (number) | player_coach : coach_id (number) , player_id (number)
| 0.777778 |
riding_club
|
Show the names of players coached by the rank 1 coach.
|
player : player_id (number) , sponsor_name (text) , player_name (text) , gender (text) , residence (text) , occupation (text) , votes (number) , rank (text) | club : club_id (number) , club_name (text) , region (text) , start_year (number) | coach : coach_id (number) , coach_name (text) , gender (text) , club_id (number) , rank (number) | player_coach : player_id (number) , coach_id (number) , starting_year (number) | match_result : rank (number) , club_id (number) , gold (number) , big_silver (number) , small_silver (number) , bronze (number) , points (number)
|
player : player_name (text) , player_id (number) , rank (text) | coach : coach_id (number) , rank (number) | player_coach : coach_id (number) , player_id (number)
| 0.740741 |
riding_club
|
Show the names and genders of players with a coach starting after 2011.
|
player : player_id (number) , sponsor_name (text) , player_name (text) , gender (text) , residence (text) , occupation (text) , votes (number) , rank (text) | club : club_id (number) , club_name (text) , region (text) , start_year (number) | coach : coach_id (number) , coach_name (text) , gender (text) , club_id (number) , rank (number) | player_coach : player_id (number) , coach_id (number) , starting_year (number) | match_result : rank (number) , club_id (number) , gold (number) , big_silver (number) , small_silver (number) , bronze (number) , points (number)
|
player : player_name (text) , gender (text) , player_id (number) | coach : gender (text) , coach_id (number) | player_coach : coach_id (number) , player_id (number) , starting_year (number)
| 0.703704 |
riding_club
|
Show the names of players and names of their coaches in descending order of the votes of players.
|
player : player_id (number) , sponsor_name (text) , player_name (text) , gender (text) , residence (text) , occupation (text) , votes (number) , rank (text) | club : club_id (number) , club_name (text) , region (text) , start_year (number) | coach : coach_id (number) , coach_name (text) , gender (text) , club_id (number) , rank (number) | player_coach : player_id (number) , coach_id (number) , starting_year (number) | match_result : rank (number) , club_id (number) , gold (number) , big_silver (number) , small_silver (number) , bronze (number) , points (number)
|
player : player_name (text) , player_id (number) , votes (number) | coach : coach_name (text) , coach_id (number) | player_coach : coach_id (number) , player_id (number)
| 0.740741 |
riding_club
|
List the names of players that do not have coaches.
|
player : player_id (number) , sponsor_name (text) , player_name (text) , gender (text) , residence (text) , occupation (text) , votes (number) , rank (text) | club : club_id (number) , club_name (text) , region (text) , start_year (number) | coach : coach_id (number) , coach_name (text) , gender (text) , club_id (number) , rank (number) | player_coach : player_id (number) , coach_id (number) , starting_year (number) | match_result : rank (number) , club_id (number) , gold (number) , big_silver (number) , small_silver (number) , bronze (number) , points (number)
|
player : player_name (text) , player_id (number) | player_coach : player_id (number)
| 0.888889 |
riding_club
|
Show the residences that have both a player of gender "M" and a player of gender "F".
|
player : player_id (number) , sponsor_name (text) , player_name (text) , gender (text) , residence (text) , occupation (text) , votes (number) , rank (text) | club : club_id (number) , club_name (text) , region (text) , start_year (number) | coach : coach_id (number) , coach_name (text) , gender (text) , club_id (number) , rank (number) | player_coach : player_id (number) , coach_id (number) , starting_year (number) | match_result : rank (number) , club_id (number) , gold (number) , big_silver (number) , small_silver (number) , bronze (number) , points (number)
|
player : residence (text) , gender (text)
| 0.925926 |
riding_club
|
How many coaches does each club has? List the club id, name and the number of coaches.
|
player : player_id (number) , sponsor_name (text) , player_name (text) , gender (text) , residence (text) , occupation (text) , votes (number) , rank (text) | club : club_id (number) , club_name (text) , region (text) , start_year (number) | coach : coach_id (number) , coach_name (text) , gender (text) , club_id (number) , rank (number) | player_coach : player_id (number) , coach_id (number) , starting_year (number) | match_result : rank (number) , club_id (number) , gold (number) , big_silver (number) , small_silver (number) , bronze (number) , points (number)
|
club : club_id (number) , club_name (text) | coach : club_id (number) , coach_id (number)
| 0.851852 |
riding_club
|
How many gold medals has the club with the most coaches won?
|
player : player_id (number) , sponsor_name (text) , player_name (text) , gender (text) , residence (text) , occupation (text) , votes (number) , rank (text) | club : club_id (number) , club_name (text) , region (text) , start_year (number) | coach : coach_id (number) , coach_name (text) , gender (text) , club_id (number) , rank (number) | player_coach : player_id (number) , coach_id (number) , starting_year (number) | match_result : rank (number) , club_id (number) , gold (number) , big_silver (number) , small_silver (number) , bronze (number) , points (number)
|
coach : club_id (number) , coach_id (number) | match_result : club_id (number) , gold (number) , rank (text)
| 0.814815 |
gymnast
|
How many gymnasts are there?
|
gymnast : gymnast_id (number) , floor_exercise_points (number) , pommel_horse_points (number) , rings_points (number) , vault_points (number) , parallel_bars_points (number) , horizontal_bar_points (number) , total_points (number) | people : people_id (number) , name (text) , age (number) , height (number) , hometown (text)
|
gymnast : gymnast_id (number)
| 0.923077 |
gymnast
|
Count the number of gymnasts.
|
gymnast : gymnast_id (number) , floor_exercise_points (number) , pommel_horse_points (number) , rings_points (number) , vault_points (number) , parallel_bars_points (number) , horizontal_bar_points (number) , total_points (number) | people : people_id (number) , name (text) , age (number) , height (number) , hometown (text)
|
gymnast : gymnast_id (number)
| 0.923077 |
gymnast
|
List the total points of gymnasts in descending order.
|
gymnast : gymnast_id (number) , floor_exercise_points (number) , pommel_horse_points (number) , rings_points (number) , vault_points (number) , parallel_bars_points (number) , horizontal_bar_points (number) , total_points (number) | people : people_id (number) , name (text) , age (number) , height (number) , hometown (text)
|
gymnast : total_points (number)
| 0.923077 |
gymnast
|
What are the total points for all gymnasts, ordered by total points descending?
|
gymnast : gymnast_id (number) , floor_exercise_points (number) , pommel_horse_points (number) , rings_points (number) , vault_points (number) , parallel_bars_points (number) , horizontal_bar_points (number) , total_points (number) | people : people_id (number) , name (text) , age (number) , height (number) , hometown (text)
|
gymnast : total_points (number)
| 0.923077 |
gymnast
|
List the total points of gymnasts in descending order of floor exercise points.
|
gymnast : gymnast_id (number) , floor_exercise_points (number) , pommel_horse_points (number) , rings_points (number) , vault_points (number) , parallel_bars_points (number) , horizontal_bar_points (number) , total_points (number) | people : people_id (number) , name (text) , age (number) , height (number) , hometown (text)
|
gymnast : total_points (number) , floor_exercise_points (number)
| 0.846154 |
gymnast
|
What are the total points of gymnasts, ordered by their floor exercise points descending?
|
gymnast : gymnast_id (number) , floor_exercise_points (number) , pommel_horse_points (number) , rings_points (number) , vault_points (number) , parallel_bars_points (number) , horizontal_bar_points (number) , total_points (number) | people : people_id (number) , name (text) , age (number) , height (number) , hometown (text)
|
gymnast : total_points (number) , floor_exercise_points (number)
| 0.846154 |
gymnast
|
What is the average horizontal bar points for all gymnasts?
|
gymnast : gymnast_id (number) , floor_exercise_points (number) , pommel_horse_points (number) , rings_points (number) , vault_points (number) , parallel_bars_points (number) , horizontal_bar_points (number) , total_points (number) | people : people_id (number) , name (text) , age (number) , height (number) , hometown (text)
|
gymnast : horizontal_bar_points (number)
| 0.923077 |
gymnast
|
Return the average horizontal bar points across all gymnasts.
|
gymnast : gymnast_id (number) , floor_exercise_points (number) , pommel_horse_points (number) , rings_points (number) , vault_points (number) , parallel_bars_points (number) , horizontal_bar_points (number) , total_points (number) | people : people_id (number) , name (text) , age (number) , height (number) , hometown (text)
|
gymnast : horizontal_bar_points (number)
| 0.923077 |
gymnast
|
What are the names of people in ascending alphabetical order?
|
gymnast : gymnast_id (number) , floor_exercise_points (number) , pommel_horse_points (number) , rings_points (number) , vault_points (number) , parallel_bars_points (number) , horizontal_bar_points (number) , total_points (number) | people : people_id (number) , name (text) , age (number) , height (number) , hometown (text)
|
people : name (text)
| 0.923077 |
gymnast
|
Return the names of people, ordered alphabetically.
|
gymnast : gymnast_id (number) , floor_exercise_points (number) , pommel_horse_points (number) , rings_points (number) , vault_points (number) , parallel_bars_points (number) , horizontal_bar_points (number) , total_points (number) | people : people_id (number) , name (text) , age (number) , height (number) , hometown (text)
|
people : name (text)
| 0.923077 |
gymnast
|
What are the names of gymnasts?
|
gymnast : gymnast_id (number) , floor_exercise_points (number) , pommel_horse_points (number) , rings_points (number) , vault_points (number) , parallel_bars_points (number) , horizontal_bar_points (number) , total_points (number) | people : people_id (number) , name (text) , age (number) , height (number) , hometown (text)
|
people : name (text) , people_id (number) | gymnast : gymnast_id (number)
| 0.769231 |
gymnast
|
Return the names of the gymnasts.
|
gymnast : gymnast_id (number) , floor_exercise_points (number) , pommel_horse_points (number) , rings_points (number) , vault_points (number) , parallel_bars_points (number) , horizontal_bar_points (number) , total_points (number) | people : people_id (number) , name (text) , age (number) , height (number) , hometown (text)
|
people : name (text) , people_id (number) | gymnast : gymnast_id (number)
| 0.769231 |
gymnast
|
What are the names of gymnasts whose hometown is not "Santo Domingo"?
|
gymnast : gymnast_id (number) , floor_exercise_points (number) , pommel_horse_points (number) , rings_points (number) , vault_points (number) , parallel_bars_points (number) , horizontal_bar_points (number) , total_points (number) | people : people_id (number) , name (text) , age (number) , height (number) , hometown (text)
|
people : name (text) , people_id (number) , hometown (text) | gymnast : gymnast_id (number)
| 0.692308 |
gymnast
|
Return the names of gymnasts who did not grow up in Santo Domingo.
|
gymnast : gymnast_id (number) , floor_exercise_points (number) , pommel_horse_points (number) , rings_points (number) , vault_points (number) , parallel_bars_points (number) , horizontal_bar_points (number) , total_points (number) | people : people_id (number) , name (text) , age (number) , height (number) , hometown (text)
|
people : name (text) , people_id (number) , hometown (text) | gymnast : gymnast_id (number)
| 0.692308 |
gymnast
|
What is the age of the tallest person?
|
gymnast : gymnast_id (number) , floor_exercise_points (number) , pommel_horse_points (number) , rings_points (number) , vault_points (number) , parallel_bars_points (number) , horizontal_bar_points (number) , total_points (number) | people : people_id (number) , name (text) , age (number) , height (number) , hometown (text)
|
people : age (number) , height (number)
| 0.846154 |
gymnast
|
Return the age of the person with the greatest height.
|
gymnast : gymnast_id (number) , floor_exercise_points (number) , pommel_horse_points (number) , rings_points (number) , vault_points (number) , parallel_bars_points (number) , horizontal_bar_points (number) , total_points (number) | people : people_id (number) , name (text) , age (number) , height (number) , hometown (text)
|
people : age (number) , height (number)
| 0.846154 |
gymnast
|
List the names of the top 5 oldest people.
|
gymnast : gymnast_id (number) , floor_exercise_points (number) , pommel_horse_points (number) , rings_points (number) , vault_points (number) , parallel_bars_points (number) , horizontal_bar_points (number) , total_points (number) | people : people_id (number) , name (text) , age (number) , height (number) , hometown (text)
|
people : name (text) , age (number)
| 0.846154 |
gymnast
|
What are the names of the five oldest people?
|
gymnast : gymnast_id (number) , floor_exercise_points (number) , pommel_horse_points (number) , rings_points (number) , vault_points (number) , parallel_bars_points (number) , horizontal_bar_points (number) , total_points (number) | people : people_id (number) , name (text) , age (number) , height (number) , hometown (text)
|
people : name (text) , age (number)
| 0.846154 |
gymnast
|
What is the total point count of the youngest gymnast?
|
gymnast : gymnast_id (number) , floor_exercise_points (number) , pommel_horse_points (number) , rings_points (number) , vault_points (number) , parallel_bars_points (number) , horizontal_bar_points (number) , total_points (number) | people : people_id (number) , name (text) , age (number) , height (number) , hometown (text)
|
gymnast : total_points (number) , gymnast_id (number) | people : people_id (number) , age (number)
| 0.692308 |
gymnast
|
Return the total points of the gymnast with the lowest age.
|
gymnast : gymnast_id (number) , floor_exercise_points (number) , pommel_horse_points (number) , rings_points (number) , vault_points (number) , parallel_bars_points (number) , horizontal_bar_points (number) , total_points (number) | people : people_id (number) , name (text) , age (number) , height (number) , hometown (text)
|
gymnast : total_points (number) , gymnast_id (number) | people : people_id (number) , age (number)
| 0.692308 |
gymnast
|
What is the average age of all gymnasts?
|
gymnast : gymnast_id (number) , floor_exercise_points (number) , pommel_horse_points (number) , rings_points (number) , vault_points (number) , parallel_bars_points (number) , horizontal_bar_points (number) , total_points (number) | people : people_id (number) , name (text) , age (number) , height (number) , hometown (text)
|
people : age (number) , people_id (number) | gymnast : gymnast_id (number)
| 0.769231 |
gymnast
|
Return the average age across all gymnasts.
|
gymnast : gymnast_id (number) , floor_exercise_points (number) , pommel_horse_points (number) , rings_points (number) , vault_points (number) , parallel_bars_points (number) , horizontal_bar_points (number) , total_points (number) | people : people_id (number) , name (text) , age (number) , height (number) , hometown (text)
|
people : age (number) , people_id (number) | gymnast : gymnast_id (number)
| 0.769231 |
gymnast
|
What are the distinct hometowns of gymnasts with total points more than 57.5?
|
gymnast : gymnast_id (number) , floor_exercise_points (number) , pommel_horse_points (number) , rings_points (number) , vault_points (number) , parallel_bars_points (number) , horizontal_bar_points (number) , total_points (number) | people : people_id (number) , name (text) , age (number) , height (number) , hometown (text)
|
people : hometown (text) , people_id (number) | gymnast : gymnast_id (number) , total_points (number)
| 0.692308 |
gymnast
|
Give the different hometowns of gymnasts that have a total point score of above 57.5.
|
gymnast : gymnast_id (number) , floor_exercise_points (number) , pommel_horse_points (number) , rings_points (number) , vault_points (number) , parallel_bars_points (number) , horizontal_bar_points (number) , total_points (number) | people : people_id (number) , name (text) , age (number) , height (number) , hometown (text)
|
people : hometown (text) , people_id (number) | gymnast : gymnast_id (number) , total_points (number)
| 0.692308 |
gymnast
|
What are the hometowns of gymnasts and the corresponding number of gymnasts?
|
gymnast : gymnast_id (number) , floor_exercise_points (number) , pommel_horse_points (number) , rings_points (number) , vault_points (number) , parallel_bars_points (number) , horizontal_bar_points (number) , total_points (number) | people : people_id (number) , name (text) , age (number) , height (number) , hometown (text)
|
people : hometown (text) , people_id (number) | gymnast : gymnast_id (number)
| 0.769231 |
gymnast
|
How many gymnasts are from each hometown?
|
gymnast : gymnast_id (number) , floor_exercise_points (number) , pommel_horse_points (number) , rings_points (number) , vault_points (number) , parallel_bars_points (number) , horizontal_bar_points (number) , total_points (number) | people : people_id (number) , name (text) , age (number) , height (number) , hometown (text)
|
people : hometown (text) , people_id (number) | gymnast : gymnast_id (number)
| 0.769231 |
gymnast
|
What is the most common hometown of gymnasts?
|
gymnast : gymnast_id (number) , floor_exercise_points (number) , pommel_horse_points (number) , rings_points (number) , vault_points (number) , parallel_bars_points (number) , horizontal_bar_points (number) , total_points (number) | people : people_id (number) , name (text) , age (number) , height (number) , hometown (text)
|
people : hometown (text) , people_id (number) | gymnast : gymnast_id (number)
| 0.769231 |
gymnast
|
Return the hometown that is most common among gymnasts.
|
gymnast : gymnast_id (number) , floor_exercise_points (number) , pommel_horse_points (number) , rings_points (number) , vault_points (number) , parallel_bars_points (number) , horizontal_bar_points (number) , total_points (number) | people : people_id (number) , name (text) , age (number) , height (number) , hometown (text)
|
people : hometown (text) , people_id (number) | gymnast : gymnast_id (number)
| 0.769231 |
gymnast
|
What are the hometowns that are shared by at least two gymnasts?
|
gymnast : gymnast_id (number) , floor_exercise_points (number) , pommel_horse_points (number) , rings_points (number) , vault_points (number) , parallel_bars_points (number) , horizontal_bar_points (number) , total_points (number) | people : people_id (number) , name (text) , age (number) , height (number) , hometown (text)
|
people : hometown (text) , people_id (number) | gymnast : gymnast_id (number)
| 0.769231 |
gymnast
|
Give the hometowns from which two or more gymnasts are from.
|
gymnast : gymnast_id (number) , floor_exercise_points (number) , pommel_horse_points (number) , rings_points (number) , vault_points (number) , parallel_bars_points (number) , horizontal_bar_points (number) , total_points (number) | people : people_id (number) , name (text) , age (number) , height (number) , hometown (text)
|
people : hometown (text) , people_id (number) | gymnast : gymnast_id (number)
| 0.769231 |
gymnast
|
List the names of gymnasts in ascending order by their heights.
|
gymnast : gymnast_id (number) , floor_exercise_points (number) , pommel_horse_points (number) , rings_points (number) , vault_points (number) , parallel_bars_points (number) , horizontal_bar_points (number) , total_points (number) | people : people_id (number) , name (text) , age (number) , height (number) , hometown (text)
|
people : name (text) , people_id (number) , height (number) | gymnast : gymnast_id (number)
| 0.692308 |
gymnast
|
What are the names of gymnasts, ordered by their heights ascending?
|
gymnast : gymnast_id (number) , floor_exercise_points (number) , pommel_horse_points (number) , rings_points (number) , vault_points (number) , parallel_bars_points (number) , horizontal_bar_points (number) , total_points (number) | people : people_id (number) , name (text) , age (number) , height (number) , hometown (text)
|
people : name (text) , people_id (number) , height (number) | gymnast : gymnast_id (number)
| 0.692308 |
gymnast
|
List the distinct hometowns that are not associated with any gymnast.
|
gymnast : gymnast_id (number) , floor_exercise_points (number) , pommel_horse_points (number) , rings_points (number) , vault_points (number) , parallel_bars_points (number) , horizontal_bar_points (number) , total_points (number) | people : people_id (number) , name (text) , age (number) , height (number) , hometown (text)
|
people : hometown (text) , people_id (number) | gymnast : gymnast_id (number)
| 0.769231 |
gymnast
|
From which hometowns did no gymnasts come from?
|
gymnast : gymnast_id (number) , floor_exercise_points (number) , pommel_horse_points (number) , rings_points (number) , vault_points (number) , parallel_bars_points (number) , horizontal_bar_points (number) , total_points (number) | people : people_id (number) , name (text) , age (number) , height (number) , hometown (text)
|
people : hometown (text) , people_id (number) | gymnast : gymnast_id (number)
| 0.769231 |
gymnast
|
Show the hometowns shared by people older than 23 and younger than 20.
|
gymnast : gymnast_id (number) , floor_exercise_points (number) , pommel_horse_points (number) , rings_points (number) , vault_points (number) , parallel_bars_points (number) , horizontal_bar_points (number) , total_points (number) | people : people_id (number) , name (text) , age (number) , height (number) , hometown (text)
|
people : hometown (text) , age (number)
| 0.846154 |
gymnast
|
From which hometowns did both people older than 23 and younger than 20 come from?
|
gymnast : gymnast_id (number) , floor_exercise_points (number) , pommel_horse_points (number) , rings_points (number) , vault_points (number) , parallel_bars_points (number) , horizontal_bar_points (number) , total_points (number) | people : people_id (number) , name (text) , age (number) , height (number) , hometown (text)
|
people : hometown (text) , age (number)
| 0.846154 |
gymnast
|
How many distinct hometowns did these people have?
|
gymnast : gymnast_id (number) , floor_exercise_points (number) , pommel_horse_points (number) , rings_points (number) , vault_points (number) , parallel_bars_points (number) , horizontal_bar_points (number) , total_points (number) | people : people_id (number) , name (text) , age (number) , height (number) , hometown (text)
|
people : hometown (text)
| 0.923077 |
gymnast
|
Count the number of different hometowns of these people.
|
gymnast : gymnast_id (number) , floor_exercise_points (number) , pommel_horse_points (number) , rings_points (number) , vault_points (number) , parallel_bars_points (number) , horizontal_bar_points (number) , total_points (number) | people : people_id (number) , name (text) , age (number) , height (number) , hometown (text)
|
people : hometown (text)
| 0.923077 |
gymnast
|
Show the ages of gymnasts in descending order of total points.
|
gymnast : gymnast_id (number) , floor_exercise_points (number) , pommel_horse_points (number) , rings_points (number) , vault_points (number) , parallel_bars_points (number) , horizontal_bar_points (number) , total_points (number) | people : people_id (number) , name (text) , age (number) , height (number) , hometown (text)
|
people : age (number) , people_id (number) | gymnast : gymnast_id (number) , total_points (number)
| 0.692308 |
gymnast
|
What are the ages of the gymnasts, ordered descending by their total points?
|
gymnast : gymnast_id (number) , floor_exercise_points (number) , pommel_horse_points (number) , rings_points (number) , vault_points (number) , parallel_bars_points (number) , horizontal_bar_points (number) , total_points (number) | people : people_id (number) , name (text) , age (number) , height (number) , hometown (text)
|
people : age (number) , people_id (number) | gymnast : gymnast_id (number) , total_points (number)
| 0.692308 |
small_bank_1
|
Find the total savings balance of all accounts except the account with name ‘Brown’.
|
accounts : custid (number) , name (text) | savings : custid (number) , balance (number) | checking : custid (number) , balance (number)
|
savings : balance (number) , custid (number) | accounts : custid (number) , name (text)
| 0.333333 |
small_bank_1
|
What is the total balance of savings accounts not belonging to someone with the name Brown?
|
accounts : custid (number) , name (text) | savings : custid (number) , balance (number) | checking : custid (number) , balance (number)
|
savings : balance (number) , custid (number) | accounts : custid (number) , name (text)
| 0.333333 |
small_bank_1
|
How many accounts are there in total?
|
accounts : custid (number) , name (text) | savings : custid (number) , balance (number) | checking : custid (number) , balance (number)
|
accounts : custid (number)
| 0.833333 |
small_bank_1
|
Count the number of accounts.
|
accounts : custid (number) , name (text) | savings : custid (number) , balance (number) | checking : custid (number) , balance (number)
|
accounts : custid (number)
| 0.833333 |
small_bank_1
|
What is the total checking balance in all accounts?
|
accounts : custid (number) , name (text) | savings : custid (number) , balance (number) | checking : custid (number) , balance (number)
|
checking : balance (number)
| 0.833333 |
small_bank_1
|
Find the total balance across checking accounts.
|
accounts : custid (number) , name (text) | savings : custid (number) , balance (number) | checking : custid (number) , balance (number)
|
checking : balance (number)
| 0.833333 |
small_bank_1
|
Find the average checking balance.
|
accounts : custid (number) , name (text) | savings : custid (number) , balance (number) | checking : custid (number) , balance (number)
|
checking : balance (number)
| 0.833333 |
small_bank_1
|
What is the average balance in checking accounts?
|
accounts : custid (number) , name (text) | savings : custid (number) , balance (number) | checking : custid (number) , balance (number)
|
checking : balance (number)
| 0.833333 |
small_bank_1
|
How many accounts have a savings balance above the average savings balance?
|
accounts : custid (number) , name (text) | savings : custid (number) , balance (number) | checking : custid (number) , balance (number)
|
savings : balance (number) , custid (number)
| 0.666667 |
small_bank_1
|
Find the number of accounts with a savings balance that is higher than the average savings balance.
|
accounts : custid (number) , name (text) | savings : custid (number) , balance (number) | checking : custid (number) , balance (number)
|
savings : balance (number) , custid (number)
| 0.666667 |
small_bank_1
|
Find the name and id of accounts whose checking balance is below the maximum checking balance.
|
accounts : custid (number) , name (text) | savings : custid (number) , balance (number) | checking : custid (number) , balance (number)
|
accounts : custid (number) , name (text) | checking : custid (number) , balance (number)
| 0.333333 |
small_bank_1
|
What are the customer id and name corresponding to accounts with a checking balance less than the largest checking balance?
|
accounts : custid (number) , name (text) | savings : custid (number) , balance (number) | checking : custid (number) , balance (number)
|
accounts : custid (number) , name (text) | checking : custid (number) , balance (number)
| 0.333333 |
small_bank_1
|
What is the checking balance of the account whose owner’s name contains the substring ‘ee’?
|
accounts : custid (number) , name (text) | savings : custid (number) , balance (number) | checking : custid (number) , balance (number)
|
checking : balance (number) , custid (number) | accounts : custid (number) , name (text)
| 0.333333 |
small_bank_1
|
Find the balance of the checking account belonging to an owner whose name contains 'ee'.
|
accounts : custid (number) , name (text) | savings : custid (number) , balance (number) | checking : custid (number) , balance (number)
|
checking : balance (number) , custid (number) | accounts : custid (number) , name (text)
| 0.333333 |
small_bank_1
|
Find the checking balance and saving balance in the Brown’s account.
|
accounts : custid (number) , name (text) | savings : custid (number) , balance (number) | checking : custid (number) , balance (number)
|
savings : balance (number) , custid (number) | checking : balance (number) , custid (number) | accounts : custid (number) , name (text)
| 0 |
small_bank_1
|
What are the checking and savings balances in accounts belonging to Brown?
|
accounts : custid (number) , name (text) | savings : custid (number) , balance (number) | checking : custid (number) , balance (number)
|
savings : balance (number) , custid (number) | checking : balance (number) , custid (number) | accounts : custid (number) , name (text)
| 0 |
small_bank_1
|
Find the names of accounts whose checking balance is above the average checking balance, but savings balance is below the average savings balance.
|
accounts : custid (number) , name (text) | savings : custid (number) , balance (number) | checking : custid (number) , balance (number)
|
accounts : name (text) , custid (number) | savings : custid (number) , balance (number) | checking : custid (number) , balance (number)
| 0 |
small_bank_1
|
What are the names of accounts with checking balances greater than the average checking balance and savings balances below the average savings balance?
|
accounts : custid (number) , name (text) | savings : custid (number) , balance (number) | checking : custid (number) , balance (number)
|
accounts : name (text) , custid (number) | savings : custid (number) , balance (number) | checking : custid (number) , balance (number)
| 0 |
small_bank_1
|
Find the checking balance of the accounts whose savings balance is higher than the average savings balance.
|
accounts : custid (number) , name (text) | savings : custid (number) , balance (number) | checking : custid (number) , balance (number)
|
savings : balance (number) , custid (number) | checking : balance (number) , custid (number) | accounts : custid (number) , name (text)
| 0 |
small_bank_1
|
What are the balances of checking accounts belonging to people with savings balances greater than the average savings balance?
|
accounts : custid (number) , name (text) | savings : custid (number) , balance (number) | checking : custid (number) , balance (number)
|
savings : balance (number) , custid (number) | checking : balance (number) , custid (number) | accounts : custid (number) , name (text)
| 0 |
small_bank_1
|
List all customers’ names in the alphabetical order.
|
accounts : custid (number) , name (text) | savings : custid (number) , balance (number) | checking : custid (number) , balance (number)
|
accounts : name (text)
| 0.833333 |
small_bank_1
|
What are the names of all the customers in alphabetical order?
|
accounts : custid (number) , name (text) | savings : custid (number) , balance (number) | checking : custid (number) , balance (number)
|
accounts : name (text)
| 0.833333 |
small_bank_1
|
Find the name of account that has the lowest total checking and saving balance.
|
accounts : custid (number) , name (text) | savings : custid (number) , balance (number) | checking : custid (number) , balance (number)
|
accounts : name (text) , custid (number) | savings : custid (number) , balance (number) | checking : custid (number) , balance (number)
| 0 |
small_bank_1
|
What is the name corresponding to the accoung with the lowest sum of checking and savings balances?
|
accounts : custid (number) , name (text) | savings : custid (number) , balance (number) | checking : custid (number) , balance (number)
|
accounts : name (text) , custid (number) | savings : custid (number) , balance (number) | checking : custid (number) , balance (number)
| 0 |
small_bank_1
|
Find the names and total checking and savings balances of accounts whose savings balance is higher than the average savings balance.
|
accounts : custid (number) , name (text) | savings : custid (number) , balance (number) | checking : custid (number) , balance (number)
|
accounts : name (text) , custid (number) | savings : balance (number) , custid (number) | checking : balance (number) , custid (number)
| 0 |
small_bank_1
|
What are the names and sum of checking and savings balances for accounts with savings balances higher than the average savings balance?
|
accounts : custid (number) , name (text) | savings : custid (number) , balance (number) | checking : custid (number) , balance (number)
|
accounts : name (text) , custid (number) | savings : balance (number) , custid (number) | checking : balance (number) , custid (number)
| 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.