db_id
stringclasses 140
values | question
stringlengths 16
224
| schema
stringclasses 140
values | summarized-schema
stringlengths 18
304
| shrink-score
float64 0
1
|
---|---|---|---|---|
swimming | How many cities have a stadium that was opened before the year of 2006? | swimmer : id (number) , name (text) , nationality (text) , meter_100 (number) , meter_200 (text) , meter_300 (text) , meter_400 (text) , meter_500 (text) , meter_600 (text) , meter_700 (text) , time (text) | stadium : id (number) , name (text) , capacity (number) , city (text) , country (text) , opening_year (number) | event : id (number) , name (text) , stadium_id (number) , year (text) | record : id (number) , result (text) , swimmer_id (number) , event_id (number) | stadium : city (text) , opening_year (number) | 0.92 |
swimming | How many stadiums does each country have? | swimmer : id (number) , name (text) , nationality (text) , meter_100 (number) , meter_200 (text) , meter_300 (text) , meter_400 (text) , meter_500 (text) , meter_600 (text) , meter_700 (text) , time (text) | stadium : id (number) , name (text) , capacity (number) , city (text) , country (text) , opening_year (number) | event : id (number) , name (text) , stadium_id (number) , year (text) | record : id (number) , result (text) , swimmer_id (number) , event_id (number) | stadium : country (text) , id (number) | 0.92 |
swimming | Which countries do not have a stadium that was opened after 2006? | swimmer : id (number) , name (text) , nationality (text) , meter_100 (number) , meter_200 (text) , meter_300 (text) , meter_400 (text) , meter_500 (text) , meter_600 (text) , meter_700 (text) , time (text) | stadium : id (number) , name (text) , capacity (number) , city (text) , country (text) , opening_year (number) | event : id (number) , name (text) , stadium_id (number) , year (text) | record : id (number) , result (text) , swimmer_id (number) , event_id (number) | stadium : country (text) , opening_year (number) | 0.92 |
swimming | How many stadiums are not in country "Russia"? | swimmer : id (number) , name (text) , nationality (text) , meter_100 (number) , meter_200 (text) , meter_300 (text) , meter_400 (text) , meter_500 (text) , meter_600 (text) , meter_700 (text) , time (text) | stadium : id (number) , name (text) , capacity (number) , city (text) , country (text) , opening_year (number) | event : id (number) , name (text) , stadium_id (number) , year (text) | record : id (number) , result (text) , swimmer_id (number) , event_id (number) | stadium : country (text) , id (number) | 0.92 |
swimming | Find the names of all swimmers, sorted by their 100 meter scores in ascending order. | swimmer : id (number) , name (text) , nationality (text) , meter_100 (number) , meter_200 (text) , meter_300 (text) , meter_400 (text) , meter_500 (text) , meter_600 (text) , meter_700 (text) , time (text) | stadium : id (number) , name (text) , capacity (number) , city (text) , country (text) , opening_year (number) | event : id (number) , name (text) , stadium_id (number) , year (text) | record : id (number) , result (text) , swimmer_id (number) , event_id (number) | swimmer : name (text) , meter_100 (number) | 0.92 |
swimming | How many different countries are all the swimmers from? | swimmer : id (number) , name (text) , nationality (text) , meter_100 (number) , meter_200 (text) , meter_300 (text) , meter_400 (text) , meter_500 (text) , meter_600 (text) , meter_700 (text) , time (text) | stadium : id (number) , name (text) , capacity (number) , city (text) , country (text) , opening_year (number) | event : id (number) , name (text) , stadium_id (number) , year (text) | record : id (number) , result (text) , swimmer_id (number) , event_id (number) | swimmer : nationality (text) | 0.96 |
swimming | List countries that have more than one swimmer. | swimmer : id (number) , name (text) , nationality (text) , meter_100 (number) , meter_200 (text) , meter_300 (text) , meter_400 (text) , meter_500 (text) , meter_600 (text) , meter_700 (text) , time (text) | stadium : id (number) , name (text) , capacity (number) , city (text) , country (text) , opening_year (number) | event : id (number) , name (text) , stadium_id (number) , year (text) | record : id (number) , result (text) , swimmer_id (number) , event_id (number) | swimmer : nationality (text) , id (number) | 0.92 |
swimming | Find all 200 meter and 300 meter results of swimmers with nationality "Australia". | swimmer : id (number) , name (text) , nationality (text) , meter_100 (number) , meter_200 (text) , meter_300 (text) , meter_400 (text) , meter_500 (text) , meter_600 (text) , meter_700 (text) , time (text) | stadium : id (number) , name (text) , capacity (number) , city (text) , country (text) , opening_year (number) | event : id (number) , name (text) , stadium_id (number) , year (text) | record : id (number) , result (text) , swimmer_id (number) , event_id (number) | swimmer : meter_200 (text) , meter_300 (text) , nationality (text) | 0.88 |
swimming | Find the names of swimmers who has a result of "win". | swimmer : id (number) , name (text) , nationality (text) , meter_100 (number) , meter_200 (text) , meter_300 (text) , meter_400 (text) , meter_500 (text) , meter_600 (text) , meter_700 (text) , time (text) | stadium : id (number) , name (text) , capacity (number) , city (text) , country (text) , opening_year (number) | event : id (number) , name (text) , stadium_id (number) , year (text) | record : id (number) , result (text) , swimmer_id (number) , event_id (number) | swimmer : name (text) , id (number) | record : id (number) , swimmer_id (number) , result (text) | 0.8 |
swimming | What is the name of the stadium which held the most events? | swimmer : id (number) , name (text) , nationality (text) , meter_100 (number) , meter_200 (text) , meter_300 (text) , meter_400 (text) , meter_500 (text) , meter_600 (text) , meter_700 (text) , time (text) | stadium : id (number) , name (text) , capacity (number) , city (text) , country (text) , opening_year (number) | event : id (number) , name (text) , stadium_id (number) , year (text) | record : id (number) , result (text) , swimmer_id (number) , event_id (number) | stadium : name (text) , id (number) | event : name (text) , id (number) , stadium_id (number) | 0.8 |
swimming | Find the name and capacity of the stadium where the event named "World Junior" happened. | swimmer : id (number) , name (text) , nationality (text) , meter_100 (number) , meter_200 (text) , meter_300 (text) , meter_400 (text) , meter_500 (text) , meter_600 (text) , meter_700 (text) , time (text) | stadium : id (number) , name (text) , capacity (number) , city (text) , country (text) , opening_year (number) | event : id (number) , name (text) , stadium_id (number) , year (text) | record : id (number) , result (text) , swimmer_id (number) , event_id (number) | stadium : name (text) , capacity (number) , id (number) | event : name (text) , id (number) , stadium_id (number) | 0.76 |
swimming | Find the names of stadiums which have never had any event. | swimmer : id (number) , name (text) , nationality (text) , meter_100 (number) , meter_200 (text) , meter_300 (text) , meter_400 (text) , meter_500 (text) , meter_600 (text) , meter_700 (text) , time (text) | stadium : id (number) , name (text) , capacity (number) , city (text) , country (text) , opening_year (number) | event : id (number) , name (text) , stadium_id (number) , year (text) | record : id (number) , result (text) , swimmer_id (number) , event_id (number) | stadium : name (text) , id (number) | event : name (text) , id (number) , stadium_id (number) | 0.8 |
swimming | Find the name of the swimmer who has the most records. | swimmer : id (number) , name (text) , nationality (text) , meter_100 (number) , meter_200 (text) , meter_300 (text) , meter_400 (text) , meter_500 (text) , meter_600 (text) , meter_700 (text) , time (text) | stadium : id (number) , name (text) , capacity (number) , city (text) , country (text) , opening_year (number) | event : id (number) , name (text) , stadium_id (number) , year (text) | record : id (number) , result (text) , swimmer_id (number) , event_id (number) | swimmer : name (text) , id (number) | record : id (number) , swimmer_id (number) | 0.84 |
swimming | Find the name of the swimmer who has at least 2 records. | swimmer : id (number) , name (text) , nationality (text) , meter_100 (number) , meter_200 (text) , meter_300 (text) , meter_400 (text) , meter_500 (text) , meter_600 (text) , meter_700 (text) , time (text) | stadium : id (number) , name (text) , capacity (number) , city (text) , country (text) , opening_year (number) | event : id (number) , name (text) , stadium_id (number) , year (text) | record : id (number) , result (text) , swimmer_id (number) , event_id (number) | swimmer : name (text) , id (number) | record : id (number) , swimmer_id (number) | 0.84 |
swimming | Find the name and nationality of the swimmer who has won (i.e., has a result of "win") more than 1 time. | swimmer : id (number) , name (text) , nationality (text) , meter_100 (number) , meter_200 (text) , meter_300 (text) , meter_400 (text) , meter_500 (text) , meter_600 (text) , meter_700 (text) , time (text) | stadium : id (number) , name (text) , capacity (number) , city (text) , country (text) , opening_year (number) | event : id (number) , name (text) , stadium_id (number) , year (text) | record : id (number) , result (text) , swimmer_id (number) , event_id (number) | swimmer : name (text) , nationality (text) , id (number) | record : id (number) , swimmer_id (number) , result (text) | 0.76 |
swimming | Find the names of the swimmers who have no record. | swimmer : id (number) , name (text) , nationality (text) , meter_100 (number) , meter_200 (text) , meter_300 (text) , meter_400 (text) , meter_500 (text) , meter_600 (text) , meter_700 (text) , time (text) | stadium : id (number) , name (text) , capacity (number) , city (text) , country (text) , opening_year (number) | event : id (number) , name (text) , stadium_id (number) , year (text) | record : id (number) , result (text) , swimmer_id (number) , event_id (number) | swimmer : name (text) , id (number) | record : id (number) , swimmer_id (number) | 0.84 |
swimming | Find the names of the swimmers who have both "win" and "loss" results in the record. | swimmer : id (number) , name (text) , nationality (text) , meter_100 (number) , meter_200 (text) , meter_300 (text) , meter_400 (text) , meter_500 (text) , meter_600 (text) , meter_700 (text) , time (text) | stadium : id (number) , name (text) , capacity (number) , city (text) , country (text) , opening_year (number) | event : id (number) , name (text) , stadium_id (number) , year (text) | record : id (number) , result (text) , swimmer_id (number) , event_id (number) | swimmer : name (text) , id (number) | record : id (number) , swimmer_id (number) , result (text) | 0.8 |
swimming | Find the names of stadiums that some Australian swimmers have been to. | swimmer : id (number) , name (text) , nationality (text) , meter_100 (number) , meter_200 (text) , meter_300 (text) , meter_400 (text) , meter_500 (text) , meter_600 (text) , meter_700 (text) , time (text) | stadium : id (number) , name (text) , capacity (number) , city (text) , country (text) , opening_year (number) | event : id (number) , name (text) , stadium_id (number) , year (text) | record : id (number) , result (text) , swimmer_id (number) , event_id (number) | swimmer : name (text) , id (number) , nationality (text) | stadium : name (text) , id (number) | event : name (text) , id (number) , stadium_id (number) | record : id (number) , swimmer_id (number) , event_id (number) | 0.56 |
swimming | Find the names of stadiums that the most swimmers have been to. | swimmer : id (number) , name (text) , nationality (text) , meter_100 (number) , meter_200 (text) , meter_300 (text) , meter_400 (text) , meter_500 (text) , meter_600 (text) , meter_700 (text) , time (text) | stadium : id (number) , name (text) , capacity (number) , city (text) , country (text) , opening_year (number) | event : id (number) , name (text) , stadium_id (number) , year (text) | record : id (number) , result (text) , swimmer_id (number) , event_id (number) | stadium : name (text) , id (number) | event : name (text) , id (number) , stadium_id (number) | record : event_id (number) , id (number) , swimmer_id (number) | 0.68 |
swimming | Find all details for each swimmer. | swimmer : id (number) , name (text) , nationality (text) , meter_100 (number) , meter_200 (text) , meter_300 (text) , meter_400 (text) , meter_500 (text) , meter_600 (text) , meter_700 (text) , time (text) | stadium : id (number) , name (text) , capacity (number) , city (text) , country (text) , opening_year (number) | event : id (number) , name (text) , stadium_id (number) , year (text) | record : id (number) , result (text) , swimmer_id (number) , event_id (number) | swimmer : id (number) | 0.96 |
swimming | What is the average capacity of the stadiums that were opened in year 2005? | swimmer : id (number) , name (text) , nationality (text) , meter_100 (number) , meter_200 (text) , meter_300 (text) , meter_400 (text) , meter_500 (text) , meter_600 (text) , meter_700 (text) , time (text) | stadium : id (number) , name (text) , capacity (number) , city (text) , country (text) , opening_year (number) | event : id (number) , name (text) , stadium_id (number) , year (text) | record : id (number) , result (text) , swimmer_id (number) , event_id (number) | stadium : capacity (number) , opening_year (number) | 0.92 |
railway | How many railways are there? | railway : railway_id (number) , railway (text) , builder (text) , built (text) , wheels (text) , location (text) , objectnumber (text) | train : train_id (number) , train_num (text) , name (text) , from (text) , arrival (text) , railway_id (number) | manager : manager_id (number) , name (text) , country (text) , working_year_starts (text) , age (number) , level (number) | railway_manage : railway_id (number) , manager_id (number) , from_year (text) | railway : railway (text) , railway_id (number) | 0.909091 |
railway | List the builders of railways in ascending alphabetical order. | railway : railway_id (number) , railway (text) , builder (text) , built (text) , wheels (text) , location (text) , objectnumber (text) | train : train_id (number) , train_num (text) , name (text) , from (text) , arrival (text) , railway_id (number) | manager : manager_id (number) , name (text) , country (text) , working_year_starts (text) , age (number) , level (number) | railway_manage : railway_id (number) , manager_id (number) , from_year (text) | railway : builder (text) , railway (text) | 0.909091 |
railway | List the wheels and locations of the railways. | railway : railway_id (number) , railway (text) , builder (text) , built (text) , wheels (text) , location (text) , objectnumber (text) | train : train_id (number) , train_num (text) , name (text) , from (text) , arrival (text) , railway_id (number) | manager : manager_id (number) , name (text) , country (text) , working_year_starts (text) , age (number) , level (number) | railway_manage : railway_id (number) , manager_id (number) , from_year (text) | railway : wheels (text) , location (text) , railway (text) | 0.863636 |
railway | What is the maximum level of managers in countries that are not "Australia"? | railway : railway_id (number) , railway (text) , builder (text) , built (text) , wheels (text) , location (text) , objectnumber (text) | train : train_id (number) , train_num (text) , name (text) , from (text) , arrival (text) , railway_id (number) | manager : manager_id (number) , name (text) , country (text) , working_year_starts (text) , age (number) , level (number) | railway_manage : railway_id (number) , manager_id (number) , from_year (text) | manager : level (number) , country (text) | 0.909091 |
railway | What is the average age for all managers? | railway : railway_id (number) , railway (text) , builder (text) , built (text) , wheels (text) , location (text) , objectnumber (text) | train : train_id (number) , train_num (text) , name (text) , from (text) , arrival (text) , railway_id (number) | manager : manager_id (number) , name (text) , country (text) , working_year_starts (text) , age (number) , level (number) | railway_manage : railway_id (number) , manager_id (number) , from_year (text) | manager : age (number) | 0.954545 |
railway | What are the names of managers in ascending order of level? | railway : railway_id (number) , railway (text) , builder (text) , built (text) , wheels (text) , location (text) , objectnumber (text) | train : train_id (number) , train_num (text) , name (text) , from (text) , arrival (text) , railway_id (number) | manager : manager_id (number) , name (text) , country (text) , working_year_starts (text) , age (number) , level (number) | railway_manage : railway_id (number) , manager_id (number) , from_year (text) | manager : name (text) , level (number) | 0.909091 |
railway | What are the names and arrival times of trains? | railway : railway_id (number) , railway (text) , builder (text) , built (text) , wheels (text) , location (text) , objectnumber (text) | train : train_id (number) , train_num (text) , name (text) , from (text) , arrival (text) , railway_id (number) | manager : manager_id (number) , name (text) , country (text) , working_year_starts (text) , age (number) , level (number) | railway_manage : railway_id (number) , manager_id (number) , from_year (text) | train : name (text) , arrival (text) , from (text) | 0.863636 |
railway | What is the name of the oldest manager? | railway : railway_id (number) , railway (text) , builder (text) , built (text) , wheels (text) , location (text) , objectnumber (text) | train : train_id (number) , train_num (text) , name (text) , from (text) , arrival (text) , railway_id (number) | manager : manager_id (number) , name (text) , country (text) , working_year_starts (text) , age (number) , level (number) | railway_manage : railway_id (number) , manager_id (number) , from_year (text) | manager : name (text) , age (number) | 0.909091 |
railway | Show the names of trains and locations of railways they are in. | railway : railway_id (number) , railway (text) , builder (text) , built (text) , wheels (text) , location (text) , objectnumber (text) | train : train_id (number) , train_num (text) , name (text) , from (text) , arrival (text) , railway_id (number) | manager : manager_id (number) , name (text) , country (text) , working_year_starts (text) , age (number) , level (number) | railway_manage : railway_id (number) , manager_id (number) , from_year (text) | train : name (text) , from (text) , railway_id (number) | railway : location (text) , railway (text) , railway_id (number) | 0.727273 |
railway | Show the builder of railways associated with the trains named "Andaman Exp". | railway : railway_id (number) , railway (text) , builder (text) , built (text) , wheels (text) , location (text) , objectnumber (text) | train : train_id (number) , train_num (text) , name (text) , from (text) , arrival (text) , railway_id (number) | manager : manager_id (number) , name (text) , country (text) , working_year_starts (text) , age (number) , level (number) | railway_manage : railway_id (number) , manager_id (number) , from_year (text) | railway : builder (text) , railway (text) , railway_id (number) | train : from (text) , railway_id (number) , name (text) | 0.727273 |
railway | Show id and location of railways that are associated with more than one train. | railway : railway_id (number) , railway (text) , builder (text) , built (text) , wheels (text) , location (text) , objectnumber (text) | train : train_id (number) , train_num (text) , name (text) , from (text) , arrival (text) , railway_id (number) | manager : manager_id (number) , name (text) , country (text) , working_year_starts (text) , age (number) , level (number) | railway_manage : railway_id (number) , manager_id (number) , from_year (text) | railway : railway_id (number) , location (text) , railway (text) | train : railway_id (number) , from (text) , train_id (number) | 0.727273 |
railway | Show the id and builder of the railway that are associated with the most trains. | railway : railway_id (number) , railway (text) , builder (text) , built (text) , wheels (text) , location (text) , objectnumber (text) | train : train_id (number) , train_num (text) , name (text) , from (text) , arrival (text) , railway_id (number) | manager : manager_id (number) , name (text) , country (text) , working_year_starts (text) , age (number) , level (number) | railway_manage : railway_id (number) , manager_id (number) , from_year (text) | railway : railway_id (number) , builder (text) , railway (text) | train : railway_id (number) , from (text) , train_id (number) | 0.727273 |
railway | Show different builders of railways, along with the corresponding number of railways using each builder. | railway : railway_id (number) , railway (text) , builder (text) , built (text) , wheels (text) , location (text) , objectnumber (text) | train : train_id (number) , train_num (text) , name (text) , from (text) , arrival (text) , railway_id (number) | manager : manager_id (number) , name (text) , country (text) , working_year_starts (text) , age (number) , level (number) | railway_manage : railway_id (number) , manager_id (number) , from_year (text) | railway : builder (text) , railway (text) , railway_id (number) | 0.863636 |
railway | Show the most common builder of railways. | railway : railway_id (number) , railway (text) , builder (text) , built (text) , wheels (text) , location (text) , objectnumber (text) | train : train_id (number) , train_num (text) , name (text) , from (text) , arrival (text) , railway_id (number) | manager : manager_id (number) , name (text) , country (text) , working_year_starts (text) , age (number) , level (number) | railway_manage : railway_id (number) , manager_id (number) , from_year (text) | railway : builder (text) , railway (text) , railway_id (number) | 0.863636 |
railway | Show different locations of railways along with the corresponding number of railways at each location. | railway : railway_id (number) , railway (text) , builder (text) , built (text) , wheels (text) , location (text) , objectnumber (text) | train : train_id (number) , train_num (text) , name (text) , from (text) , arrival (text) , railway_id (number) | manager : manager_id (number) , name (text) , country (text) , working_year_starts (text) , age (number) , level (number) | railway_manage : railway_id (number) , manager_id (number) , from_year (text) | railway : location (text) , railway (text) , railway_id (number) | 0.863636 |
railway | Show the locations that have more than one railways. | railway : railway_id (number) , railway (text) , builder (text) , built (text) , wheels (text) , location (text) , objectnumber (text) | train : train_id (number) , train_num (text) , name (text) , from (text) , arrival (text) , railway_id (number) | manager : manager_id (number) , name (text) , country (text) , working_year_starts (text) , age (number) , level (number) | railway_manage : railway_id (number) , manager_id (number) , from_year (text) | railway : location (text) , railway (text) , railway_id (number) | 0.863636 |
railway | List the object number of railways that do not have any trains. | railway : railway_id (number) , railway (text) , builder (text) , built (text) , wheels (text) , location (text) , objectnumber (text) | train : train_id (number) , train_num (text) , name (text) , from (text) , arrival (text) , railway_id (number) | manager : manager_id (number) , name (text) , country (text) , working_year_starts (text) , age (number) , level (number) | railway_manage : railway_id (number) , manager_id (number) , from_year (text) | railway : objectnumber (text) , railway (text) , railway_id (number) | train : from (text) , railway_id (number) | 0.772727 |
railway | Show the countries that have both managers of age above 50 and managers of age below 46. | railway : railway_id (number) , railway (text) , builder (text) , built (text) , wheels (text) , location (text) , objectnumber (text) | train : train_id (number) , train_num (text) , name (text) , from (text) , arrival (text) , railway_id (number) | manager : manager_id (number) , name (text) , country (text) , working_year_starts (text) , age (number) , level (number) | railway_manage : railway_id (number) , manager_id (number) , from_year (text) | manager : country (text) , age (number) | 0.909091 |
railway | Show the distinct countries of managers. | railway : railway_id (number) , railway (text) , builder (text) , built (text) , wheels (text) , location (text) , objectnumber (text) | train : train_id (number) , train_num (text) , name (text) , from (text) , arrival (text) , railway_id (number) | manager : manager_id (number) , name (text) , country (text) , working_year_starts (text) , age (number) , level (number) | railway_manage : railway_id (number) , manager_id (number) , from_year (text) | manager : country (text) | 0.954545 |
railway | Show the working years of managers in descending order of their level. | railway : railway_id (number) , railway (text) , builder (text) , built (text) , wheels (text) , location (text) , objectnumber (text) | train : train_id (number) , train_num (text) , name (text) , from (text) , arrival (text) , railway_id (number) | manager : manager_id (number) , name (text) , country (text) , working_year_starts (text) , age (number) , level (number) | railway_manage : railway_id (number) , manager_id (number) , from_year (text) | manager : working_year_starts (text) , level (number) | 0.909091 |
railway | Show the countries that have managers of age above 50 or below 46. | railway : railway_id (number) , railway (text) , builder (text) , built (text) , wheels (text) , location (text) , objectnumber (text) | train : train_id (number) , train_num (text) , name (text) , from (text) , arrival (text) , railway_id (number) | manager : manager_id (number) , name (text) , country (text) , working_year_starts (text) , age (number) , level (number) | railway_manage : railway_id (number) , manager_id (number) , from_year (text) | manager : country (text) , age (number) | 0.909091 |
customers_and_products_contacts | How many addresses are there in country USA? | addresses : address_id (number) , line_1_number_building (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | products : product_id (number) , product_type_code (text) , product_name (text) , product_price (number) | customers : customer_id (number) , payment_method_code (text) , customer_number (text) , customer_name (text) , customer_address (text) , customer_phone (text) , customer_email (text) | contacts : contact_id (number) , customer_id (number) , gender (text) , first_name (text) , last_name (text) , contact_phone (text) | customer_address_history : customer_id (number) , address_id (number) , date_from (time) , date_to (time) | customer_orders : order_id (number) , customer_id (number) , order_date (time) , order_status_code (text) | order_items : order_item_id (number) , order_id (number) , product_id (number) , order_quantity (text) | addresses : country (text) , address_id (number) | 0.942857 |
customers_and_products_contacts | Show all distinct cities in the address record. | addresses : address_id (number) , line_1_number_building (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | products : product_id (number) , product_type_code (text) , product_name (text) , product_price (number) | customers : customer_id (number) , payment_method_code (text) , customer_number (text) , customer_name (text) , customer_address (text) , customer_phone (text) , customer_email (text) | contacts : contact_id (number) , customer_id (number) , gender (text) , first_name (text) , last_name (text) , contact_phone (text) | customer_address_history : customer_id (number) , address_id (number) , date_from (time) , date_to (time) | customer_orders : order_id (number) , customer_id (number) , order_date (time) , order_status_code (text) | order_items : order_item_id (number) , order_id (number) , product_id (number) , order_quantity (text) | addresses : city (text) | 0.971429 |
customers_and_products_contacts | Show each state and the number of addresses in each state. | addresses : address_id (number) , line_1_number_building (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | products : product_id (number) , product_type_code (text) , product_name (text) , product_price (number) | customers : customer_id (number) , payment_method_code (text) , customer_number (text) , customer_name (text) , customer_address (text) , customer_phone (text) , customer_email (text) | contacts : contact_id (number) , customer_id (number) , gender (text) , first_name (text) , last_name (text) , contact_phone (text) | customer_address_history : customer_id (number) , address_id (number) , date_from (time) , date_to (time) | customer_orders : order_id (number) , customer_id (number) , order_date (time) , order_status_code (text) | order_items : order_item_id (number) , order_id (number) , product_id (number) , order_quantity (text) | addresses : state_province_county (text) , address_id (number) | 0.942857 |
customers_and_products_contacts | Show names and phones of customers who do not have address information. | addresses : address_id (number) , line_1_number_building (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | products : product_id (number) , product_type_code (text) , product_name (text) , product_price (number) | customers : customer_id (number) , payment_method_code (text) , customer_number (text) , customer_name (text) , customer_address (text) , customer_phone (text) , customer_email (text) | contacts : contact_id (number) , customer_id (number) , gender (text) , first_name (text) , last_name (text) , contact_phone (text) | customer_address_history : customer_id (number) , address_id (number) , date_from (time) , date_to (time) | customer_orders : order_id (number) , customer_id (number) , order_date (time) , order_status_code (text) | order_items : order_item_id (number) , order_id (number) , product_id (number) , order_quantity (text) | customers : customer_name (text) , customer_phone (text) , customer_id (number) | customer_address_history : customer_id (number) | 0.885714 |
customers_and_products_contacts | Show the name of the customer who has the most orders. | addresses : address_id (number) , line_1_number_building (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | products : product_id (number) , product_type_code (text) , product_name (text) , product_price (number) | customers : customer_id (number) , payment_method_code (text) , customer_number (text) , customer_name (text) , customer_address (text) , customer_phone (text) , customer_email (text) | contacts : contact_id (number) , customer_id (number) , gender (text) , first_name (text) , last_name (text) , contact_phone (text) | customer_address_history : customer_id (number) , address_id (number) , date_from (time) , date_to (time) | customer_orders : order_id (number) , customer_id (number) , order_date (time) , order_status_code (text) | order_items : order_item_id (number) , order_id (number) , product_id (number) , order_quantity (text) | customers : customer_name (text) , customer_id (number) | customer_orders : customer_id (number) , order_id (number) | 0.885714 |
customers_and_products_contacts | Show the product type codes which have at least two products. | addresses : address_id (number) , line_1_number_building (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | products : product_id (number) , product_type_code (text) , product_name (text) , product_price (number) | customers : customer_id (number) , payment_method_code (text) , customer_number (text) , customer_name (text) , customer_address (text) , customer_phone (text) , customer_email (text) | contacts : contact_id (number) , customer_id (number) , gender (text) , first_name (text) , last_name (text) , contact_phone (text) | customer_address_history : customer_id (number) , address_id (number) , date_from (time) , date_to (time) | customer_orders : order_id (number) , customer_id (number) , order_date (time) , order_status_code (text) | order_items : order_item_id (number) , order_id (number) , product_id (number) , order_quantity (text) | products : product_type_code (text) , product_id (number) | 0.942857 |
customers_and_products_contacts | Show the names of customers who have both an order in completed status and an order in part status. | addresses : address_id (number) , line_1_number_building (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | products : product_id (number) , product_type_code (text) , product_name (text) , product_price (number) | customers : customer_id (number) , payment_method_code (text) , customer_number (text) , customer_name (text) , customer_address (text) , customer_phone (text) , customer_email (text) | contacts : contact_id (number) , customer_id (number) , gender (text) , first_name (text) , last_name (text) , contact_phone (text) | customer_address_history : customer_id (number) , address_id (number) , date_from (time) , date_to (time) | customer_orders : order_id (number) , customer_id (number) , order_date (time) , order_status_code (text) | order_items : order_item_id (number) , order_id (number) , product_id (number) , order_quantity (text) | customers : customer_name (text) , customer_id (number) | customer_orders : customer_id (number) , order_status_code (text) | 0.885714 |
customers_and_products_contacts | Show the name, phone, and payment method code for all customers in descending order of customer number. | addresses : address_id (number) , line_1_number_building (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | products : product_id (number) , product_type_code (text) , product_name (text) , product_price (number) | customers : customer_id (number) , payment_method_code (text) , customer_number (text) , customer_name (text) , customer_address (text) , customer_phone (text) , customer_email (text) | contacts : contact_id (number) , customer_id (number) , gender (text) , first_name (text) , last_name (text) , contact_phone (text) | customer_address_history : customer_id (number) , address_id (number) , date_from (time) , date_to (time) | customer_orders : order_id (number) , customer_id (number) , order_date (time) , order_status_code (text) | order_items : order_item_id (number) , order_id (number) , product_id (number) , order_quantity (text) | customers : customer_name (text) , customer_phone (text) , payment_method_code (text) , customer_number (text) | 0.885714 |
customers_and_products_contacts | Show the product name and total order quantity for each product. | addresses : address_id (number) , line_1_number_building (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | products : product_id (number) , product_type_code (text) , product_name (text) , product_price (number) | customers : customer_id (number) , payment_method_code (text) , customer_number (text) , customer_name (text) , customer_address (text) , customer_phone (text) , customer_email (text) | contacts : contact_id (number) , customer_id (number) , gender (text) , first_name (text) , last_name (text) , contact_phone (text) | customer_address_history : customer_id (number) , address_id (number) , date_from (time) , date_to (time) | customer_orders : order_id (number) , customer_id (number) , order_date (time) , order_status_code (text) | order_items : order_item_id (number) , order_id (number) , product_id (number) , order_quantity (text) | products : product_name (text) , product_id (number) | order_items : order_quantity (text) , product_id (number) | 0.885714 |
customers_and_products_contacts | Show the minimum, maximum, average price for all products. | addresses : address_id (number) , line_1_number_building (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | products : product_id (number) , product_type_code (text) , product_name (text) , product_price (number) | customers : customer_id (number) , payment_method_code (text) , customer_number (text) , customer_name (text) , customer_address (text) , customer_phone (text) , customer_email (text) | contacts : contact_id (number) , customer_id (number) , gender (text) , first_name (text) , last_name (text) , contact_phone (text) | customer_address_history : customer_id (number) , address_id (number) , date_from (time) , date_to (time) | customer_orders : order_id (number) , customer_id (number) , order_date (time) , order_status_code (text) | order_items : order_item_id (number) , order_id (number) , product_id (number) , order_quantity (text) | products : product_price (number) | 0.971429 |
customers_and_products_contacts | How many products have a price higher than the average? | addresses : address_id (number) , line_1_number_building (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | products : product_id (number) , product_type_code (text) , product_name (text) , product_price (number) | customers : customer_id (number) , payment_method_code (text) , customer_number (text) , customer_name (text) , customer_address (text) , customer_phone (text) , customer_email (text) | contacts : contact_id (number) , customer_id (number) , gender (text) , first_name (text) , last_name (text) , contact_phone (text) | customer_address_history : customer_id (number) , address_id (number) , date_from (time) , date_to (time) | customer_orders : order_id (number) , customer_id (number) , order_date (time) , order_status_code (text) | order_items : order_item_id (number) , order_id (number) , product_id (number) , order_quantity (text) | products : product_price (number) , product_id (number) | 0.942857 |
customers_and_products_contacts | Show the customer name, customer address city, date from, and date to for each customer address history. | addresses : address_id (number) , line_1_number_building (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | products : product_id (number) , product_type_code (text) , product_name (text) , product_price (number) | customers : customer_id (number) , payment_method_code (text) , customer_number (text) , customer_name (text) , customer_address (text) , customer_phone (text) , customer_email (text) | contacts : contact_id (number) , customer_id (number) , gender (text) , first_name (text) , last_name (text) , contact_phone (text) | customer_address_history : customer_id (number) , address_id (number) , date_from (time) , date_to (time) | customer_orders : order_id (number) , customer_id (number) , order_date (time) , order_status_code (text) | order_items : order_item_id (number) , order_id (number) , product_id (number) , order_quantity (text) | customers : customer_name (text) , customer_id (number) | addresses : city (text) , address_id (number) | customer_address_history : date_from (time) , date_to (time) , customer_id (number) , address_id (number) | 0.771429 |
customers_and_products_contacts | Show the names of customers who use Credit Card payment method and have more than 2 orders. | addresses : address_id (number) , line_1_number_building (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | products : product_id (number) , product_type_code (text) , product_name (text) , product_price (number) | customers : customer_id (number) , payment_method_code (text) , customer_number (text) , customer_name (text) , customer_address (text) , customer_phone (text) , customer_email (text) | contacts : contact_id (number) , customer_id (number) , gender (text) , first_name (text) , last_name (text) , contact_phone (text) | customer_address_history : customer_id (number) , address_id (number) , date_from (time) , date_to (time) | customer_orders : order_id (number) , customer_id (number) , order_date (time) , order_status_code (text) | order_items : order_item_id (number) , order_id (number) , product_id (number) , order_quantity (text) | customers : customer_name (text) , customer_id (number) , payment_method_code (text) | customer_orders : customer_id (number) , order_id (number) | 0.857143 |
customers_and_products_contacts | What are the name and phone of the customer with the most ordered product quantity? | addresses : address_id (number) , line_1_number_building (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | products : product_id (number) , product_type_code (text) , product_name (text) , product_price (number) | customers : customer_id (number) , payment_method_code (text) , customer_number (text) , customer_name (text) , customer_address (text) , customer_phone (text) , customer_email (text) | contacts : contact_id (number) , customer_id (number) , gender (text) , first_name (text) , last_name (text) , contact_phone (text) | customer_address_history : customer_id (number) , address_id (number) , date_from (time) , date_to (time) | customer_orders : order_id (number) , customer_id (number) , order_date (time) , order_status_code (text) | order_items : order_item_id (number) , order_id (number) , product_id (number) , order_quantity (text) | customers : customer_name (text) , customer_phone (text) , customer_id (number) | customer_orders : customer_id (number) , order_id (number) | order_items : order_id (number) , order_quantity (text) | 0.8 |
customers_and_products_contacts | Show the product type and name for the products with price higher than 1000 or lower than 500. | addresses : address_id (number) , line_1_number_building (text) , city (text) , zip_postcode (text) , state_province_county (text) , country (text) | products : product_id (number) , product_type_code (text) , product_name (text) , product_price (number) | customers : customer_id (number) , payment_method_code (text) , customer_number (text) , customer_name (text) , customer_address (text) , customer_phone (text) , customer_email (text) | contacts : contact_id (number) , customer_id (number) , gender (text) , first_name (text) , last_name (text) , contact_phone (text) | customer_address_history : customer_id (number) , address_id (number) , date_from (time) , date_to (time) | customer_orders : order_id (number) , customer_id (number) , order_date (time) , order_status_code (text) | order_items : order_item_id (number) , order_id (number) , product_id (number) , order_quantity (text) | products : product_type_code (text) , product_name (text) , product_price (number) | 0.914286 |
dorm_1 | Find the name of dorms only for female (F gender). | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | dorm : dormid (number) , dorm_name (text) , student_capacity (number) , gender (text) | dorm_amenity : amenid (number) , amenity_name (text) | has_amenity : dormid (number) , amenid (number) | lives_in : stuid (number) , dormid (number) , room_number (number) | dorm : dorm_name (text) , gender (text) | 0.894737 |
dorm_1 | What are the names of the all-female dorms? | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | dorm : dormid (number) , dorm_name (text) , student_capacity (number) , gender (text) | dorm_amenity : amenid (number) , amenity_name (text) | has_amenity : dormid (number) , amenid (number) | lives_in : stuid (number) , dormid (number) , room_number (number) | dorm : dorm_name (text) , gender (text) | 0.894737 |
dorm_1 | Find the name of dorms that can accommodate more than 300 students. | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | dorm : dormid (number) , dorm_name (text) , student_capacity (number) , gender (text) | dorm_amenity : amenid (number) , amenity_name (text) | has_amenity : dormid (number) , amenid (number) | lives_in : stuid (number) , dormid (number) , room_number (number) | dorm : dorm_name (text) , student_capacity (number) | 0.894737 |
dorm_1 | What are the names of all the dorms that can accomdate more than 300 students? | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | dorm : dormid (number) , dorm_name (text) , student_capacity (number) , gender (text) | dorm_amenity : amenid (number) , amenity_name (text) | has_amenity : dormid (number) , amenid (number) | lives_in : stuid (number) , dormid (number) , room_number (number) | dorm : dorm_name (text) , student_capacity (number) | 0.894737 |
dorm_1 | How many female students (sex is F) whose age is below 25? | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | dorm : dormid (number) , dorm_name (text) , student_capacity (number) , gender (text) | dorm_amenity : amenid (number) , amenity_name (text) | has_amenity : dormid (number) , amenid (number) | lives_in : stuid (number) , dormid (number) , room_number (number) | student : sex (text) , age (number) , stuid (number) | 0.842105 |
dorm_1 | How many girl students who are younger than 25? | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | dorm : dormid (number) , dorm_name (text) , student_capacity (number) , gender (text) | dorm_amenity : amenid (number) , amenity_name (text) | has_amenity : dormid (number) , amenid (number) | lives_in : stuid (number) , dormid (number) , room_number (number) | student : sex (text) , age (number) , stuid (number) | 0.842105 |
dorm_1 | Find the first name of students who is older than 20. | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | dorm : dormid (number) , dorm_name (text) , student_capacity (number) , gender (text) | dorm_amenity : amenid (number) , amenity_name (text) | has_amenity : dormid (number) , amenid (number) | lives_in : stuid (number) , dormid (number) , room_number (number) | student : fname (text) , age (number) | 0.894737 |
dorm_1 | What are the first names of all students who are older than 20? | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | dorm : dormid (number) , dorm_name (text) , student_capacity (number) , gender (text) | dorm_amenity : amenid (number) , amenity_name (text) | has_amenity : dormid (number) , amenid (number) | lives_in : stuid (number) , dormid (number) , room_number (number) | student : fname (text) , age (number) | 0.894737 |
dorm_1 | Find the first name of students living in city PHL whose age is between 20 and 25. | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | dorm : dormid (number) , dorm_name (text) , student_capacity (number) , gender (text) | dorm_amenity : amenid (number) , amenity_name (text) | has_amenity : dormid (number) , amenid (number) | lives_in : stuid (number) , dormid (number) , room_number (number) | student : fname (text) , city_code (text) , age (number) | 0.842105 |
dorm_1 | What is the first name of the students who are in age 20 to 25 and living in PHL city? | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | dorm : dormid (number) , dorm_name (text) , student_capacity (number) , gender (text) | dorm_amenity : amenid (number) , amenity_name (text) | has_amenity : dormid (number) , amenid (number) | lives_in : stuid (number) , dormid (number) , room_number (number) | student : fname (text) , city_code (text) , age (number) | 0.842105 |
dorm_1 | Find the total capacity of all dorms. | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | dorm : dormid (number) , dorm_name (text) , student_capacity (number) , gender (text) | dorm_amenity : amenid (number) , amenity_name (text) | has_amenity : dormid (number) , amenid (number) | lives_in : stuid (number) , dormid (number) , room_number (number) | dorm : student_capacity (number) | 0.947368 |
dorm_1 | What is the total student capacity of all dorms? | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | dorm : dormid (number) , dorm_name (text) , student_capacity (number) , gender (text) | dorm_amenity : amenid (number) , amenity_name (text) | has_amenity : dormid (number) , amenid (number) | lives_in : stuid (number) , dormid (number) , room_number (number) | dorm : student_capacity (number) | 0.947368 |
dorm_1 | How many students are there? | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | dorm : dormid (number) , dorm_name (text) , student_capacity (number) , gender (text) | dorm_amenity : amenid (number) , amenity_name (text) | has_amenity : dormid (number) , amenid (number) | lives_in : stuid (number) , dormid (number) , room_number (number) | student : stuid (number) | 0.947368 |
dorm_1 | How many students exist? | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | dorm : dormid (number) , dorm_name (text) , student_capacity (number) , gender (text) | dorm_amenity : amenid (number) , amenity_name (text) | has_amenity : dormid (number) , amenid (number) | lives_in : stuid (number) , dormid (number) , room_number (number) | student : stuid (number) | 0.947368 |
dorm_1 | Find the average age of all students living in the each city. | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | dorm : dormid (number) , dorm_name (text) , student_capacity (number) , gender (text) | dorm_amenity : amenid (number) , amenity_name (text) | has_amenity : dormid (number) , amenid (number) | lives_in : stuid (number) , dormid (number) , room_number (number) | student : age (number) , city_code (text) | 0.894737 |
dorm_1 | What is the average age for each city and what are those cities? | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | dorm : dormid (number) , dorm_name (text) , student_capacity (number) , gender (text) | dorm_amenity : amenid (number) , amenity_name (text) | has_amenity : dormid (number) , amenid (number) | lives_in : stuid (number) , dormid (number) , room_number (number) | student : age (number) , city_code (text) | 0.894737 |
dorm_1 | Find the average and total capacity of dorms for the students with gender X. | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | dorm : dormid (number) , dorm_name (text) , student_capacity (number) , gender (text) | dorm_amenity : amenid (number) , amenity_name (text) | has_amenity : dormid (number) , amenid (number) | lives_in : stuid (number) , dormid (number) , room_number (number) | dorm : student_capacity (number) , gender (text) | 0.894737 |
dorm_1 | What is the average and total capacity for all dorms who are of gender X? | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | dorm : dormid (number) , dorm_name (text) , student_capacity (number) , gender (text) | dorm_amenity : amenid (number) , amenity_name (text) | has_amenity : dormid (number) , amenid (number) | lives_in : stuid (number) , dormid (number) , room_number (number) | dorm : student_capacity (number) , gender (text) | 0.894737 |
dorm_1 | Find the number of dorms that have some amenity. | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | dorm : dormid (number) , dorm_name (text) , student_capacity (number) , gender (text) | dorm_amenity : amenid (number) , amenity_name (text) | has_amenity : dormid (number) , amenid (number) | lives_in : stuid (number) , dormid (number) , room_number (number) | has_amenity : dormid (number) | 0.947368 |
dorm_1 | How many dorms have amenities? | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | dorm : dormid (number) , dorm_name (text) , student_capacity (number) , gender (text) | dorm_amenity : amenid (number) , amenity_name (text) | has_amenity : dormid (number) , amenid (number) | lives_in : stuid (number) , dormid (number) , room_number (number) | has_amenity : dormid (number) | 0.947368 |
dorm_1 | Find the name of dorms that do not have any amenity | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | dorm : dormid (number) , dorm_name (text) , student_capacity (number) , gender (text) | dorm_amenity : amenid (number) , amenity_name (text) | has_amenity : dormid (number) , amenid (number) | lives_in : stuid (number) , dormid (number) , room_number (number) | dorm : dorm_name (text) , dormid (number) | has_amenity : dormid (number) | 0.842105 |
dorm_1 | What are the names of all the dorms that don't have any amenities? | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | dorm : dormid (number) , dorm_name (text) , student_capacity (number) , gender (text) | dorm_amenity : amenid (number) , amenity_name (text) | has_amenity : dormid (number) , amenid (number) | lives_in : stuid (number) , dormid (number) , room_number (number) | dorm : dorm_name (text) , dormid (number) | has_amenity : dormid (number) | 0.842105 |
dorm_1 | Find the number of distinct gender for dorms. | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | dorm : dormid (number) , dorm_name (text) , student_capacity (number) , gender (text) | dorm_amenity : amenid (number) , amenity_name (text) | has_amenity : dormid (number) , amenid (number) | lives_in : stuid (number) , dormid (number) , room_number (number) | dorm : gender (text) | 0.947368 |
dorm_1 | How many different genders are there in the dorms? | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | dorm : dormid (number) , dorm_name (text) , student_capacity (number) , gender (text) | dorm_amenity : amenid (number) , amenity_name (text) | has_amenity : dormid (number) , amenid (number) | lives_in : stuid (number) , dormid (number) , room_number (number) | dorm : gender (text) | 0.947368 |
dorm_1 | Find the capacity and gender type of the dorm whose name has substring ‘Donor’. | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | dorm : dormid (number) , dorm_name (text) , student_capacity (number) , gender (text) | dorm_amenity : amenid (number) , amenity_name (text) | has_amenity : dormid (number) , amenid (number) | lives_in : stuid (number) , dormid (number) , room_number (number) | dorm : student_capacity (number) , gender (text) , dorm_name (text) | 0.842105 |
dorm_1 | What is the student capacity and type of gender for the dorm whose name as the phrase Donor in it? | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | dorm : dormid (number) , dorm_name (text) , student_capacity (number) , gender (text) | dorm_amenity : amenid (number) , amenity_name (text) | has_amenity : dormid (number) , amenid (number) | lives_in : stuid (number) , dormid (number) , room_number (number) | dorm : student_capacity (number) , gender (text) , dorm_name (text) | 0.842105 |
dorm_1 | Find the name and gender type of the dorms whose capacity is greater than 300 or less than 100. | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | dorm : dormid (number) , dorm_name (text) , student_capacity (number) , gender (text) | dorm_amenity : amenid (number) , amenity_name (text) | has_amenity : dormid (number) , amenid (number) | lives_in : stuid (number) , dormid (number) , room_number (number) | dorm : dorm_name (text) , gender (text) , student_capacity (number) | 0.842105 |
dorm_1 | What are the names and types of the dorms that have a capacity greater than 300 or less than 100? | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | dorm : dormid (number) , dorm_name (text) , student_capacity (number) , gender (text) | dorm_amenity : amenid (number) , amenity_name (text) | has_amenity : dormid (number) , amenid (number) | lives_in : stuid (number) , dormid (number) , room_number (number) | dorm : dorm_name (text) , gender (text) , student_capacity (number) | 0.842105 |
dorm_1 | Find the numbers of different majors and cities. | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | dorm : dormid (number) , dorm_name (text) , student_capacity (number) , gender (text) | dorm_amenity : amenid (number) , amenity_name (text) | has_amenity : dormid (number) , amenid (number) | lives_in : stuid (number) , dormid (number) , room_number (number) | student : major (number) , city_code (text) | 0.894737 |
dorm_1 | How many different majors are there and how many different city codes are there for each student? | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | dorm : dormid (number) , dorm_name (text) , student_capacity (number) , gender (text) | dorm_amenity : amenid (number) , amenity_name (text) | has_amenity : dormid (number) , amenid (number) | lives_in : stuid (number) , dormid (number) , room_number (number) | student : major (number) , city_code (text) | 0.894737 |
dorm_1 | Find the name of dorms which have both TV Lounge and Study Room as amenities. | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | dorm : dormid (number) , dorm_name (text) , student_capacity (number) , gender (text) | dorm_amenity : amenid (number) , amenity_name (text) | has_amenity : dormid (number) , amenid (number) | lives_in : stuid (number) , dormid (number) , room_number (number) | dorm : dorm_name (text) , dormid (number) | has_amenity : dormid (number) , amenid (number) | dorm_amenity : amenid (number) , amenity_name (text) | 0.684211 |
dorm_1 | What is the name of the dorm with both a TV Lounge and Study Room listed as amenities? | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | dorm : dormid (number) , dorm_name (text) , student_capacity (number) , gender (text) | dorm_amenity : amenid (number) , amenity_name (text) | has_amenity : dormid (number) , amenid (number) | lives_in : stuid (number) , dormid (number) , room_number (number) | dorm : dorm_name (text) , dormid (number) | has_amenity : dormid (number) , amenid (number) | dorm_amenity : amenid (number) , amenity_name (text) | 0.684211 |
dorm_1 | Find the name of dorms which have TV Lounge but no Study Room as amenity. | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | dorm : dormid (number) , dorm_name (text) , student_capacity (number) , gender (text) | dorm_amenity : amenid (number) , amenity_name (text) | has_amenity : dormid (number) , amenid (number) | lives_in : stuid (number) , dormid (number) , room_number (number) | dorm : dorm_name (text) , dormid (number) | has_amenity : dormid (number) , amenid (number) | dorm_amenity : amenid (number) , amenity_name (text) | 0.684211 |
dorm_1 | What is the name of each dorm that has a TV Lounge but no study rooms? | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | dorm : dormid (number) , dorm_name (text) , student_capacity (number) , gender (text) | dorm_amenity : amenid (number) , amenity_name (text) | has_amenity : dormid (number) , amenid (number) | lives_in : stuid (number) , dormid (number) , room_number (number) | dorm : dorm_name (text) , dormid (number) | has_amenity : dormid (number) , amenid (number) | dorm_amenity : amenid (number) , amenity_name (text) | 0.684211 |
dorm_1 | Find the last name of students who is either female (sex is F) and living in the city of code BAL or male (sex is M) and in age of below 20. | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | dorm : dormid (number) , dorm_name (text) , student_capacity (number) , gender (text) | dorm_amenity : amenid (number) , amenity_name (text) | has_amenity : dormid (number) , amenid (number) | lives_in : stuid (number) , dormid (number) , room_number (number) | student : lname (text) , sex (text) , city_code (text) , age (number) | 0.789474 |
dorm_1 | What is the last name of every student who is either female or living in a city with the code BAL or male and under 20? | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | dorm : dormid (number) , dorm_name (text) , student_capacity (number) , gender (text) | dorm_amenity : amenid (number) , amenity_name (text) | has_amenity : dormid (number) , amenid (number) | lives_in : stuid (number) , dormid (number) , room_number (number) | student : lname (text) , sex (text) , city_code (text) , age (number) | 0.789474 |
dorm_1 | Find the name of the dorm with the largest capacity. | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | dorm : dormid (number) , dorm_name (text) , student_capacity (number) , gender (text) | dorm_amenity : amenid (number) , amenity_name (text) | has_amenity : dormid (number) , amenid (number) | lives_in : stuid (number) , dormid (number) , room_number (number) | dorm : dorm_name (text) , student_capacity (number) | 0.894737 |
dorm_1 | What are the names of the dorm with the largest capacity? | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | dorm : dormid (number) , dorm_name (text) , student_capacity (number) , gender (text) | dorm_amenity : amenid (number) , amenity_name (text) | has_amenity : dormid (number) , amenid (number) | lives_in : stuid (number) , dormid (number) , room_number (number) | dorm : dorm_name (text) , student_capacity (number) | 0.894737 |
dorm_1 | List in alphabetic order all different amenities. | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | dorm : dormid (number) , dorm_name (text) , student_capacity (number) , gender (text) | dorm_amenity : amenid (number) , amenity_name (text) | has_amenity : dormid (number) , amenid (number) | lives_in : stuid (number) , dormid (number) , room_number (number) | dorm_amenity : amenity_name (text) | 0.947368 |
dorm_1 | What are the different dorm amenity names in alphabetical order? | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | dorm : dormid (number) , dorm_name (text) , student_capacity (number) , gender (text) | dorm_amenity : amenid (number) , amenity_name (text) | has_amenity : dormid (number) , amenid (number) | lives_in : stuid (number) , dormid (number) , room_number (number) | dorm_amenity : amenity_name (text) | 0.947368 |
dorm_1 | Find the code of city where most of students are living in. | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | dorm : dormid (number) , dorm_name (text) , student_capacity (number) , gender (text) | dorm_amenity : amenid (number) , amenity_name (text) | has_amenity : dormid (number) , amenid (number) | lives_in : stuid (number) , dormid (number) , room_number (number) | student : city_code (text) , stuid (number) | 0.894737 |
dorm_1 | What is the code of the city with the most students? | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | dorm : dormid (number) , dorm_name (text) , student_capacity (number) , gender (text) | dorm_amenity : amenid (number) , amenity_name (text) | has_amenity : dormid (number) , amenid (number) | lives_in : stuid (number) , dormid (number) , room_number (number) | student : city_code (text) , stuid (number) | 0.894737 |
dorm_1 | Find the first and last name of students whose age is younger than the average age. | student : stuid (number) , lname (text) , fname (text) , age (number) , sex (text) , major (number) , advisor (number) , city_code (text) | dorm : dormid (number) , dorm_name (text) , student_capacity (number) , gender (text) | dorm_amenity : amenid (number) , amenity_name (text) | has_amenity : dormid (number) , amenid (number) | lives_in : stuid (number) , dormid (number) , room_number (number) | student : fname (text) , lname (text) , age (number) | 0.842105 |