db_id
stringclasses 140
values | question
stringlengths 16
224
| schema
stringclasses 140
values | summarized-schema
stringlengths 18
304
| shrink-score
float64 0
1
|
---|---|---|---|---|
game_1 | Show all student IDs with more than total 10 hours per week on all sports played. | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | video_games : gameid (number) , gname (text) , gtype (text) | plays_games : stuid (number) , gameid (number) , hours_played (number) | sportsinfo : stuid (number) , sportname (text) , hoursperweek (number) , gamesplayed (number) , onscholarship (text) | sportsinfo : stuid (number) , hoursperweek (number) | 0.894737 |
game_1 | What are the student IDs for everybody who worked for more than 10 hours per week on all sports? | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | video_games : gameid (number) , gname (text) , gtype (text) | plays_games : stuid (number) , gameid (number) , hours_played (number) | sportsinfo : stuid (number) , sportname (text) , hoursperweek (number) , gamesplayed (number) , onscholarship (text) | sportsinfo : stuid (number) , hoursperweek (number) | 0.894737 |
game_1 | What is the first name and last name of the student who have most number of sports? | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | video_games : gameid (number) , gname (text) , gtype (text) | plays_games : stuid (number) , gameid (number) , hours_played (number) | sportsinfo : stuid (number) , sportname (text) , hoursperweek (number) , gamesplayed (number) , onscholarship (text) | student : fname (text) , lname (text) , stuid (number) | sportsinfo : stuid (number) | 0.789474 |
game_1 | What is the first and last name of the student who played the most sports? | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | video_games : gameid (number) , gname (text) , gtype (text) | plays_games : stuid (number) , gameid (number) , hours_played (number) | sportsinfo : stuid (number) , sportname (text) , hoursperweek (number) , gamesplayed (number) , onscholarship (text) | student : fname (text) , lname (text) , stuid (number) | sportsinfo : stuid (number) | 0.789474 |
game_1 | Which sport has most number of students on scholarship? | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | video_games : gameid (number) , gname (text) , gtype (text) | plays_games : stuid (number) , gameid (number) , hours_played (number) | sportsinfo : stuid (number) , sportname (text) , hoursperweek (number) , gamesplayed (number) , onscholarship (text) | sportsinfo : sportname (text) , onscholarship (text) | 0.894737 |
game_1 | What is the sport with the most scholarship students? | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | video_games : gameid (number) , gname (text) , gtype (text) | plays_games : stuid (number) , gameid (number) , hours_played (number) | sportsinfo : stuid (number) , sportname (text) , hoursperweek (number) , gamesplayed (number) , onscholarship (text) | sportsinfo : sportname (text) , onscholarship (text) | 0.894737 |
game_1 | Show student ids who don't have any sports. | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | video_games : gameid (number) , gname (text) , gtype (text) | plays_games : stuid (number) , gameid (number) , hours_played (number) | sportsinfo : stuid (number) , sportname (text) , hoursperweek (number) , gamesplayed (number) , onscholarship (text) | student : stuid (number) | sportsinfo : stuid (number) | 0.894737 |
game_1 | What are the ids of all students who don't play sports? | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | video_games : gameid (number) , gname (text) , gtype (text) | plays_games : stuid (number) , gameid (number) , hours_played (number) | sportsinfo : stuid (number) , sportname (text) , hoursperweek (number) , gamesplayed (number) , onscholarship (text) | student : stuid (number) | sportsinfo : stuid (number) | 0.894737 |
game_1 | Show student ids who are on scholarship and have major 600. | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | video_games : gameid (number) , gname (text) , gtype (text) | plays_games : stuid (number) , gameid (number) , hours_played (number) | sportsinfo : stuid (number) , sportname (text) , hoursperweek (number) , gamesplayed (number) , onscholarship (text) | student : stuid (number) , major (number) | sportsinfo : stuid (number) , onscholarship (text) | 0.789474 |
game_1 | What are the student ids for those on scholarship in major number 600? | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | video_games : gameid (number) , gname (text) , gtype (text) | plays_games : stuid (number) , gameid (number) , hours_played (number) | sportsinfo : stuid (number) , sportname (text) , hoursperweek (number) , gamesplayed (number) , onscholarship (text) | student : stuid (number) , major (number) | sportsinfo : stuid (number) , onscholarship (text) | 0.789474 |
game_1 | Show student ids who are female and play football. | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | video_games : gameid (number) , gname (text) , gtype (text) | plays_games : stuid (number) , gameid (number) , hours_played (number) | sportsinfo : stuid (number) , sportname (text) , hoursperweek (number) , gamesplayed (number) , onscholarship (text) | student : stuid (number) , sex (text) | sportsinfo : stuid (number) , sportname (text) | 0.789474 |
game_1 | What are the ids of all female students who play football? | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | video_games : gameid (number) , gname (text) , gtype (text) | plays_games : stuid (number) , gameid (number) , hours_played (number) | sportsinfo : stuid (number) , sportname (text) , hoursperweek (number) , gamesplayed (number) , onscholarship (text) | student : stuid (number) , sex (text) | sportsinfo : stuid (number) , sportname (text) | 0.789474 |
game_1 | Show all male student ids who don't play football. | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | video_games : gameid (number) , gname (text) , gtype (text) | plays_games : stuid (number) , gameid (number) , hours_played (number) | sportsinfo : stuid (number) , sportname (text) , hoursperweek (number) , gamesplayed (number) , onscholarship (text) | student : stuid (number) , sex (text) | sportsinfo : stuid (number) , sportname (text) | 0.789474 |
game_1 | What are the ids of all male students who do not play football? | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | video_games : gameid (number) , gname (text) , gtype (text) | plays_games : stuid (number) , gameid (number) , hours_played (number) | sportsinfo : stuid (number) , sportname (text) , hoursperweek (number) , gamesplayed (number) , onscholarship (text) | student : stuid (number) , sex (text) | sportsinfo : stuid (number) , sportname (text) | 0.789474 |
game_1 | Show total hours per week and number of games played for student David Shieber. | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | video_games : gameid (number) , gname (text) , gtype (text) | plays_games : stuid (number) , gameid (number) , hours_played (number) | sportsinfo : stuid (number) , sportname (text) , hoursperweek (number) , gamesplayed (number) , onscholarship (text) | sportsinfo : hoursperweek (number) , gamesplayed (number) , stuid (number) | student : stuid (number) , fname (text) , lname (text) | 0.684211 |
game_1 | What is the total number of hours per work and number of games played by David Shieber? | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | video_games : gameid (number) , gname (text) , gtype (text) | plays_games : stuid (number) , gameid (number) , hours_played (number) | sportsinfo : stuid (number) , sportname (text) , hoursperweek (number) , gamesplayed (number) , onscholarship (text) | sportsinfo : hoursperweek (number) , gamesplayed (number) , stuid (number) | student : stuid (number) , fname (text) , lname (text) | 0.684211 |
game_1 | Show total hours per week and number of games played for students under 20. | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | video_games : gameid (number) , gname (text) , gtype (text) | plays_games : stuid (number) , gameid (number) , hours_played (number) | sportsinfo : stuid (number) , sportname (text) , hoursperweek (number) , gamesplayed (number) , onscholarship (text) | sportsinfo : hoursperweek (number) , gamesplayed (number) , stuid (number) | student : stuid (number) , age (number) | 0.736842 |
game_1 | What is the total number of hours per week and number of games played by students under 20? | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | video_games : gameid (number) , gname (text) , gtype (text) | plays_games : stuid (number) , gameid (number) , hours_played (number) | sportsinfo : stuid (number) , sportname (text) , hoursperweek (number) , gamesplayed (number) , onscholarship (text) | sportsinfo : hoursperweek (number) , gamesplayed (number) , stuid (number) | student : stuid (number) , age (number) | 0.736842 |
game_1 | How many students play video games? | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | video_games : gameid (number) , gname (text) , gtype (text) | plays_games : stuid (number) , gameid (number) , hours_played (number) | sportsinfo : stuid (number) , sportname (text) , hoursperweek (number) , gamesplayed (number) , onscholarship (text) | plays_games : stuid (number) | 0.947368 |
game_1 | How many different students play games? | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | video_games : gameid (number) , gname (text) , gtype (text) | plays_games : stuid (number) , gameid (number) , hours_played (number) | sportsinfo : stuid (number) , sportname (text) , hoursperweek (number) , gamesplayed (number) , onscholarship (text) | plays_games : stuid (number) | 0.947368 |
game_1 | Show ids of students who don't play video game. | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | video_games : gameid (number) , gname (text) , gtype (text) | plays_games : stuid (number) , gameid (number) , hours_played (number) | sportsinfo : stuid (number) , sportname (text) , hoursperweek (number) , gamesplayed (number) , onscholarship (text) | student : stuid (number) | plays_games : stuid (number) | 0.894737 |
game_1 | What are the ids of all students who are not video game players? | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | video_games : gameid (number) , gname (text) , gtype (text) | plays_games : stuid (number) , gameid (number) , hours_played (number) | sportsinfo : stuid (number) , sportname (text) , hoursperweek (number) , gamesplayed (number) , onscholarship (text) | student : stuid (number) | plays_games : stuid (number) | 0.894737 |
game_1 | Show ids of students who play video game and play sports. | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | video_games : gameid (number) , gname (text) , gtype (text) | plays_games : stuid (number) , gameid (number) , hours_played (number) | sportsinfo : stuid (number) , sportname (text) , hoursperweek (number) , gamesplayed (number) , onscholarship (text) | plays_games : stuid (number) | sportsinfo : stuid (number) | 0.894737 |
game_1 | What are the ids of all students who played video games and sports? | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | video_games : gameid (number) , gname (text) , gtype (text) | plays_games : stuid (number) , gameid (number) , hours_played (number) | sportsinfo : stuid (number) , sportname (text) , hoursperweek (number) , gamesplayed (number) , onscholarship (text) | plays_games : stuid (number) | sportsinfo : stuid (number) | 0.894737 |
game_1 | Show all game ids and the number of hours played. | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | video_games : gameid (number) , gname (text) , gtype (text) | plays_games : stuid (number) , gameid (number) , hours_played (number) | sportsinfo : stuid (number) , sportname (text) , hoursperweek (number) , gamesplayed (number) , onscholarship (text) | plays_games : gameid (number) , hours_played (number) | 0.894737 |
game_1 | What are ids and total number of hours played for each game? | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | video_games : gameid (number) , gname (text) , gtype (text) | plays_games : stuid (number) , gameid (number) , hours_played (number) | sportsinfo : stuid (number) , sportname (text) , hoursperweek (number) , gamesplayed (number) , onscholarship (text) | plays_games : gameid (number) , hours_played (number) | 0.894737 |
game_1 | Show all student ids and the number of hours played. | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | video_games : gameid (number) , gname (text) , gtype (text) | plays_games : stuid (number) , gameid (number) , hours_played (number) | sportsinfo : stuid (number) , sportname (text) , hoursperweek (number) , gamesplayed (number) , onscholarship (text) | plays_games : stuid (number) , hours_played (number) | 0.894737 |
game_1 | What are the ids of all students and number of hours played? | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | video_games : gameid (number) , gname (text) , gtype (text) | plays_games : stuid (number) , gameid (number) , hours_played (number) | sportsinfo : stuid (number) , sportname (text) , hoursperweek (number) , gamesplayed (number) , onscholarship (text) | plays_games : stuid (number) , hours_played (number) | 0.894737 |
game_1 | Show the game name that has most number of hours played. | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | video_games : gameid (number) , gname (text) , gtype (text) | plays_games : stuid (number) , gameid (number) , hours_played (number) | sportsinfo : stuid (number) , sportname (text) , hoursperweek (number) , gamesplayed (number) , onscholarship (text) | video_games : gname (text) , gameid (number) | plays_games : gameid (number) , hours_played (number) | 0.789474 |
game_1 | What is the name of the game that has been played the most? | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | video_games : gameid (number) , gname (text) , gtype (text) | plays_games : stuid (number) , gameid (number) , hours_played (number) | sportsinfo : stuid (number) , sportname (text) , hoursperweek (number) , gamesplayed (number) , onscholarship (text) | video_games : gname (text) , gameid (number) | plays_games : gameid (number) , hours_played (number) | 0.789474 |
game_1 | Show all game names played by at least 1000 hours. | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | video_games : gameid (number) , gname (text) , gtype (text) | plays_games : stuid (number) , gameid (number) , hours_played (number) | sportsinfo : stuid (number) , sportname (text) , hoursperweek (number) , gamesplayed (number) , onscholarship (text) | video_games : gname (text) , gameid (number) | plays_games : gameid (number) , hours_played (number) | 0.789474 |
game_1 | What are the names of all the games that have been played for at least 1000 hours? | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | video_games : gameid (number) , gname (text) , gtype (text) | plays_games : stuid (number) , gameid (number) , hours_played (number) | sportsinfo : stuid (number) , sportname (text) , hoursperweek (number) , gamesplayed (number) , onscholarship (text) | video_games : gname (text) , gameid (number) | plays_games : gameid (number) , hours_played (number) | 0.789474 |
game_1 | Show all game names played by Linda Smith | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | video_games : gameid (number) , gname (text) , gtype (text) | plays_games : stuid (number) , gameid (number) , hours_played (number) | sportsinfo : stuid (number) , sportname (text) , hoursperweek (number) , gamesplayed (number) , onscholarship (text) | video_games : gname (text) , gameid (number) | plays_games : gameid (number) , stuid (number) | student : stuid (number) , lname (text) , fname (text) | 0.631579 |
game_1 | What are the names of all games played by Linda Smith? | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | video_games : gameid (number) , gname (text) , gtype (text) | plays_games : stuid (number) , gameid (number) , hours_played (number) | sportsinfo : stuid (number) , sportname (text) , hoursperweek (number) , gamesplayed (number) , onscholarship (text) | video_games : gname (text) , gameid (number) | plays_games : gameid (number) , stuid (number) | student : stuid (number) , lname (text) , fname (text) | 0.631579 |
game_1 | Find the last and first name of students who are playing Football or Lacrosse. | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | video_games : gameid (number) , gname (text) , gtype (text) | plays_games : stuid (number) , gameid (number) , hours_played (number) | sportsinfo : stuid (number) , sportname (text) , hoursperweek (number) , gamesplayed (number) , onscholarship (text) | student : lname (text) , fname (text) , stuid (number) | sportsinfo : stuid (number) , sportname (text) | 0.736842 |
game_1 | What is the first and last name of all students who play Football or Lacrosse? | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | video_games : gameid (number) , gname (text) , gtype (text) | plays_games : stuid (number) , gameid (number) , hours_played (number) | sportsinfo : stuid (number) , sportname (text) , hoursperweek (number) , gamesplayed (number) , onscholarship (text) | student : lname (text) , fname (text) , stuid (number) | sportsinfo : stuid (number) , sportname (text) | 0.736842 |
game_1 | Find the first name and age of the students who are playing both Football and Lacrosse. | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | video_games : gameid (number) , gname (text) , gtype (text) | plays_games : stuid (number) , gameid (number) , hours_played (number) | sportsinfo : stuid (number) , sportname (text) , hoursperweek (number) , gamesplayed (number) , onscholarship (text) | student : fname (text) , age (number) , stuid (number) | sportsinfo : stuid (number) , sportname (text) | 0.736842 |
game_1 | What are the first names and ages of all students who are playing both Football and Lacrosse? | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | video_games : gameid (number) , gname (text) , gtype (text) | plays_games : stuid (number) , gameid (number) , hours_played (number) | sportsinfo : stuid (number) , sportname (text) , hoursperweek (number) , gamesplayed (number) , onscholarship (text) | student : fname (text) , age (number) , stuid (number) | sportsinfo : stuid (number) , sportname (text) | 0.736842 |
game_1 | Find the last name and gender of the students who are playing both Call of Destiny and Works of Widenius games. | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | video_games : gameid (number) , gname (text) , gtype (text) | plays_games : stuid (number) , gameid (number) , hours_played (number) | sportsinfo : stuid (number) , sportname (text) , hoursperweek (number) , gamesplayed (number) , onscholarship (text) | student : lname (text) , sex (text) , stuid (number) | plays_games : stuid (number) , gameid (number) | video_games : gameid (number) , gname (text) | 0.631579 |
game_1 | what is the last name and gender of all students who played both Call of Destiny and Works of Widenius? | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | video_games : gameid (number) , gname (text) , gtype (text) | plays_games : stuid (number) , gameid (number) , hours_played (number) | sportsinfo : stuid (number) , sportname (text) , hoursperweek (number) , gamesplayed (number) , onscholarship (text) | student : lname (text) , sex (text) , stuid (number) | plays_games : stuid (number) , gameid (number) | video_games : gameid (number) , gname (text) | 0.631579 |
customers_and_addresses | Find the name of all customers. | addresses : address_id (number) , address_content (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) , other_address_details (text) | products : product_id (number) , product_details (text) | customers : customer_id (number) , payment_method (text) , customer_name (text) , date_became_customer (time) , other_customer_details (text) | customer_addresses : customer_id (number) , address_id (number) , date_address_from (time) , address_type (text) , date_address_to (time) | customer_contact_channels : customer_id (number) , channel_code (text) , active_from_date (time) , active_to_date (time) , contact_number (text) | customer_orders : order_id (number) , customer_id (number) , order_status (text) , order_date (time) , order_details (text) | order_items : order_id (number) , product_id (number) , order_quantity (text) | customers : customer_name (text) | 0.96875 |
customers_and_addresses | What are the names of all the customers? | addresses : address_id (number) , address_content (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) , other_address_details (text) | products : product_id (number) , product_details (text) | customers : customer_id (number) , payment_method (text) , customer_name (text) , date_became_customer (time) , other_customer_details (text) | customer_addresses : customer_id (number) , address_id (number) , date_address_from (time) , address_type (text) , date_address_to (time) | customer_contact_channels : customer_id (number) , channel_code (text) , active_from_date (time) , active_to_date (time) , contact_number (text) | customer_orders : order_id (number) , customer_id (number) , order_status (text) , order_date (time) , order_details (text) | order_items : order_id (number) , product_id (number) , order_quantity (text) | customers : customer_name (text) | 0.96875 |
customers_and_addresses | How many customers are there? | addresses : address_id (number) , address_content (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) , other_address_details (text) | products : product_id (number) , product_details (text) | customers : customer_id (number) , payment_method (text) , customer_name (text) , date_became_customer (time) , other_customer_details (text) | customer_addresses : customer_id (number) , address_id (number) , date_address_from (time) , address_type (text) , date_address_to (time) | customer_contact_channels : customer_id (number) , channel_code (text) , active_from_date (time) , active_to_date (time) , contact_number (text) | customer_orders : order_id (number) , customer_id (number) , order_status (text) , order_date (time) , order_details (text) | order_items : order_id (number) , product_id (number) , order_quantity (text) | customers : customer_id (number) | 0.96875 |
customers_and_addresses | Return the total number of distinct customers. | addresses : address_id (number) , address_content (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) , other_address_details (text) | products : product_id (number) , product_details (text) | customers : customer_id (number) , payment_method (text) , customer_name (text) , date_became_customer (time) , other_customer_details (text) | customer_addresses : customer_id (number) , address_id (number) , date_address_from (time) , address_type (text) , date_address_to (time) | customer_contact_channels : customer_id (number) , channel_code (text) , active_from_date (time) , active_to_date (time) , contact_number (text) | customer_orders : order_id (number) , customer_id (number) , order_status (text) , order_date (time) , order_details (text) | order_items : order_id (number) , product_id (number) , order_quantity (text) | customers : customer_id (number) | 0.96875 |
customers_and_addresses | What is the average amount of items ordered in each order? | addresses : address_id (number) , address_content (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) , other_address_details (text) | products : product_id (number) , product_details (text) | customers : customer_id (number) , payment_method (text) , customer_name (text) , date_became_customer (time) , other_customer_details (text) | customer_addresses : customer_id (number) , address_id (number) , date_address_from (time) , address_type (text) , date_address_to (time) | customer_contact_channels : customer_id (number) , channel_code (text) , active_from_date (time) , active_to_date (time) , contact_number (text) | customer_orders : order_id (number) , customer_id (number) , order_status (text) , order_date (time) , order_details (text) | order_items : order_id (number) , product_id (number) , order_quantity (text) | order_items : order_quantity (text) | 0.96875 |
customers_and_addresses | Find the average order quantity per order. | addresses : address_id (number) , address_content (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) , other_address_details (text) | products : product_id (number) , product_details (text) | customers : customer_id (number) , payment_method (text) , customer_name (text) , date_became_customer (time) , other_customer_details (text) | customer_addresses : customer_id (number) , address_id (number) , date_address_from (time) , address_type (text) , date_address_to (time) | customer_contact_channels : customer_id (number) , channel_code (text) , active_from_date (time) , active_to_date (time) , contact_number (text) | customer_orders : order_id (number) , customer_id (number) , order_status (text) , order_date (time) , order_details (text) | order_items : order_id (number) , product_id (number) , order_quantity (text) | order_items : order_quantity (text) | 0.96875 |
customers_and_addresses | What are the names of customers who use payment method "Cash"? | addresses : address_id (number) , address_content (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) , other_address_details (text) | products : product_id (number) , product_details (text) | customers : customer_id (number) , payment_method (text) , customer_name (text) , date_became_customer (time) , other_customer_details (text) | customer_addresses : customer_id (number) , address_id (number) , date_address_from (time) , address_type (text) , date_address_to (time) | customer_contact_channels : customer_id (number) , channel_code (text) , active_from_date (time) , active_to_date (time) , contact_number (text) | customer_orders : order_id (number) , customer_id (number) , order_status (text) , order_date (time) , order_details (text) | order_items : order_id (number) , product_id (number) , order_quantity (text) | customers : customer_name (text) , payment_method (text) | 0.9375 |
customers_and_addresses | Which customers use "Cash" for payment method? Return the customer names. | addresses : address_id (number) , address_content (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) , other_address_details (text) | products : product_id (number) , product_details (text) | customers : customer_id (number) , payment_method (text) , customer_name (text) , date_became_customer (time) , other_customer_details (text) | customer_addresses : customer_id (number) , address_id (number) , date_address_from (time) , address_type (text) , date_address_to (time) | customer_contact_channels : customer_id (number) , channel_code (text) , active_from_date (time) , active_to_date (time) , contact_number (text) | customer_orders : order_id (number) , customer_id (number) , order_status (text) , order_date (time) , order_details (text) | order_items : order_id (number) , product_id (number) , order_quantity (text) | customers : customer_name (text) , payment_method (text) | 0.9375 |
customers_and_addresses | Find the "date became customers" of the customers whose ID is between 10 and 20. | addresses : address_id (number) , address_content (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) , other_address_details (text) | products : product_id (number) , product_details (text) | customers : customer_id (number) , payment_method (text) , customer_name (text) , date_became_customer (time) , other_customer_details (text) | customer_addresses : customer_id (number) , address_id (number) , date_address_from (time) , address_type (text) , date_address_to (time) | customer_contact_channels : customer_id (number) , channel_code (text) , active_from_date (time) , active_to_date (time) , contact_number (text) | customer_orders : order_id (number) , customer_id (number) , order_status (text) , order_date (time) , order_details (text) | order_items : order_id (number) , product_id (number) , order_quantity (text) | customers : date_became_customer (time) , customer_id (number) | 0.9375 |
customers_and_addresses | What are the dates when customers with ids between 10 and 20 became customers? | addresses : address_id (number) , address_content (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) , other_address_details (text) | products : product_id (number) , product_details (text) | customers : customer_id (number) , payment_method (text) , customer_name (text) , date_became_customer (time) , other_customer_details (text) | customer_addresses : customer_id (number) , address_id (number) , date_address_from (time) , address_type (text) , date_address_to (time) | customer_contact_channels : customer_id (number) , channel_code (text) , active_from_date (time) , active_to_date (time) , contact_number (text) | customer_orders : order_id (number) , customer_id (number) , order_status (text) , order_date (time) , order_details (text) | order_items : order_id (number) , product_id (number) , order_quantity (text) | customers : date_became_customer (time) , customer_id (number) | 0.9375 |
customers_and_addresses | Which payment method is used by most customers? | addresses : address_id (number) , address_content (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) , other_address_details (text) | products : product_id (number) , product_details (text) | customers : customer_id (number) , payment_method (text) , customer_name (text) , date_became_customer (time) , other_customer_details (text) | customer_addresses : customer_id (number) , address_id (number) , date_address_from (time) , address_type (text) , date_address_to (time) | customer_contact_channels : customer_id (number) , channel_code (text) , active_from_date (time) , active_to_date (time) , contact_number (text) | customer_orders : order_id (number) , customer_id (number) , order_status (text) , order_date (time) , order_details (text) | order_items : order_id (number) , product_id (number) , order_quantity (text) | customers : payment_method (text) , customer_id (number) | 0.9375 |
customers_and_addresses | Find the payment method that is used most frequently. | addresses : address_id (number) , address_content (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) , other_address_details (text) | products : product_id (number) , product_details (text) | customers : customer_id (number) , payment_method (text) , customer_name (text) , date_became_customer (time) , other_customer_details (text) | customer_addresses : customer_id (number) , address_id (number) , date_address_from (time) , address_type (text) , date_address_to (time) | customer_contact_channels : customer_id (number) , channel_code (text) , active_from_date (time) , active_to_date (time) , contact_number (text) | customer_orders : order_id (number) , customer_id (number) , order_status (text) , order_date (time) , order_details (text) | order_items : order_id (number) , product_id (number) , order_quantity (text) | customers : payment_method (text) , customer_id (number) | 0.9375 |
customers_and_addresses | What are the names of customers using the most popular payment method? | addresses : address_id (number) , address_content (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) , other_address_details (text) | products : product_id (number) , product_details (text) | customers : customer_id (number) , payment_method (text) , customer_name (text) , date_became_customer (time) , other_customer_details (text) | customer_addresses : customer_id (number) , address_id (number) , date_address_from (time) , address_type (text) , date_address_to (time) | customer_contact_channels : customer_id (number) , channel_code (text) , active_from_date (time) , active_to_date (time) , contact_number (text) | customer_orders : order_id (number) , customer_id (number) , order_status (text) , order_date (time) , order_details (text) | order_items : order_id (number) , product_id (number) , order_quantity (text) | customers : customer_name (text) , payment_method (text) , customer_id (number) | 0.90625 |
customers_and_addresses | Find the name of the customers who use the most frequently used payment method. | addresses : address_id (number) , address_content (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) , other_address_details (text) | products : product_id (number) , product_details (text) | customers : customer_id (number) , payment_method (text) , customer_name (text) , date_became_customer (time) , other_customer_details (text) | customer_addresses : customer_id (number) , address_id (number) , date_address_from (time) , address_type (text) , date_address_to (time) | customer_contact_channels : customer_id (number) , channel_code (text) , active_from_date (time) , active_to_date (time) , contact_number (text) | customer_orders : order_id (number) , customer_id (number) , order_status (text) , order_date (time) , order_details (text) | order_items : order_id (number) , product_id (number) , order_quantity (text) | customers : customer_name (text) , payment_method (text) , customer_id (number) | 0.90625 |
customers_and_addresses | What are all the payment methods? | addresses : address_id (number) , address_content (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) , other_address_details (text) | products : product_id (number) , product_details (text) | customers : customer_id (number) , payment_method (text) , customer_name (text) , date_became_customer (time) , other_customer_details (text) | customer_addresses : customer_id (number) , address_id (number) , date_address_from (time) , address_type (text) , date_address_to (time) | customer_contact_channels : customer_id (number) , channel_code (text) , active_from_date (time) , active_to_date (time) , contact_number (text) | customer_orders : order_id (number) , customer_id (number) , order_status (text) , order_date (time) , order_details (text) | order_items : order_id (number) , product_id (number) , order_quantity (text) | customers : payment_method (text) | 0.96875 |
customers_and_addresses | Return all the distinct payment methods used by customers. | addresses : address_id (number) , address_content (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) , other_address_details (text) | products : product_id (number) , product_details (text) | customers : customer_id (number) , payment_method (text) , customer_name (text) , date_became_customer (time) , other_customer_details (text) | customer_addresses : customer_id (number) , address_id (number) , date_address_from (time) , address_type (text) , date_address_to (time) | customer_contact_channels : customer_id (number) , channel_code (text) , active_from_date (time) , active_to_date (time) , contact_number (text) | customer_orders : order_id (number) , customer_id (number) , order_status (text) , order_date (time) , order_details (text) | order_items : order_id (number) , product_id (number) , order_quantity (text) | customers : payment_method (text) | 0.96875 |
customers_and_addresses | What are the details of all products? | addresses : address_id (number) , address_content (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) , other_address_details (text) | products : product_id (number) , product_details (text) | customers : customer_id (number) , payment_method (text) , customer_name (text) , date_became_customer (time) , other_customer_details (text) | customer_addresses : customer_id (number) , address_id (number) , date_address_from (time) , address_type (text) , date_address_to (time) | customer_contact_channels : customer_id (number) , channel_code (text) , active_from_date (time) , active_to_date (time) , contact_number (text) | customer_orders : order_id (number) , customer_id (number) , order_status (text) , order_date (time) , order_details (text) | order_items : order_id (number) , product_id (number) , order_quantity (text) | products : product_details (text) | 0.96875 |
customers_and_addresses | Return the the details of all products. | addresses : address_id (number) , address_content (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) , other_address_details (text) | products : product_id (number) , product_details (text) | customers : customer_id (number) , payment_method (text) , customer_name (text) , date_became_customer (time) , other_customer_details (text) | customer_addresses : customer_id (number) , address_id (number) , date_address_from (time) , address_type (text) , date_address_to (time) | customer_contact_channels : customer_id (number) , channel_code (text) , active_from_date (time) , active_to_date (time) , contact_number (text) | customer_orders : order_id (number) , customer_id (number) , order_status (text) , order_date (time) , order_details (text) | order_items : order_id (number) , product_id (number) , order_quantity (text) | products : product_details (text) | 0.96875 |
customers_and_addresses | Find the name of all customers whose name contains "Alex". | addresses : address_id (number) , address_content (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) , other_address_details (text) | products : product_id (number) , product_details (text) | customers : customer_id (number) , payment_method (text) , customer_name (text) , date_became_customer (time) , other_customer_details (text) | customer_addresses : customer_id (number) , address_id (number) , date_address_from (time) , address_type (text) , date_address_to (time) | customer_contact_channels : customer_id (number) , channel_code (text) , active_from_date (time) , active_to_date (time) , contact_number (text) | customer_orders : order_id (number) , customer_id (number) , order_status (text) , order_date (time) , order_details (text) | order_items : order_id (number) , product_id (number) , order_quantity (text) | customers : customer_name (text) | 0.96875 |
customers_and_addresses | Which customer's name contains "Alex"? Find the full name. | addresses : address_id (number) , address_content (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) , other_address_details (text) | products : product_id (number) , product_details (text) | customers : customer_id (number) , payment_method (text) , customer_name (text) , date_became_customer (time) , other_customer_details (text) | customer_addresses : customer_id (number) , address_id (number) , date_address_from (time) , address_type (text) , date_address_to (time) | customer_contact_channels : customer_id (number) , channel_code (text) , active_from_date (time) , active_to_date (time) , contact_number (text) | customer_orders : order_id (number) , customer_id (number) , order_status (text) , order_date (time) , order_details (text) | order_items : order_id (number) , product_id (number) , order_quantity (text) | customers : customer_name (text) | 0.96875 |
customers_and_addresses | Find the detail of products whose detail contains the word "Latte" or the word "Americano" | addresses : address_id (number) , address_content (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) , other_address_details (text) | products : product_id (number) , product_details (text) | customers : customer_id (number) , payment_method (text) , customer_name (text) , date_became_customer (time) , other_customer_details (text) | customer_addresses : customer_id (number) , address_id (number) , date_address_from (time) , address_type (text) , date_address_to (time) | customer_contact_channels : customer_id (number) , channel_code (text) , active_from_date (time) , active_to_date (time) , contact_number (text) | customer_orders : order_id (number) , customer_id (number) , order_status (text) , order_date (time) , order_details (text) | order_items : order_id (number) , product_id (number) , order_quantity (text) | products : product_details (text) | 0.96875 |
customers_and_addresses | Which product's detail contains the word "Latte" or "Americano"? Return the full detail. | addresses : address_id (number) , address_content (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) , other_address_details (text) | products : product_id (number) , product_details (text) | customers : customer_id (number) , payment_method (text) , customer_name (text) , date_became_customer (time) , other_customer_details (text) | customer_addresses : customer_id (number) , address_id (number) , date_address_from (time) , address_type (text) , date_address_to (time) | customer_contact_channels : customer_id (number) , channel_code (text) , active_from_date (time) , active_to_date (time) , contact_number (text) | customer_orders : order_id (number) , customer_id (number) , order_status (text) , order_date (time) , order_details (text) | order_items : order_id (number) , product_id (number) , order_quantity (text) | products : product_details (text) | 0.96875 |
customers_and_addresses | What is the address content of the customer named "Maudie Kertzmann"? | addresses : address_id (number) , address_content (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) , other_address_details (text) | products : product_id (number) , product_details (text) | customers : customer_id (number) , payment_method (text) , customer_name (text) , date_became_customer (time) , other_customer_details (text) | customer_addresses : customer_id (number) , address_id (number) , date_address_from (time) , address_type (text) , date_address_to (time) | customer_contact_channels : customer_id (number) , channel_code (text) , active_from_date (time) , active_to_date (time) , contact_number (text) | customer_orders : order_id (number) , customer_id (number) , order_status (text) , order_date (time) , order_details (text) | order_items : order_id (number) , product_id (number) , order_quantity (text) | addresses : address_content (text) , address_id (number) | customers : customer_id (number) , customer_name (text) | customer_addresses : customer_id (number) , address_id (number) | 0.8125 |
customers_and_addresses | Return the address content for the customer whose name is "Maudie Kertzmann". | addresses : address_id (number) , address_content (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) , other_address_details (text) | products : product_id (number) , product_details (text) | customers : customer_id (number) , payment_method (text) , customer_name (text) , date_became_customer (time) , other_customer_details (text) | customer_addresses : customer_id (number) , address_id (number) , date_address_from (time) , address_type (text) , date_address_to (time) | customer_contact_channels : customer_id (number) , channel_code (text) , active_from_date (time) , active_to_date (time) , contact_number (text) | customer_orders : order_id (number) , customer_id (number) , order_status (text) , order_date (time) , order_details (text) | order_items : order_id (number) , product_id (number) , order_quantity (text) | addresses : address_content (text) , address_id (number) | customers : customer_id (number) , customer_name (text) | customer_addresses : customer_id (number) , address_id (number) | 0.8125 |
customers_and_addresses | How many customers are living in city "Lake Geovannyton"? | addresses : address_id (number) , address_content (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) , other_address_details (text) | products : product_id (number) , product_details (text) | customers : customer_id (number) , payment_method (text) , customer_name (text) , date_became_customer (time) , other_customer_details (text) | customer_addresses : customer_id (number) , address_id (number) , date_address_from (time) , address_type (text) , date_address_to (time) | customer_contact_channels : customer_id (number) , channel_code (text) , active_from_date (time) , active_to_date (time) , contact_number (text) | customer_orders : order_id (number) , customer_id (number) , order_status (text) , order_date (time) , order_details (text) | order_items : order_id (number) , product_id (number) , order_quantity (text) | customers : customer_id (number) | customer_addresses : customer_id (number) , address_id (number) | addresses : address_id (number) , city (text) | 0.84375 |
customers_and_addresses | Find the number of customers who live in the city called Lake Geovannyton. | addresses : address_id (number) , address_content (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) , other_address_details (text) | products : product_id (number) , product_details (text) | customers : customer_id (number) , payment_method (text) , customer_name (text) , date_became_customer (time) , other_customer_details (text) | customer_addresses : customer_id (number) , address_id (number) , date_address_from (time) , address_type (text) , date_address_to (time) | customer_contact_channels : customer_id (number) , channel_code (text) , active_from_date (time) , active_to_date (time) , contact_number (text) | customer_orders : order_id (number) , customer_id (number) , order_status (text) , order_date (time) , order_details (text) | order_items : order_id (number) , product_id (number) , order_quantity (text) | customers : customer_id (number) | customer_addresses : customer_id (number) , address_id (number) | addresses : address_id (number) , city (text) | 0.84375 |
customers_and_addresses | Find the name of customers who are living in Colorado? | addresses : address_id (number) , address_content (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) , other_address_details (text) | products : product_id (number) , product_details (text) | customers : customer_id (number) , payment_method (text) , customer_name (text) , date_became_customer (time) , other_customer_details (text) | customer_addresses : customer_id (number) , address_id (number) , date_address_from (time) , address_type (text) , date_address_to (time) | customer_contact_channels : customer_id (number) , channel_code (text) , active_from_date (time) , active_to_date (time) , contact_number (text) | customer_orders : order_id (number) , customer_id (number) , order_status (text) , order_date (time) , order_details (text) | order_items : order_id (number) , product_id (number) , order_quantity (text) | customers : customer_name (text) , customer_id (number) | customer_addresses : customer_id (number) , address_id (number) | addresses : address_id (number) , state_province_county (text) | 0.8125 |
customers_and_addresses | What are the names of customers who live in Colorado state? | addresses : address_id (number) , address_content (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) , other_address_details (text) | products : product_id (number) , product_details (text) | customers : customer_id (number) , payment_method (text) , customer_name (text) , date_became_customer (time) , other_customer_details (text) | customer_addresses : customer_id (number) , address_id (number) , date_address_from (time) , address_type (text) , date_address_to (time) | customer_contact_channels : customer_id (number) , channel_code (text) , active_from_date (time) , active_to_date (time) , contact_number (text) | customer_orders : order_id (number) , customer_id (number) , order_status (text) , order_date (time) , order_details (text) | order_items : order_id (number) , product_id (number) , order_quantity (text) | customers : customer_name (text) , customer_id (number) | customer_addresses : customer_id (number) , address_id (number) | addresses : address_id (number) , state_province_county (text) | 0.8125 |
customers_and_addresses | Find the list of cities that no customer is living in. | addresses : address_id (number) , address_content (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) , other_address_details (text) | products : product_id (number) , product_details (text) | customers : customer_id (number) , payment_method (text) , customer_name (text) , date_became_customer (time) , other_customer_details (text) | customer_addresses : customer_id (number) , address_id (number) , date_address_from (time) , address_type (text) , date_address_to (time) | customer_contact_channels : customer_id (number) , channel_code (text) , active_from_date (time) , active_to_date (time) , contact_number (text) | customer_orders : order_id (number) , customer_id (number) , order_status (text) , order_date (time) , order_details (text) | order_items : order_id (number) , product_id (number) , order_quantity (text) | addresses : city (text) , address_id (number) | customers : customer_id (number) | customer_addresses : customer_id (number) , address_id (number) | 0.84375 |
customers_and_addresses | What are the cities no customers live in? | addresses : address_id (number) , address_content (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) , other_address_details (text) | products : product_id (number) , product_details (text) | customers : customer_id (number) , payment_method (text) , customer_name (text) , date_became_customer (time) , other_customer_details (text) | customer_addresses : customer_id (number) , address_id (number) , date_address_from (time) , address_type (text) , date_address_to (time) | customer_contact_channels : customer_id (number) , channel_code (text) , active_from_date (time) , active_to_date (time) , contact_number (text) | customer_orders : order_id (number) , customer_id (number) , order_status (text) , order_date (time) , order_details (text) | order_items : order_id (number) , product_id (number) , order_quantity (text) | addresses : city (text) , address_id (number) | customers : customer_id (number) | customer_addresses : customer_id (number) , address_id (number) | 0.84375 |
customers_and_addresses | Which city has the most customers living in? | addresses : address_id (number) , address_content (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) , other_address_details (text) | products : product_id (number) , product_details (text) | customers : customer_id (number) , payment_method (text) , customer_name (text) , date_became_customer (time) , other_customer_details (text) | customer_addresses : customer_id (number) , address_id (number) , date_address_from (time) , address_type (text) , date_address_to (time) | customer_contact_channels : customer_id (number) , channel_code (text) , active_from_date (time) , active_to_date (time) , contact_number (text) | customer_orders : order_id (number) , customer_id (number) , order_status (text) , order_date (time) , order_details (text) | order_items : order_id (number) , product_id (number) , order_quantity (text) | addresses : city (text) , address_id (number) | customers : customer_id (number) | customer_addresses : customer_id (number) , address_id (number) | 0.84375 |
customers_and_addresses | Find the city where the most customers live. | addresses : address_id (number) , address_content (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) , other_address_details (text) | products : product_id (number) , product_details (text) | customers : customer_id (number) , payment_method (text) , customer_name (text) , date_became_customer (time) , other_customer_details (text) | customer_addresses : customer_id (number) , address_id (number) , date_address_from (time) , address_type (text) , date_address_to (time) | customer_contact_channels : customer_id (number) , channel_code (text) , active_from_date (time) , active_to_date (time) , contact_number (text) | customer_orders : order_id (number) , customer_id (number) , order_status (text) , order_date (time) , order_details (text) | order_items : order_id (number) , product_id (number) , order_quantity (text) | addresses : city (text) , address_id (number) | customers : customer_id (number) | customer_addresses : customer_id (number) , address_id (number) | 0.84375 |
customers_and_addresses | Retrieve the list of all cities. | addresses : address_id (number) , address_content (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) , other_address_details (text) | products : product_id (number) , product_details (text) | customers : customer_id (number) , payment_method (text) , customer_name (text) , date_became_customer (time) , other_customer_details (text) | customer_addresses : customer_id (number) , address_id (number) , date_address_from (time) , address_type (text) , date_address_to (time) | customer_contact_channels : customer_id (number) , channel_code (text) , active_from_date (time) , active_to_date (time) , contact_number (text) | customer_orders : order_id (number) , customer_id (number) , order_status (text) , order_date (time) , order_details (text) | order_items : order_id (number) , product_id (number) , order_quantity (text) | addresses : city (text) | 0.96875 |
customers_and_addresses | List all the distinct cities | addresses : address_id (number) , address_content (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) , other_address_details (text) | products : product_id (number) , product_details (text) | customers : customer_id (number) , payment_method (text) , customer_name (text) , date_became_customer (time) , other_customer_details (text) | customer_addresses : customer_id (number) , address_id (number) , date_address_from (time) , address_type (text) , date_address_to (time) | customer_contact_channels : customer_id (number) , channel_code (text) , active_from_date (time) , active_to_date (time) , contact_number (text) | customer_orders : order_id (number) , customer_id (number) , order_status (text) , order_date (time) , order_details (text) | order_items : order_id (number) , product_id (number) , order_quantity (text) | addresses : city (text) | 0.96875 |
customers_and_addresses | Find the city with post code 255. | addresses : address_id (number) , address_content (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) , other_address_details (text) | products : product_id (number) , product_details (text) | customers : customer_id (number) , payment_method (text) , customer_name (text) , date_became_customer (time) , other_customer_details (text) | customer_addresses : customer_id (number) , address_id (number) , date_address_from (time) , address_type (text) , date_address_to (time) | customer_contact_channels : customer_id (number) , channel_code (text) , active_from_date (time) , active_to_date (time) , contact_number (text) | customer_orders : order_id (number) , customer_id (number) , order_status (text) , order_date (time) , order_details (text) | order_items : order_id (number) , product_id (number) , order_quantity (text) | addresses : city (text) , zip_postcode (text) | 0.9375 |
customers_and_addresses | Which city is post code 255 located in? | addresses : address_id (number) , address_content (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) , other_address_details (text) | products : product_id (number) , product_details (text) | customers : customer_id (number) , payment_method (text) , customer_name (text) , date_became_customer (time) , other_customer_details (text) | customer_addresses : customer_id (number) , address_id (number) , date_address_from (time) , address_type (text) , date_address_to (time) | customer_contact_channels : customer_id (number) , channel_code (text) , active_from_date (time) , active_to_date (time) , contact_number (text) | customer_orders : order_id (number) , customer_id (number) , order_status (text) , order_date (time) , order_details (text) | order_items : order_id (number) , product_id (number) , order_quantity (text) | addresses : city (text) , zip_postcode (text) | 0.9375 |
customers_and_addresses | Find the state and country of all cities with post code starting with 4. | addresses : address_id (number) , address_content (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) , other_address_details (text) | products : product_id (number) , product_details (text) | customers : customer_id (number) , payment_method (text) , customer_name (text) , date_became_customer (time) , other_customer_details (text) | customer_addresses : customer_id (number) , address_id (number) , date_address_from (time) , address_type (text) , date_address_to (time) | customer_contact_channels : customer_id (number) , channel_code (text) , active_from_date (time) , active_to_date (time) , contact_number (text) | customer_orders : order_id (number) , customer_id (number) , order_status (text) , order_date (time) , order_details (text) | order_items : order_id (number) , product_id (number) , order_quantity (text) | addresses : state_province_county (text) , country (text) , zip_postcode (text) | 0.90625 |
customers_and_addresses | What are the state and country of all the cities that have post codes starting with 4.\ | addresses : address_id (number) , address_content (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) , other_address_details (text) | products : product_id (number) , product_details (text) | customers : customer_id (number) , payment_method (text) , customer_name (text) , date_became_customer (time) , other_customer_details (text) | customer_addresses : customer_id (number) , address_id (number) , date_address_from (time) , address_type (text) , date_address_to (time) | customer_contact_channels : customer_id (number) , channel_code (text) , active_from_date (time) , active_to_date (time) , contact_number (text) | customer_orders : order_id (number) , customer_id (number) , order_status (text) , order_date (time) , order_details (text) | order_items : order_id (number) , product_id (number) , order_quantity (text) | addresses : state_province_county (text) , country (text) , zip_postcode (text) | 0.90625 |
customers_and_addresses | List the countries having more than 4 addresses listed. | addresses : address_id (number) , address_content (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) , other_address_details (text) | products : product_id (number) , product_details (text) | customers : customer_id (number) , payment_method (text) , customer_name (text) , date_became_customer (time) , other_customer_details (text) | customer_addresses : customer_id (number) , address_id (number) , date_address_from (time) , address_type (text) , date_address_to (time) | customer_contact_channels : customer_id (number) , channel_code (text) , active_from_date (time) , active_to_date (time) , contact_number (text) | customer_orders : order_id (number) , customer_id (number) , order_status (text) , order_date (time) , order_details (text) | order_items : order_id (number) , product_id (number) , order_quantity (text) | addresses : country (text) , address_id (number) | 0.9375 |
customers_and_addresses | For which countries are there more than four distinct addresses listed? | addresses : address_id (number) , address_content (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) , other_address_details (text) | products : product_id (number) , product_details (text) | customers : customer_id (number) , payment_method (text) , customer_name (text) , date_became_customer (time) , other_customer_details (text) | customer_addresses : customer_id (number) , address_id (number) , date_address_from (time) , address_type (text) , date_address_to (time) | customer_contact_channels : customer_id (number) , channel_code (text) , active_from_date (time) , active_to_date (time) , contact_number (text) | customer_orders : order_id (number) , customer_id (number) , order_status (text) , order_date (time) , order_details (text) | order_items : order_id (number) , product_id (number) , order_quantity (text) | addresses : country (text) , address_id (number) | 0.9375 |
customers_and_addresses | List all the contact channel codes that were used less than 5 times. | addresses : address_id (number) , address_content (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) , other_address_details (text) | products : product_id (number) , product_details (text) | customers : customer_id (number) , payment_method (text) , customer_name (text) , date_became_customer (time) , other_customer_details (text) | customer_addresses : customer_id (number) , address_id (number) , date_address_from (time) , address_type (text) , date_address_to (time) | customer_contact_channels : customer_id (number) , channel_code (text) , active_from_date (time) , active_to_date (time) , contact_number (text) | customer_orders : order_id (number) , customer_id (number) , order_status (text) , order_date (time) , order_details (text) | order_items : order_id (number) , product_id (number) , order_quantity (text) | customer_contact_channels : channel_code (text) , customer_id (number) | 0.9375 |
customers_and_addresses | Which contact channel codes were used less than 5 times? | addresses : address_id (number) , address_content (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) , other_address_details (text) | products : product_id (number) , product_details (text) | customers : customer_id (number) , payment_method (text) , customer_name (text) , date_became_customer (time) , other_customer_details (text) | customer_addresses : customer_id (number) , address_id (number) , date_address_from (time) , address_type (text) , date_address_to (time) | customer_contact_channels : customer_id (number) , channel_code (text) , active_from_date (time) , active_to_date (time) , contact_number (text) | customer_orders : order_id (number) , customer_id (number) , order_status (text) , order_date (time) , order_details (text) | order_items : order_id (number) , product_id (number) , order_quantity (text) | customer_contact_channels : channel_code (text) , customer_id (number) | 0.9375 |
customers_and_addresses | Which contact channel has been used by the customer with name "Tillman Ernser"? | addresses : address_id (number) , address_content (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) , other_address_details (text) | products : product_id (number) , product_details (text) | customers : customer_id (number) , payment_method (text) , customer_name (text) , date_became_customer (time) , other_customer_details (text) | customer_addresses : customer_id (number) , address_id (number) , date_address_from (time) , address_type (text) , date_address_to (time) | customer_contact_channels : customer_id (number) , channel_code (text) , active_from_date (time) , active_to_date (time) , contact_number (text) | customer_orders : order_id (number) , customer_id (number) , order_status (text) , order_date (time) , order_details (text) | order_items : order_id (number) , product_id (number) , order_quantity (text) | customer_contact_channels : channel_code (text) , customer_id (number) | customers : customer_id (number) , customer_name (text) | 0.875 |
customers_and_addresses | Find the contact channel code that was used by the customer named "Tillman Ernser". | addresses : address_id (number) , address_content (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) , other_address_details (text) | products : product_id (number) , product_details (text) | customers : customer_id (number) , payment_method (text) , customer_name (text) , date_became_customer (time) , other_customer_details (text) | customer_addresses : customer_id (number) , address_id (number) , date_address_from (time) , address_type (text) , date_address_to (time) | customer_contact_channels : customer_id (number) , channel_code (text) , active_from_date (time) , active_to_date (time) , contact_number (text) | customer_orders : order_id (number) , customer_id (number) , order_status (text) , order_date (time) , order_details (text) | order_items : order_id (number) , product_id (number) , order_quantity (text) | customer_contact_channels : channel_code (text) , customer_id (number) | customers : customer_id (number) , customer_name (text) | 0.875 |
customers_and_addresses | What is the "active to date" of the latest contact channel used by "Tillman Ernser"? | addresses : address_id (number) , address_content (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) , other_address_details (text) | products : product_id (number) , product_details (text) | customers : customer_id (number) , payment_method (text) , customer_name (text) , date_became_customer (time) , other_customer_details (text) | customer_addresses : customer_id (number) , address_id (number) , date_address_from (time) , address_type (text) , date_address_to (time) | customer_contact_channels : customer_id (number) , channel_code (text) , active_from_date (time) , active_to_date (time) , contact_number (text) | customer_orders : order_id (number) , customer_id (number) , order_status (text) , order_date (time) , order_details (text) | order_items : order_id (number) , product_id (number) , order_quantity (text) | customer_contact_channels : active_to_date (time) , customer_id (number) | customers : customer_id (number) , customer_name (text) | 0.875 |
customers_and_addresses | Return the the "active to date" of the latest contact channel used by the customer named "Tillman Ernser". | addresses : address_id (number) , address_content (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) , other_address_details (text) | products : product_id (number) , product_details (text) | customers : customer_id (number) , payment_method (text) , customer_name (text) , date_became_customer (time) , other_customer_details (text) | customer_addresses : customer_id (number) , address_id (number) , date_address_from (time) , address_type (text) , date_address_to (time) | customer_contact_channels : customer_id (number) , channel_code (text) , active_from_date (time) , active_to_date (time) , contact_number (text) | customer_orders : order_id (number) , customer_id (number) , order_status (text) , order_date (time) , order_details (text) | order_items : order_id (number) , product_id (number) , order_quantity (text) | customer_contact_channels : active_to_date (time) , customer_id (number) | customers : customer_id (number) , customer_name (text) | 0.875 |
customers_and_addresses | What is the average time span of contact channels in the database? | addresses : address_id (number) , address_content (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) , other_address_details (text) | products : product_id (number) , product_details (text) | customers : customer_id (number) , payment_method (text) , customer_name (text) , date_became_customer (time) , other_customer_details (text) | customer_addresses : customer_id (number) , address_id (number) , date_address_from (time) , address_type (text) , date_address_to (time) | customer_contact_channels : customer_id (number) , channel_code (text) , active_from_date (time) , active_to_date (time) , contact_number (text) | customer_orders : order_id (number) , customer_id (number) , order_status (text) , order_date (time) , order_details (text) | order_items : order_id (number) , product_id (number) , order_quantity (text) | customer_contact_channels : active_to_date (time) , active_from_date (time) | 0.9375 |
customers_and_addresses | Compute the average active time span of contact channels. | addresses : address_id (number) , address_content (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) , other_address_details (text) | products : product_id (number) , product_details (text) | customers : customer_id (number) , payment_method (text) , customer_name (text) , date_became_customer (time) , other_customer_details (text) | customer_addresses : customer_id (number) , address_id (number) , date_address_from (time) , address_type (text) , date_address_to (time) | customer_contact_channels : customer_id (number) , channel_code (text) , active_from_date (time) , active_to_date (time) , contact_number (text) | customer_orders : order_id (number) , customer_id (number) , order_status (text) , order_date (time) , order_details (text) | order_items : order_id (number) , product_id (number) , order_quantity (text) | customer_contact_channels : active_to_date (time) , active_from_date (time) | 0.9375 |
customers_and_addresses | What is the channel code and contact number of the customer contact channel that was active for the longest time? | addresses : address_id (number) , address_content (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) , other_address_details (text) | products : product_id (number) , product_details (text) | customers : customer_id (number) , payment_method (text) , customer_name (text) , date_became_customer (time) , other_customer_details (text) | customer_addresses : customer_id (number) , address_id (number) , date_address_from (time) , address_type (text) , date_address_to (time) | customer_contact_channels : customer_id (number) , channel_code (text) , active_from_date (time) , active_to_date (time) , contact_number (text) | customer_orders : order_id (number) , customer_id (number) , order_status (text) , order_date (time) , order_details (text) | order_items : order_id (number) , product_id (number) , order_quantity (text) | customer_contact_channels : channel_code (text) , contact_number (text) , active_to_date (time) , active_from_date (time) | 0.875 |
customers_and_addresses | Return the channel code and contact number of the customer contact channel whose active duration was the longest. | addresses : address_id (number) , address_content (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) , other_address_details (text) | products : product_id (number) , product_details (text) | customers : customer_id (number) , payment_method (text) , customer_name (text) , date_became_customer (time) , other_customer_details (text) | customer_addresses : customer_id (number) , address_id (number) , date_address_from (time) , address_type (text) , date_address_to (time) | customer_contact_channels : customer_id (number) , channel_code (text) , active_from_date (time) , active_to_date (time) , contact_number (text) | customer_orders : order_id (number) , customer_id (number) , order_status (text) , order_date (time) , order_details (text) | order_items : order_id (number) , product_id (number) , order_quantity (text) | customer_contact_channels : channel_code (text) , contact_number (text) , active_to_date (time) , active_from_date (time) | 0.875 |
customers_and_addresses | Find the name and active date of the customer that use email as the contact channel. | addresses : address_id (number) , address_content (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) , other_address_details (text) | products : product_id (number) , product_details (text) | customers : customer_id (number) , payment_method (text) , customer_name (text) , date_became_customer (time) , other_customer_details (text) | customer_addresses : customer_id (number) , address_id (number) , date_address_from (time) , address_type (text) , date_address_to (time) | customer_contact_channels : customer_id (number) , channel_code (text) , active_from_date (time) , active_to_date (time) , contact_number (text) | customer_orders : order_id (number) , customer_id (number) , order_status (text) , order_date (time) , order_details (text) | order_items : order_id (number) , product_id (number) , order_quantity (text) | customers : customer_name (text) , customer_id (number) | customer_contact_channels : active_from_date (time) , customer_id (number) , channel_code (text) | 0.84375 |
customers_and_addresses | What are the name and active date of the customers whose contact channel code is email? | addresses : address_id (number) , address_content (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) , other_address_details (text) | products : product_id (number) , product_details (text) | customers : customer_id (number) , payment_method (text) , customer_name (text) , date_became_customer (time) , other_customer_details (text) | customer_addresses : customer_id (number) , address_id (number) , date_address_from (time) , address_type (text) , date_address_to (time) | customer_contact_channels : customer_id (number) , channel_code (text) , active_from_date (time) , active_to_date (time) , contact_number (text) | customer_orders : order_id (number) , customer_id (number) , order_status (text) , order_date (time) , order_details (text) | order_items : order_id (number) , product_id (number) , order_quantity (text) | customers : customer_name (text) , customer_id (number) | customer_contact_channels : active_from_date (time) , customer_id (number) , channel_code (text) | 0.84375 |
customers_and_addresses | What is the name of the customer that made the order with the largest quantity? | addresses : address_id (number) , address_content (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) , other_address_details (text) | products : product_id (number) , product_details (text) | customers : customer_id (number) , payment_method (text) , customer_name (text) , date_became_customer (time) , other_customer_details (text) | customer_addresses : customer_id (number) , address_id (number) , date_address_from (time) , address_type (text) , date_address_to (time) | customer_contact_channels : customer_id (number) , channel_code (text) , active_from_date (time) , active_to_date (time) , contact_number (text) | customer_orders : order_id (number) , customer_id (number) , order_status (text) , order_date (time) , order_details (text) | order_items : order_id (number) , product_id (number) , order_quantity (text) | customers : customer_name (text) , customer_id (number) | customer_orders : customer_id (number) , order_id (number) | order_items : order_id (number) , order_quantity (text) | 0.8125 |
customers_and_addresses | Find the name of the customer who made the order of the largest amount of goods. | addresses : address_id (number) , address_content (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) , other_address_details (text) | products : product_id (number) , product_details (text) | customers : customer_id (number) , payment_method (text) , customer_name (text) , date_became_customer (time) , other_customer_details (text) | customer_addresses : customer_id (number) , address_id (number) , date_address_from (time) , address_type (text) , date_address_to (time) | customer_contact_channels : customer_id (number) , channel_code (text) , active_from_date (time) , active_to_date (time) , contact_number (text) | customer_orders : order_id (number) , customer_id (number) , order_status (text) , order_date (time) , order_details (text) | order_items : order_id (number) , product_id (number) , order_quantity (text) | customers : customer_name (text) , customer_id (number) | customer_orders : customer_id (number) , order_id (number) | order_items : order_id (number) , order_quantity (text) | 0.8125 |
customers_and_addresses | What is the name of the customer that has purchased the most items? | addresses : address_id (number) , address_content (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) , other_address_details (text) | products : product_id (number) , product_details (text) | customers : customer_id (number) , payment_method (text) , customer_name (text) , date_became_customer (time) , other_customer_details (text) | customer_addresses : customer_id (number) , address_id (number) , date_address_from (time) , address_type (text) , date_address_to (time) | customer_contact_channels : customer_id (number) , channel_code (text) , active_from_date (time) , active_to_date (time) , contact_number (text) | customer_orders : order_id (number) , customer_id (number) , order_status (text) , order_date (time) , order_details (text) | order_items : order_id (number) , product_id (number) , order_quantity (text) | customers : customer_name (text) , customer_id (number) | customer_orders : customer_id (number) , order_id (number) | order_items : order_id (number) , order_quantity (text) | 0.8125 |
customers_and_addresses | Give me the name of the customer who ordered the most items in total. | addresses : address_id (number) , address_content (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) , other_address_details (text) | products : product_id (number) , product_details (text) | customers : customer_id (number) , payment_method (text) , customer_name (text) , date_became_customer (time) , other_customer_details (text) | customer_addresses : customer_id (number) , address_id (number) , date_address_from (time) , address_type (text) , date_address_to (time) | customer_contact_channels : customer_id (number) , channel_code (text) , active_from_date (time) , active_to_date (time) , contact_number (text) | customer_orders : order_id (number) , customer_id (number) , order_status (text) , order_date (time) , order_details (text) | order_items : order_id (number) , product_id (number) , order_quantity (text) | customers : customer_name (text) , customer_id (number) | customer_orders : customer_id (number) , order_id (number) | order_items : order_id (number) , order_quantity (text) | 0.8125 |
customers_and_addresses | What is the payment method of the customer that has purchased the least quantity of items? | addresses : address_id (number) , address_content (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) , other_address_details (text) | products : product_id (number) , product_details (text) | customers : customer_id (number) , payment_method (text) , customer_name (text) , date_became_customer (time) , other_customer_details (text) | customer_addresses : customer_id (number) , address_id (number) , date_address_from (time) , address_type (text) , date_address_to (time) | customer_contact_channels : customer_id (number) , channel_code (text) , active_from_date (time) , active_to_date (time) , contact_number (text) | customer_orders : order_id (number) , customer_id (number) , order_status (text) , order_date (time) , order_details (text) | order_items : order_id (number) , product_id (number) , order_quantity (text) | customers : payment_method (text) , customer_id (number) , customer_name (text) | customer_orders : customer_id (number) , order_id (number) | order_items : order_id (number) , order_quantity (text) | 0.78125 |
customers_and_addresses | Tell me the payment method used by the customer who ordered the least amount of goods in total. | addresses : address_id (number) , address_content (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) , other_address_details (text) | products : product_id (number) , product_details (text) | customers : customer_id (number) , payment_method (text) , customer_name (text) , date_became_customer (time) , other_customer_details (text) | customer_addresses : customer_id (number) , address_id (number) , date_address_from (time) , address_type (text) , date_address_to (time) | customer_contact_channels : customer_id (number) , channel_code (text) , active_from_date (time) , active_to_date (time) , contact_number (text) | customer_orders : order_id (number) , customer_id (number) , order_status (text) , order_date (time) , order_details (text) | order_items : order_id (number) , product_id (number) , order_quantity (text) | customers : payment_method (text) , customer_id (number) , customer_name (text) | customer_orders : customer_id (number) , order_id (number) | order_items : order_id (number) , order_quantity (text) | 0.78125 |
customers_and_addresses | How many types of products have Rodrick Heaney bought in total? | addresses : address_id (number) , address_content (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) , other_address_details (text) | products : product_id (number) , product_details (text) | customers : customer_id (number) , payment_method (text) , customer_name (text) , date_became_customer (time) , other_customer_details (text) | customer_addresses : customer_id (number) , address_id (number) , date_address_from (time) , address_type (text) , date_address_to (time) | customer_contact_channels : customer_id (number) , channel_code (text) , active_from_date (time) , active_to_date (time) , contact_number (text) | customer_orders : order_id (number) , customer_id (number) , order_status (text) , order_date (time) , order_details (text) | order_items : order_id (number) , product_id (number) , order_quantity (text) | order_items : product_id (number) , order_id (number) | customers : customer_id (number) , customer_name (text) | customer_orders : customer_id (number) , order_id (number) | 0.8125 |
customers_and_addresses | Find the number of distinct products Rodrick Heaney has bought so far. | addresses : address_id (number) , address_content (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) , other_address_details (text) | products : product_id (number) , product_details (text) | customers : customer_id (number) , payment_method (text) , customer_name (text) , date_became_customer (time) , other_customer_details (text) | customer_addresses : customer_id (number) , address_id (number) , date_address_from (time) , address_type (text) , date_address_to (time) | customer_contact_channels : customer_id (number) , channel_code (text) , active_from_date (time) , active_to_date (time) , contact_number (text) | customer_orders : order_id (number) , customer_id (number) , order_status (text) , order_date (time) , order_details (text) | order_items : order_id (number) , product_id (number) , order_quantity (text) | order_items : product_id (number) , order_id (number) | customers : customer_id (number) , customer_name (text) | customer_orders : customer_id (number) , order_id (number) | 0.8125 |